aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/opengl/QGL.java
blob: ca0c4dd59add99957bc807daa54f06e5ebaa8095 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
package jake2.render.opengl;

import java.nio.*;

public interface QGL extends QGLConst {

    /*
     * a sub set of OpenGL for Jake2
     */

    void glActiveTextureARB(int texture);

    void glAlphaFunc(int func, float ref);

    void glArrayElement(int index);

    void glBegin(int mode);

    void glBindTexture(int target, int texture);

    void glBlendFunc(int sfactor, int dfactor);

    void glClear(int mask);

    void glClearColor(float red, float green, float blue, float alpha);

    void glClientActiveTextureARB(int texture);

    void glColor3f(float red, float green, float blue);

    void glColor3ub(byte red, byte green, byte blue);

    void glColor4f(float red, float green, float blue, float alpha);

    void glColor4ub(byte red, byte green, byte blue, byte alpha);

    void glColorPointer(int size, boolean unsigned, int stride,
            ByteBuffer pointer);

    void glColorPointer(int size, int stride, FloatBuffer pointer);

    void glColorTable(int target, int internalFormat, int width, int format,
            int type, ByteBuffer data);

    void glCullFace(int mode);

    void glDeleteTextures(IntBuffer textures);

    void glDepthFunc(int func);

    void glDepthMask(boolean flag);

    void glDepthRange(double zNear, double zFar);

    void glDisable(int cap);

    void glDisableClientState(int cap);

    void glDrawArrays(int mode, int first, int count);

    void glDrawBuffer(int mode);

    void glDrawElements(int mode, ShortBuffer indices);

    void glEnable(int cap);

    void glEnableClientState(int cap);

    void glEnd();

    void glFinish();

    void glFlush();

    void glFrustum(double left, double right, double bottom, double top,
            double zNear, double zFar);

    int glGetError();

    void glGetFloat(int pname, FloatBuffer params);

    String glGetString(int name);
    
    void glHint(int target, int mode);

    void glInterleavedArrays(int format, int stride, FloatBuffer pointer);

    void glLockArraysEXT(int first, int count);

    void glLoadIdentity();

    void glLoadMatrix(FloatBuffer m);

    void glMatrixMode(int mode);

    void glMultiTexCoord2f(int target, float s, float t);

    void glOrtho(double left, double right, double bottom, double top,
            double zNear, double zFar);

    void glPixelStorei(int pname, int param);

    void glPointParameterEXT(int pname, FloatBuffer pfParams);

    void glPointParameterfEXT(int pname, float param);

    void glPointSize(float size);

    void glPolygonMode(int face, int mode);

    void glPopMatrix();

    void glPushMatrix();

    void glReadPixels(int x, int y, int width, int height, int format,
            int type, ByteBuffer pixels);

    void glRotatef(float angle, float x, float y, float z);

    void glScalef(float x, float y, float z);

    void glScissor(int x, int y, int width, int height);

    void glShadeModel(int mode);

    void glTexCoord2f(float s, float t);

    void glTexCoordPointer(int size, int stride, FloatBuffer pointer);

    void glTexEnvi(int target, int pname, int param);

    void glTexImage2D(int target, int level, int internalformat, int width,
            int height, int border, int format, int type, ByteBuffer pixels);

    void glTexImage2D(int target, int level, int internalformat, int width,
            int height, int border, int format, int type, IntBuffer pixels);

    void glTexParameterf(int target, int pname, float param);

    void glTexParameteri(int target, int pname, int param);

    void glTexSubImage2D(int target, int level, int xoffset, int yoffset,
            int width, int height, int format, int type, IntBuffer pixels);

    void glTranslatef(float x, float y, float z);

    void glUnlockArraysEXT();

    void glVertex2f(float x, float y);

    void glVertex3f(float x, float y, float z);

    void glVertexPointer(int size, int stride, FloatBuffer pointer);

    void glViewport(int x, int y, int width, int height);
    
    /*
     * util extensions
     */
    void setSwapInterval(int interval);

}