1 | /* $Id: os2_glx.h,v 1.3 2000-03-11 15:07:47 sandervl Exp $ */
|
---|
2 | #ifndef __os2_glx_h__
|
---|
3 | #define __os2_glx_h__
|
---|
4 |
|
---|
5 | /* Copyright (c) Nate Robins, 1997. */
|
---|
6 |
|
---|
7 | /* This program is freely distributable without licensing fees
|
---|
8 | and is provided without guarantee or warrantee expressed or
|
---|
9 | implied. This program is -not- in the public domain. */
|
---|
10 |
|
---|
11 | /* JvdH 30/01/2000 - GLUT port to Odin */
|
---|
12 |
|
---|
13 | #include "os2_x11.h"
|
---|
14 |
|
---|
15 | /* Type definitions (conversions). */
|
---|
16 | typedef HGLRC GLXContext;
|
---|
17 |
|
---|
18 | #define GLX_USE_GL 1 /* support GLX rendering */
|
---|
19 | #define GLX_BUFFER_SIZE 2 /* depth of the color buffer */
|
---|
20 | #define GLX_LEVEL 3 /* level in plane stacking */
|
---|
21 | #define GLX_RGBA 4 /* true if RGBA mode */
|
---|
22 | #define GLX_DOUBLEBUFFER 5 /* double buffering supported */
|
---|
23 | #define GLX_STEREO 6 /* stereo buffering supported */
|
---|
24 | #define GLX_AUX_BUFFERS 7 /* number of aux buffers */
|
---|
25 | #define GLX_RED_SIZE 8 /* number of red component bits */
|
---|
26 | #define GLX_GREEN_SIZE 9 /* number of green component bits */
|
---|
27 | #define GLX_BLUE_SIZE 10 /* number of blue component bits */
|
---|
28 | #define GLX_ALPHA_SIZE 11 /* number of alpha component bits */
|
---|
29 | #define GLX_DEPTH_SIZE 12 /* number of depth bits */
|
---|
30 | #define GLX_STENCIL_SIZE 13 /* number of stencil bits */
|
---|
31 | #define GLX_ACCUM_RED_SIZE 14 /* number of red accum bits */
|
---|
32 | #define GLX_ACCUM_GREEN_SIZE 15 /* number of green accum bits */
|
---|
33 | #define GLX_ACCUM_BLUE_SIZE 16 /* number of blue accum bits */
|
---|
34 | #define GLX_ACCUM_ALPHA_SIZE 17 /* number of alpha accum bits */
|
---|
35 |
|
---|
36 | #define GLX_BAD_ATTRIB 2
|
---|
37 | #define GLX_BAD_VISUAL 4
|
---|
38 |
|
---|
39 | /* Functions emulated by macros. */
|
---|
40 |
|
---|
41 | #define glXDestroyContext(display, context) \
|
---|
42 | wglDeleteContext(context)
|
---|
43 | /* Function prototypes. */
|
---|
44 |
|
---|
45 | extern GLXContext glXCreateContext(
|
---|
46 | Display* display,
|
---|
47 | XVisualInfo* visinfo,
|
---|
48 | GLXContext share,
|
---|
49 | Bool direct);
|
---|
50 | extern int glXGetConfig(
|
---|
51 | Display* display,
|
---|
52 | XVisualInfo* visual,
|
---|
53 | int attrib,
|
---|
54 | int* value);
|
---|
55 | extern XVisualInfo* glXChooseVisual(
|
---|
56 | Display* display,
|
---|
57 | int screen,
|
---|
58 | int* attribList);
|
---|
59 |
|
---|
60 | #endif /* __os2_glx_h__ */
|
---|