Dave Reveman's patch for GLX_MESA_copy_sub_buffer support
[mesa.git] / include / GL / foomesa.h
1 /*
2 * Mesa 3-D graphics library
3 * Version: 3.0
4 * Copyright (C) 1995-1998 Brian Paul
5 *
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.
10 *
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.
15 *
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.
19 */
20
21
22 /*
23 * Example Foo/Mesa interface. See src/ddsample.c for more info.
24 */
25
26
27
28 #ifndef FOOMESA_H
29 #define FOOMESA_H
30
31
32
33 typedef struct foo_mesa_visual *FooMesaVisual;
34
35 typedef struct foo_mesa_buffer *FooMesaBuffer;
36
37 typedef struct foo_mesa_context *FooMesaContext;
38
39
40
41 #ifdef BEOS
42 #pragma export on
43 #endif
44
45
46 extern FooMesaVisual FooMesaChooseVisual( /* your params */ );
47
48 extern void FooMesaDestroyVisual( FooMesaVisual visual );
49
50
51 extern FooMesaBuffer FooMesaCreateBuffer( FooMesaVisual visual,
52 void *your_window_id );
53
54 extern void FooMesaDestroyBuffer( FooMesaBuffer buffer );
55
56
57 extern FooMesaContext FooMesaCreateContext( FooMesaVisual visual,
58 FooMesaContext sharelist );
59
60 extern void FooMesaDestroyContext( FooMesaContext context );
61
62
63 extern void FooMesaMakeCurrent( FooMesaContext context, FooMesaBuffer buffer );
64
65
66 extern void FooMesaSwapBuffers( FooMesaBuffer buffer );
67
68
69 /* Probably some more functions... */
70
71
72 #ifdef BEOS
73 #pragma export off
74 #endif
75
76 #endif