2 * Mesa 3-D graphics library
4 * Copyright (C) 1995-1998 Brian Paul
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 * Example Foo/Mesa interface. See src/ddsample.c for more info.
33 typedef struct foo_mesa_visual
*FooMesaVisual
;
35 typedef struct foo_mesa_buffer
*FooMesaBuffer
;
37 typedef struct foo_mesa_context
*FooMesaContext
;
46 extern FooMesaVisual
FooMesaChooseVisual( /* your params */ );
48 extern void FooMesaDestroyVisual( FooMesaVisual visual
);
51 extern FooMesaBuffer
FooMesaCreateBuffer( FooMesaVisual visual
,
52 void *your_window_id
);
54 extern void FooMesaDestroyBuffer( FooMesaBuffer buffer
);
57 extern FooMesaContext
FooMesaCreateContext( FooMesaVisual visual
,
58 FooMesaContext sharelist
);
60 extern void FooMesaDestroyContext( FooMesaContext context
);
63 extern void FooMesaMakeCurrent( FooMesaContext context
, FooMesaBuffer buffer
);
66 extern void FooMesaSwapBuffers( FooMesaBuffer buffer
);
69 /* Probably some more functions... */