OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / GL / dmesa.h
1 /*\r
2  * Mesa 3-D graphics library\r
3  * Version:  4.0\r
4  * \r
5  * Copyright (C) 1999  Brian Paul   All Rights Reserved.\r
6  * \r
7  * Permission is hereby granted, free of charge, to any person obtaining a\r
8  * copy of this software and associated documentation files (the "Software"),\r
9  * to deal in the Software without restriction, including without limitation\r
10  * the rights to use, copy, modify, merge, publish, distribute, sublicense,\r
11  * and/or sell copies of the Software, and to permit persons to whom the\r
12  * Software is furnished to do so, subject to the following conditions:\r
13  * \r
14  * The above copyright notice and this permission notice shall be included\r
15  * in all copies or substantial portions of the Software.\r
16  * \r
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r
18  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL\r
20  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN\r
21  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
22  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
23  */\r
24 \r
25 /*\r
26  * DOS/DJGPP device driver v1.0 for Mesa 4.0\r
27  *\r
28  *  Copyright (C) 2002 - Borca Daniel\r
29  *  Email : dborca@yahoo.com\r
30  *  Web   : http://www.geocities.com/dborca\r
31  */\r
32 \r
33 \r
34 #ifndef DMESA_included\r
35 #define DMESA_included\r
36 \r
37 #define DMESA_MAJOR_VERSION 4\r
38 #define DMESA_MINOR_VERSION 0\r
39 \r
40 typedef struct dmesa_context *DMesaContext;\r
41 typedef struct dmesa_visual *DMesaVisual;\r
42 typedef struct dmesa_buffer *DMesaBuffer;\r
43 \r
44 #ifdef __cplusplus\r
45 extern "C" {\r
46 #endif\r
47 \r
48 DMesaVisual DMesaCreateVisual (GLint width, GLint height, GLint colDepth,\r
49                                GLboolean dbFlag, GLint depthSize,\r
50                                GLint stencilSize,\r
51                                GLint accumSize);\r
52 \r
53 void DMesaDestroyVisual (DMesaVisual v);\r
54 \r
55 DMesaBuffer DMesaCreateBuffer (DMesaVisual visual,\r
56                                GLint xpos, GLint ypos,\r
57                                GLint width, GLint height);\r
58 \r
59 void DMesaDestroyBuffer (DMesaBuffer b);\r
60 \r
61 DMesaContext DMesaCreateContext (DMesaVisual visual, DMesaContext share);\r
62 \r
63 void DMesaDestroyContext (DMesaContext c);\r
64 \r
65 GLboolean DMesaViewport (DMesaBuffer b,\r
66                          GLint xpos, GLint ypos,\r
67                          GLint width, GLint height);\r
68 \r
69 GLboolean DMesaMakeCurrent (DMesaContext c, DMesaBuffer b);\r
70 \r
71 void DMesaSwapBuffers (DMesaBuffer b);\r
72 \r
73 #ifdef __cplusplus\r
74 }\r
75 #endif\r
76 \r
77 #endif\r