aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/glcaps.h
blob: e8df37bd551b6f441328e444362df17895474244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef _GLCAPS_H
	/**
	 * glcaps.h
	 *
	 * Copyright (C) 2001  Sven Goethel
	 *
	 * GNU Library General Public License 
	 * as published by the Free Software Foundation
	 *
	 * http://www.gnu.org/copyleft/lgpl.html
	 * General dynamical loading OpenGL (GL/GLU) support for:
	 */

	#define _GLCAPS_H

	#ifndef LIBAPIENTRY
                #define LIBAPIENTRY
        #endif
        #ifndef LIBAPI
                #define LIBAPI extern
        #endif

	#define BUFFER_SINGLE 0
	#define BUFFER_DOUBLE 1
	 
	#define COLOR_INDEX 0
	#define COLOR_RGBA  1
	 
	#define STEREO_OFF 0
	#define STEREO_ON  1

	typedef struct {
	  int buffer;
	  int color;
	  int stereo;
	  int depthBits;
	  int stencilBits;

	  int redBits;
	  int greenBits;
	  int blueBits;
	  int alphaBits;
	  int accumRedBits;
	  int accumGreenBits;
	  int accumBlueBits;
	  int accumAlphaBits;

	  /* internal use only */
	  int  gl_supported;
	  long nativeVisualID;
	} GLCapabilities;

	/**
	 * prints the contents of the GLCapabilities to stdout !
	 */
	LIBAPI void LIBAPIENTRY printGLCapabilities ( GLCapabilities *glCaps );
#endif