2 * Mesa 3-D graphics library
\r
5 * Copyright (C) 1999 Brian Paul All Rights Reserved.
\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
14 * The above copyright notice and this permission notice shall be included
\r
15 * in all copies or substantial portions of the Software.
\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
26 * DOS/DJGPP device driver v1.0 for Mesa 4.0
\r
28 * Copyright (C) 2002 - Borca Daniel
\r
29 * Email : dborca@yahoo.com
\r
30 * Web : http://www.geocities.com/dborca
\r
34 #ifndef DMESA_included
\r
35 #define DMESA_included
\r
37 #define DMESA_MAJOR_VERSION 4
\r
38 #define DMESA_MINOR_VERSION 0
\r
40 typedef struct dmesa_context *DMesaContext;
\r
41 typedef struct dmesa_visual *DMesaVisual;
\r
42 typedef struct dmesa_buffer *DMesaBuffer;
\r
48 DMesaVisual DMesaCreateVisual (GLint width, GLint height, GLint colDepth,
\r
49 GLboolean dbFlag, GLint depthSize,
\r
53 void DMesaDestroyVisual (DMesaVisual v);
\r
55 DMesaBuffer DMesaCreateBuffer (DMesaVisual visual,
\r
56 GLint xpos, GLint ypos,
\r
57 GLint width, GLint height);
\r
59 void DMesaDestroyBuffer (DMesaBuffer b);
\r
61 DMesaContext DMesaCreateContext (DMesaVisual visual, DMesaContext share);
\r
63 void DMesaDestroyContext (DMesaContext c);
\r
65 GLboolean DMesaViewport (DMesaBuffer b,
\r
66 GLint xpos, GLint ypos,
\r
67 GLint width, GLint height);
\r
69 GLboolean DMesaMakeCurrent (DMesaContext c, DMesaBuffer b);
\r
71 void DMesaSwapBuffers (DMesaBuffer b);
\r