JOGL v2.6.0-rc-20250822
JOGL, High-Performance Graphics Binding for Java™ (public API).
GearsFBO00.java
Go to the documentation of this file.
1/**
2 * Copyright 2011-2025 JogAmp Community. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without modification, are
5 * permitted provided that the following conditions are met:
6 *
7 * 1. Redistributions of source code must retain the above copyright notice, this list of
8 * conditions and the following disclaimer.
9 *
10 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
11 * of conditions and the following disclaimer in the documentation and/or other materials
12 * provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR IMPLIED
15 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
16 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JogAmp Community OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
21 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
22 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * The views and conclusions contained in the software and documentation are those of the
25 * authors and should not be interpreted as representing official policies, either expressed
26 * or implied, of JogAmp Community.
27 */
28package com.jogamp.opengl.demos.es2;
29
30import java.nio.FloatBuffer;
31
32import com.jogamp.opengl.GL;
33import com.jogamp.opengl.GL2ES2;
34import com.jogamp.opengl.GLAutoDrawable;
35import com.jogamp.opengl.GLCapabilities;
36import com.jogamp.opengl.GLEventListener;
37import com.jogamp.opengl.GLUniformData;
38import com.jogamp.opengl.fixedfunc.GLMatrixFunc;
39import com.jogamp.common.util.VersionUtil;
40import com.jogamp.newt.event.WindowAdapter;
41import com.jogamp.newt.event.WindowEvent;
42import com.jogamp.newt.opengl.GLWindow;
43import com.jogamp.opengl.FBObject;
44import com.jogamp.opengl.FBObject.TextureAttachment;
45import com.jogamp.opengl.FBObject.Attachment.Type;
46import com.jogamp.opengl.demos.util.CommandlineOptions;
47import com.jogamp.opengl.util.Animator;
48import com.jogamp.opengl.util.GLArrayDataServer;
49import com.jogamp.opengl.util.PMVMatrix;
50import com.jogamp.opengl.util.caps.NonFSAAGLCapsChooser;
51import com.jogamp.opengl.util.glsl.ShaderCode;
52import com.jogamp.opengl.util.glsl.ShaderProgram;
53import com.jogamp.opengl.util.glsl.ShaderState;
54
55/**
56 * FBO demo using a texture attachment for color-buffer using FBObject
57 * - The color-buffer texture is visualized.
58 */
59public class GearsFBO00 implements GLEventListener {
60 private final GLEventListener demo;
61 private final int swapInterval;
62 private int numSamples;
63
64 private final ShaderState st;
65 private final PMVMatrix pmvMatrix;
66
67 private final FBObject fbo0;
68
69 private TextureAttachment fbo0Tex;
70
71 private ShaderProgram sp0;
72 private GLUniformData pmvMatrixUniform;
73 private GLArrayDataServer interleavedVBO;
74 private final GLUniformData texUnit0;
75
76 public GearsFBO00(final int swapInterval) {
77 this.demo = new GearsES2(0);
78 this.swapInterval = swapInterval;
79
80 st = new ShaderState();
81 // st.setVerbose(true);
82 pmvMatrix = new PMVMatrix();
83 texUnit0 = new GLUniformData("mgl_Texture0", 0);
84
85 fbo0 = new FBObject();
86
87 numSamples = 0;
88 }
89
90 public void setMSAA(final int numSamples) {
91 this.numSamples=numSamples;
92 }
93 public int getMSAA() { return numSamples; }
94
95 @Override
96 public void init(final GLAutoDrawable drawable) {
97 System.err.println("Init: Chosen Caps: "+drawable.getChosenGLCapabilities());
98 final GL2ES2 gl = drawable.getGL().getGL2ES2();
99
100 demo.init(drawable);
101
102 final ShaderCode vp0 = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, GearsFBO00.class, "shader",
103 "shader/bin", "texture01_xxx", true);
104 final ShaderCode fp0 = ShaderCode.create(gl, GL2ES2.GL_FRAGMENT_SHADER, GearsFBO00.class, "shader",
105 "shader/bin", "texture01_xxx", true);
106 vp0.defaultShaderCustomization(gl, true, true);
107 fp0.defaultShaderCustomization(gl, true, true);
108
109 sp0 = new ShaderProgram();
110 sp0.add(gl, vp0, System.err);
111 sp0.add(gl, fp0, System.err);
112 st.attachShaderProgram(gl, sp0, true);
113
114 pmvMatrixUniform = new GLUniformData("mgl_PMVMatrix", 4, 4, pmvMatrix.getSyncPMv());
115 st.ownUniform(pmvMatrixUniform);
116 st.uniform(gl, pmvMatrixUniform);
117
118 interleavedVBO = GLArrayDataServer.createGLSLInterleaved(3+4+2, GL.GL_FLOAT, false, 3*4, GL.GL_STATIC_DRAW);
119 {
120 interleavedVBO.addGLSLSubArray("mgl_Vertex", 3, GL.GL_ARRAY_BUFFER);
121 interleavedVBO.addGLSLSubArray("mgl_Color", 4, GL.GL_ARRAY_BUFFER);
122 //interleavedVBO.addGLSLSubArray("mgl_Normal", 3, GL.GL_ARRAY_BUFFER);
123 interleavedVBO.addGLSLSubArray("mgl_MultiTexCoord", 2, GL.GL_ARRAY_BUFFER);
124
125 final FloatBuffer ib = (FloatBuffer)interleavedVBO.getBuffer();
126
127 for(int i=0; i<4; i++) {
128 ib.put(s_quadVertices, i*3, 3);
129 ib.put(s_quadColors, i*4, 4);
130 //ib.put(s_cubeNormals, i*3, 3);
131 ib.put(s_quadTexCoords, i*2, 2);
132 }
133 }
134 interleavedVBO.seal(gl, true);
135 interleavedVBO.enableBuffer(gl, false);
136 st.ownAttribute(interleavedVBO, true);
137
138 st.ownUniform(texUnit0);
139 st.uniform(gl, texUnit0);
140
141 st.useProgram(gl, false);
142
143 initFBOs(gl, drawable.getSurfaceWidth(), drawable.getSurfaceHeight());
144
146 }
147
148 private void initFBOs(final GL gl, final int width, final int height) {
149 fbo0.init(gl, width, height, numSamples);
150 numSamples = fbo0.getNumSamples();
151
152 if(numSamples>0) {
153 fbo0.attachColorbuffer(gl, 0, true);
154 fbo0.resetSamplingSink(gl);
155 fbo0Tex = fbo0.getSamplingSink().getTextureAttachment();
156 } else {
157 fbo0Tex = fbo0.attachTexture2D(gl, 0, true);
158 }
159 numSamples=fbo0.getNumSamples();
161 fbo0.unbind(gl);
162 }
163
164 private void resetFBOs(final GL gl, final int width, final int height) {
165 fbo0.reset(gl, width, height, numSamples);
166 numSamples = fbo0.getNumSamples();
167 if(numSamples>0) {
168 fbo0Tex = fbo0.getSamplingSink().getTextureAttachment();
169 } else {
170 fbo0Tex = fbo0.getColorbuffer(0).getTextureAttachment();
171 }
172 }
173
174 @Override
175 public void dispose(final GLAutoDrawable drawable) {
176 final GL2ES2 gl = drawable.getGL().getGL2ES2();
177 demo.dispose(drawable);
178 fbo0.destroy(gl);
179 st.destroy(gl);
180
181 fbo0Tex = null;
182 sp0 = null;
183 pmvMatrixUniform = null;
184 interleavedVBO = null;
185 }
186
187 @Override
188 public void display(final GLAutoDrawable drawable) {
189 final GL2ES2 gl = drawable.getGL().getGL2ES2();
190
191 if( fbo0.getNumSamples() != numSamples ) {
192 System.err.println("**** NumSamples: "+fbo0.getNumSamples()+" -> "+numSamples);
193 resetFBOs(gl, drawable.getSurfaceWidth(), drawable.getSurfaceHeight());
194 }
195
196 if(0 < numSamples) {
198 }
199
200 fbo0.bind(gl);
201 demo.display(drawable);
202 fbo0.unbind(gl);
203
204 st.useProgram(gl, true);
205 {
206 gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
208 }
209
210 {
211 // FBO color-buffer
212 gl.glActiveTexture(GL.GL_TEXTURE0 + texUnit0.intValue());
213 {
214 fbo0.use(gl, fbo0Tex);
215 if( !gl.isGLcore() ) {
217 }
218 }
219 interleavedVBO.enableBuffer(gl, true);
220
222
223 interleavedVBO.enableBuffer(gl, false);
224
225 fbo0.unuse(gl);
226 }
227
228 st.useProgram(gl, false);
229 }
230
231 @Override
232 public void reshape(final GLAutoDrawable drawable, final int x, final int y, final int width, final int height) {
233 final GL2ES2 gl = drawable.getGL().getGL2ES2();
234
235 System.err.println("**** Reshape.Reset: "+width+"x"+height);
236 resetFBOs(gl, width, height);
237
238 fbo0.bind(gl);
239 demo.reshape(drawable, x, y, width, height);
240 fbo0.unbind(gl);
241
242 gl.setSwapInterval(swapInterval);
243
245 pmvMatrix.glLoadIdentity();
246 pmvMatrix.glOrthof(-1.0f, 1.0f, -1.0f, 1.0f, 0.0f, 10.0f);
247
249 pmvMatrix.glLoadIdentity();
250
251 st.useProgram(gl, true);
252 st.uniform(gl, pmvMatrixUniform);
253 st.useProgram(gl, false);
254
255 }
256
257 private static final float[] s_quadVertices = {
258 -1f, -1f, 0f, // LB
259 1f, -1f, 0f, // RB
260 -1f, 1f, 0f, // LT
261 1f, 1f, 0f // RT
262 };
263 private static final float[] s_quadColors = {
264 1f, 1f, 1f, 1f,
265 1f, 1f, 1f, 1f,
266 1f, 1f, 1f, 1f,
267 1f, 1f, 1f, 1f };
268 private static final float[] s_quadTexCoords = {
269 0f, 0f, // LB
270 1f, 0f, // RB
271 0f, 1f, // LT
272 1f, 1f // RT
273 };
274
275 public static void main(final String[] args) {
276 final CommandlineOptions options = new CommandlineOptions(1280, 720, 0);
277
278 System.err.println(options);
279 System.err.println(VersionUtil.getPlatformInfo());
280 // System.err.println(JoglVersion.getAllAvailableCapabilitiesInfo(dpy.getGraphicsDevice(), null).toString());
281
282 final GLCapabilities reqCaps = options.getGLCaps();
283 System.out.println("Requested: " + reqCaps);
284
285 final GLWindow window = GLWindow.create(reqCaps);
286 if( 0 == options.sceneMSAASamples ) {
288 }
289 window.setSize(options.surface_width, options.surface_height);
290 window.setTitle(GearsFBO00.class.getSimpleName());
291
292 window.addGLEventListener(new GearsFBO00(1));
293 final Animator animator = new Animator(0 /* w/o AWT */);
294 animator.setUpdateFPSFrames(5*60, null);
295 animator.add(window);
296
297 window.addWindowListener(new WindowAdapter() {
298 @Override
299 public void windowDestroyed(final WindowEvent e) {
300 animator.stop();
301 }
302 });
303
304 window.setVisible(true);
305 animator.start();
306 }
307
308}
final SyncMatrices4f getSyncPMv()
Returns SyncMatrices4f of 2 matrices within one FloatBuffer: P and Mv.
NEWT Window events are provided for notification purposes ONLY.
An implementation of GLAutoDrawable and Window interface, using a delegated Window instance,...
Definition: GLWindow.java:121
final void setTitle(final String title)
Definition: GLWindow.java:297
final void setSize(final int width, final int height)
Sets the size of the window's client area in window units, excluding decorations.
Definition: GLWindow.java:625
final void setVisible(final boolean visible)
Calls setVisible(true, visible), i.e.
Definition: GLWindow.java:615
final void addWindowListener(final WindowListener l)
Appends the given com.jogamp.newt.event.WindowListener to the end of the list.
Definition: GLWindow.java:882
CapabilitiesChooser setCapabilitiesChooser(final CapabilitiesChooser chooser)
Set the CapabilitiesChooser to help determine the native visual type.
Definition: GLWindow.java:261
static GLWindow create(final GLCapabilitiesImmutable caps)
Creates a new GLWindow attaching a new Window referencing a new default Screen and default Display wi...
Definition: GLWindow.java:169
Core utility class simplifying usage of framebuffer objects (FBO) with all GLProfiles.
Definition: FBObject.java:53
final void attachRenderbuffer(final GL gl, final Attachment.Type atype, final int reqBits)
Attaches one depth, stencil or packed-depth-stencil buffer to this FBO's instance,...
Definition: FBObject.java:1691
final void bind(final GL gl)
Bind this FBO, i.e.
Definition: FBObject.java:2540
final TextureAttachment attachTexture2D(final GL gl, final int attachmentPoint, final boolean alpha)
Attaches a Colorbuffer, i.e.
Definition: FBObject.java:1387
final int getNumSamples()
Returns the number of samples for multisampling (MSAA).
Definition: FBObject.java:2757
final void destroy(final GL gl)
Definition: FBObject.java:2253
final void unuse(final GL gl)
Unbind texture, ie bind 'non' texture 0.
Definition: FBObject.java:2684
final void use(final GL gl, final TextureAttachment ta)
Synchronize the sampling sink and bind the given TextureAttachment, if not null.
Definition: FBObject.java:2672
final Colorbuffer getSamplingSink()
Return the multisampling Colorbuffer sink, if using multisampling.
Definition: FBObject.java:2782
final boolean resetSamplingSink(final GL gl)
Manually validates the MSAA sampling sink, if used.
Definition: FBObject.java:2345
final ColorAttachment attachColorbuffer(final GL gl, final int attachmentPoint, final boolean alpha)
Attaches a newly created and initialized Colorbuffer, i.e.
Definition: FBObject.java:1496
final void unbind(final GL gl)
Unbind this FBO, i.e.
Definition: FBObject.java:2563
final boolean reset(final GL gl, int newWidth, int newHeight, int newSamples)
Resets this FBO's instance.
Definition: FBObject.java:1140
static final int CHOSEN_BITS
Request current context drawable's chosen depth- or stencil-bits; value {@value}.
Definition: FBObject.java:1658
void init(final GL gl, final int newWidth, final int newHeight, final int newSamples)
Initializes this FBO's instance.
Definition: FBObject.java:1008
final Colorbuffer getColorbuffer(final int attachmentPoint)
Return the Colorbuffer attachment at attachmentPoint if it is attached to this FBO,...
Definition: FBObject.java:886
Specifies a set of OpenGL capabilities.
GLSL uniform data wrapper encapsulating data to be uploaded to the GPU as a uniform.
FBO demo using a texture attachment for color-buffer using FBObject.
Definition: GearsFBO00.java:59
void dispose(final GLAutoDrawable drawable)
Notifies the listener to perform the release of all OpenGL resources per GLContext,...
void reshape(final GLAutoDrawable drawable, final int x, final int y, final int width, final int height)
Called by the drawable during the first repaint after the component has been resized.
GearsFBO00(final int swapInterval)
Definition: GearsFBO00.java:76
void init(final GLAutoDrawable drawable)
Called by the drawable immediately after the OpenGL context is initialized.
Definition: GearsFBO00.java:96
void setMSAA(final int numSamples)
Definition: GearsFBO00.java:90
static void main(final String[] args)
void display(final GLAutoDrawable drawable)
Called by the drawable to initiate OpenGL rendering by the client.
final synchronized void add(final GLAutoDrawable drawable)
Adds a drawable to this animator's list of rendering drawables.
final void setUpdateFPSFrames(final int frames, final PrintStream out)
final synchronized boolean start()
Starts this animator, if not running.
Definition: Animator.java:344
final synchronized boolean stop()
Stops this animator.
Definition: Animator.java:368
void seal(final GL gl, final boolean seal)
Convenience method calling seal(boolean) and enableBuffer(GL, boolean).
void enableBuffer(final GL gl, final boolean enable)
Enables the buffer if enable is true, and transfers the data if required.
static GLArrayDataServer createGLSLInterleaved(final int compsPerElement, final int dataType, final boolean normalized, final int initialElementCount, final int vboUsage)
Create a VBO for GLSL interleaved array data starting with a new created Buffer object with initialEl...
GLArrayDataWrapper addGLSLSubArray(final String name, final int comps, final int vboTarget)
Configure a segment of this GLSL interleaved array (see createGLSLInterleaved(int,...
Buffer getBuffer()
The Buffer holding the data, may be null if a GPU buffer without client bound data.
PMVMatrix implements a subset of the fixed function pipeline GLMatrixFunc using PMVMatrix4f.
Definition: PMVMatrix.java:62
final void glMatrixMode(final int matrixName)
Sets the current matrix mode.
Definition: PMVMatrix.java:218
final void glOrthof(final float left, final float right, final float bottom, final float top, final float zNear, final float zFar)
Multiply the current matrix with the orthogonal matrix.
Definition: PMVMatrix.java:469
final void glLoadIdentity()
Load the current matrix with the identity matrix.
Definition: PMVMatrix.java:325
Custom GLCapabilitiesChooser, filtering out all full screen anti-aliasing (FSAA, multisample) capabil...
Convenient shader code class to use and instantiate vertex or fragment programs.
Definition: ShaderCode.java:75
final int defaultShaderCustomization(final GL2ES2 gl, final boolean preludeVersion, final boolean addDefaultPrecision)
Default customization of this shader source code.
static ShaderCode create(final GL2ES2 gl, final int type, final int count, final Class<?> context, final String[] sourceFiles, final boolean mutableStringBuilder)
Creates a complete ShaderCode object while reading all shader source of sourceFiles,...
synchronized void add(final ShaderCode shaderCode)
Adds a new shader to this program.
ShaderState allows to sharing data between shader programs, while updating the attribute and uniform ...
void ownAttribute(final GLArrayData attribute, final boolean own)
Binds or unbinds the GLArrayData lifecycle to this ShaderState.
synchronized void useProgram(final GL2ES2 gl, final boolean on)
Turns the shader program on or off.
synchronized boolean attachShaderProgram(final GL2ES2 gl, final ShaderProgram prog, final boolean enable)
Attach or switch a shader program.
synchronized void destroy(final GL2ES2 gl)
Calls release(gl, true, true, true).
boolean uniform(final GL2ES2 gl, final GLUniformData data)
Set the uniform data, if it's location is valid, i.e.
void ownUniform(final GLUniformData uniform)
Bind the GLUniform lifecycle to this ShaderState.
TextureAttachment getTextureAttachment()
Casts this object to a TextureAttachment reference, see isTextureAttachment().
static final int GL_VERTEX_SHADER
GL_ES_VERSION_2_0, GL_VERSION_2_0, GL_EXT_vertex_shader, GL_ARB_vertex_shader Alias for: GL_VERTEX_SH...
Definition: GL2ES2.java:39
static final int GL_FRAGMENT_SHADER
GL_ES_VERSION_2_0, GL_VERSION_2_0, GL_ATI_fragment_shader, GL_ARB_fragment_shader Alias for: GL_FRAGM...
Definition: GL2ES2.java:585
A higher-level abstraction than GLDrawable which supplies an event based mechanism (GLEventListener) ...
GL getGL()
Returns the GL pipeline object this GLAutoDrawable uses.
void addGLEventListener(GLEventListener listener)
Adds the given listener to the end of this drawable queue.
GL2ES2 getGL2ES2()
Casts this object to the GL2ES2 interface.
void setSwapInterval(int interval)
Set the swap interval of the current context and attached onscreen GLDrawable.
boolean isGLcore()
Indicates whether this GL object uses a GL core profile.
GLCapabilitiesImmutable getChosenGLCapabilities()
Fetches the GLCapabilitiesImmutable corresponding to the chosen OpenGL capabilities (pixel format / v...
int getSurfaceWidth()
Returns the width of this GLDrawable's surface client area in pixel units.
int getSurfaceHeight()
Returns the height of this GLDrawable's surface client area in pixel units.
Declares events which client code can use to manage OpenGL rendering into a GLAutoDrawable.
void dispose(GLAutoDrawable drawable)
Notifies the listener to perform the release of all OpenGL resources per GLContext,...
void display(GLAutoDrawable drawable)
Called by the drawable to initiate OpenGL rendering by the client.
void init(GLAutoDrawable drawable)
Called by the drawable immediately after the OpenGL context is initialized.
void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)
Called by the drawable during the first repaint after the component has been resized.
static final int GL_MULTISAMPLE
Common in ES1, GL2 and GL3.
Definition: GL.java:1249
void glDrawArrays(int mode, int first, int count)
Entry point to C language function: void {@native glDrawArrays}(GLenum mode, GLint first,...
static final int GL_STATIC_DRAW
GL_VERSION_1_5, GL_ES_VERSION_2_0, GL_VERSION_ES_1_0, GL_ARB_vertex_buffer_object Alias for: GL_STATI...
Definition: GL.java:673
static final int GL_TEXTURE_2D
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_TEXTURE_2D" with expression '0x0DE1',...
Definition: GL.java:491
static final int GL_FLOAT
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_FLOAT" with expression '0x1406',...
Definition: GL.java:786
static final int GL_COLOR_BUFFER_BIT
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_COLOR_BUFFER_BIT" with expression '0x...
Definition: GL.java:390
void glClearColor(float red, float green, float blue, float alpha)
Entry point to C language function: void {@native glClearColor}(GLfloat red, GLfloat green,...
void glEnable(int cap)
Entry point to C language function: void {@native glEnable}(GLenum cap) Part of GL_ES_VERSION_2_0,...
static final int GL_DEPTH_TEST
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_DEPTH_TEST" with expression '0x0B71',...
Definition: GL.java:43
void glActiveTexture(int texture)
Entry point to C language function: void {@native glActiveTexture}(GLenum texture) Part of GL_ES_V...
void glClear(int mask)
Entry point to C language function: void {@native glClear}(GLbitfield mask) Part of GL_ES_VERSION_...
static final int GL_TRIANGLE_STRIP
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_TRIANGLE_STRIP" with expression '0x00...
Definition: GL.java:760
static final int GL_TEXTURE0
GL_ES_VERSION_2_0, GL_VERSION_1_3, GL_VERSION_ES_1_0, GL_ARB_multitexture Alias for: GL_TEXTURE0_ARB ...
Definition: GL.java:71
static final int GL_DEPTH_BUFFER_BIT
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_DEPTH_BUFFER_BIT" with expression '0x...
Definition: GL.java:738
static final int GL_ARRAY_BUFFER
GL_VERSION_1_5, GL_ES_VERSION_2_0, GL_VERSION_ES_1_0, GL_ARB_vertex_buffer_object Alias for: GL_ARRAY...
Definition: GL.java:633
Subset of OpenGL fixed function pipeline's matrix operations.
static final int GL_PROJECTION
Matrix mode projection.
static final int GL_MODELVIEW
Matrix mode modelview.