1 {$INCLUDE ../shared/a_modes.inc}
9 GLenum
= cuint
; PGLenum
= ^GLenum
;
10 GLboolean
= cuchar
; PGLboolean
= ^GLboolean
;
11 GLbitfield
= cuint
; PGLbitfield
= ^GLbitfield
;
12 GLbyte
= cschar
; PGLbyte
= ^GLbyte
;
13 GLshort
= cshort
; PGLshort
= ^GLshort
;
14 GLint
= cint
; PGLint
= ^GLint
;
15 GLsizei
= cint
; PGLsizei
= ^GLsizei
;
16 GLubyte
= cuchar
; PGLubyte
= ^GLubyte
;
17 GLushort
= cushort
; PGLushort
= ^GLushort
;
18 GLuint
= cuint
; PGLuint
= ^GLuint
;
19 GLfloat
= cfloat
; PGLfloat
= ^GLfloat
;
20 GLclampf
= cfloat
; PGLclampf
= ^GLclampf
;
21 GLdouble
= cdouble
; PGLdouble
= ^GLdouble
;
22 GLclampd
= cdouble
; PGLclampd
= ^GLclampd
;
23 { GLvoid = void; } PGLvoid
= Pointer; PPGLvoid
= ^PGLvoid
;
24 GLfixed
= cint
; PGLfixed
= ^Integer;
25 GLclampx
= cint
; PGLclampx
= ^Integer;
28 TGLboolean
= GLboolean
;
29 TGLbitfield
= GLbitfield
;
46 GL_DEPTH_TEST
= $0B71;
47 GL_SCISSOR_TEST
= $0C11;
49 GL_PROJECTION
= $1701;
52 GL_ONE_MINUS_SRC_ALPHA
= $0303;
54 GL_TEXTURE_2D
= $0DE1;
61 GL_ONE_MINUS_DST_COLOR
= $0307;
63 GL_COLOR_BUFFER_BIT
= $00004000;
65 GL_UNSIGNED_BYTE
= $1401;
66 GL_ALPHA_TEST
= $0BC0;
68 GL_TEXTURE_WRAP_S
= $2802;
69 GL_TEXTURE_WRAP_T
= $2803;
71 GL_TEXTURE_MIN_FILTER
= $2801;
72 GL_TEXTURE_MAG_FILTER
= $2800;
74 GL_POINT_SMOOTH
= $0B10;
75 GL_STENCIL_TEST
= $0B90;
76 GL_SCISSOR_BOX
= $0C10;
80 GL_STENCIL_BUFFER_BIT
= $00000400;
85 GL_TEXTURE_ENV
= $2300;
86 GL_TEXTURE_ENV_MODE
= $2200;
92 GL_EXTENSIONS
= $1F03;
93 GL_SHADING_LANGUAGE_VERSION
= $8B8C;
96 // GL_CULL_FACE = $0B44;
98 // GL_VERTEX_ARRAY = $8074;
99 // GL_NORMAL_ARRAY = $8075;
100 // GL_COLOR_ARRAY = $8076;
101 // GL_TEXTURE_COORD_ARRAY = $8078;
102 // GL_NOTEQUAL = $0205;
103 // GL_LINE_SMOOTH = $0B20;
104 // GL_POLYGON_SMOOTH = $0B41;
105 // GL_LIGHTING = $0B50;
106 // GL_DITHER = $0BD0;
107 // GL_MODELVIEW_MATRIX = $0BA6;
108 // GL_MATRIX_MODE = $0BA0;
109 // GL_TEXTURE_BINDING_2D = $8069;
110 // GL_TEXTURE = $1702;
112 // GL_ALL_ATTRIB_BITS = $000FFFFF;
114 procedure glEnable(cap
: GLenum
);
115 procedure glDisable(cap
: GLenum
);
116 function glIsEnabled(cap
: GLenum
): GLboolean
;
117 function glGetString(name
: GLenum
): PChar;
118 procedure glClearColor(red
, green
, blue
, alpha
: GLclampf
);
119 procedure glClear(mask
: GLbitfield
);
120 procedure glAlphaFunc(func
: GLenum
; ref
: GLclampf
);
121 procedure glBlendFunc(sfactor
, dfactor
: GLenum
);
122 procedure glPointSize(size
: GLfloat
);
123 procedure glLineWidth(width
: GLfloat
);
124 procedure glGetIntegerv(pname
: GLenum
; params
: PGLint
);
128 procedure glBegin(mode
: GLenum
);
130 procedure glTexCoord2f(s
, t
: GLfloat
);
131 procedure glVertex2i(x
, y
: GLint
);
132 procedure glColor4ub(red
, green
, blue
, alpha
: GLubyte
);
133 procedure glColor3ub(red
, green
, blue
: GLubyte
);
134 procedure glVertex2f(x
, y
: GLfloat
);
135 procedure glTexCoord2i(s
, t
: GLint
);
136 procedure glColor4f(red
, green
, blue
, alpha
: GLfloat
);
138 procedure glReadPixels(x
, y
: GLint
; width
, height
: GLsizei
; format
, atype
: GLenum
; pixels
: Pointer);
140 procedure glLoadIdentity
;
141 procedure glScissor(x
, y
: GLint
; width
, height
: GLsizei
);
142 procedure glViewport(x
, y
: GLint
; width
, height
: GLsizei
);
143 procedure glMatrixMode(mode
: GLenum
);
144 procedure glLoadMatrixd(const m
: PGLdouble
);
145 procedure glPushMatrix
;
146 procedure glTranslatef(x
, y
, z
: GLfloat
);
147 procedure glRotatef(angle
, x
, y
, z
: GLfloat
);
148 procedure glScalef(x
, y
, z
: GLfloat
);
149 procedure glPopMatrix
;
151 procedure glStencilMask(mask
: GLuint
);
152 procedure glStencilFunc(func
: GLenum
; ref
: GLint
; mask
: GLuint
);
153 procedure glStencilOp(fail
, zfail
, zpass
: GLenum
);
154 procedure glColorMask(red
, green
, blue
, alpha
: GLboolean
);
156 procedure glBindTexture(target
: GLenum
; texture
: GLuint
);
157 procedure glGenTextures(n
: GLsizei
; textures
: PGLuint
);
158 procedure glTexEnvi(target
: GLenum
; pname
: GLenum
; param
: GLint
);
159 procedure glTexParameterf(target
: GLenum
; pname
: GLenum
; param
: GLfloat
);
160 procedure glTexParameteri(target
: GLenum
; pname
: GLenum
; param
: GLint
);
161 procedure glTexImage2D(target
: GLenum
; level
, internalformat
: GLint
; width
, height
: GLsizei
; border
: GLint
; format
, atype
: GLenum
; const pixels
: Pointer);
162 procedure glTexSubImage2D(target
: GLenum
; level
, xoffset
, yoffset
: GLint
; width
, height
: GLsizei
; format
, atype
: GLenum
; const pixels
: Pointer);
163 procedure glDeleteTextures(n
: GLsizei
; const textures
: PGLuint
);
165 // procedure glVertexPointer(size: GLint; atype: GLenum; stride: GLsizei; const pointer: Pointer);
166 // procedure glEnableClientState(aarray: GLenum);
167 // procedure glDisableClientState(aarray: GLenum);
168 // procedure glDrawArrays(mode: GLenum; first: GLint; count: GLsizei);
169 // procedure glGetFloatv(pname: GLenum; params: PGLfloat);
170 // procedure glPushAttrib(mask: GLbitfield);
171 // procedure glOrtho(left, right, bottom, top, zNear, zFar: GLdouble);
172 // procedure glPopAttrib;
173 // procedure glColorPointer(size: GLint; atype: GLenum; stride: GLsizei; const pointer: Pointer);