28package com.jogamp.opengl.demos.es2;
30import java.nio.FloatBuffer;
32import com.jogamp.opengl.GL;
33import com.jogamp.opengl.GL2ES2;
34import com.jogamp.opengl.GL2ES3;
35import com.jogamp.opengl.GL2GL3;
36import com.jogamp.opengl.GL4;
37import com.jogamp.opengl.GLAutoDrawable;
38import com.jogamp.opengl.GLCapabilities;
39import com.jogamp.opengl.GLEventListener;
40import com.jogamp.opengl.GLException;
41import com.jogamp.opengl.GLProfile;
42import com.jogamp.opengl.GLUniformData;
43import com.jogamp.opengl.fixedfunc.GLMatrixFunc;
44import com.jogamp.common.util.VersionUtil;
45import com.jogamp.math.Recti;
46import com.jogamp.newt.event.WindowAdapter;
47import com.jogamp.newt.event.WindowEvent;
48import com.jogamp.newt.opengl.GLWindow;
49import com.jogamp.opengl.demos.util.CommandlineOptions;
50import com.jogamp.opengl.demos.util.MiscUtils;
51import com.jogamp.opengl.util.Animator;
52import com.jogamp.opengl.util.GLArrayDataServer;
53import com.jogamp.opengl.util.PMVMatrix;
54import com.jogamp.opengl.util.caps.NonFSAAGLCapsChooser;
55import com.jogamp.opengl.util.glsl.ShaderCode;
56import com.jogamp.opengl.util.glsl.ShaderProgram;
57import com.jogamp.opengl.util.glsl.ShaderState;
77 private final int swapInterval;
88 public GearsFBO02(
final int demo2Type,
final int swapInterval) {
93 default: demo2 =
null;
break;
95 this.swapInterval = swapInterval;
111 demo2.
init(drawable);
118 "shader/bin",
"texture01_xxx",
true);
120 "shader/bin",
"texture01_customtex",
true);
125 sp0.
add(gl, vp0, System.err);
126 sp0.
add(gl, fp0, System.err);
131 st.
uniform(gl, pmvMatrixUniform);
140 final FloatBuffer ib = (FloatBuffer)interleavedVBO.
getBuffer();
142 for(
int i=0; i<4; i++) {
143 ib.put(s_quadVertices, i*3, 3);
144 ib.put(s_quadColors, i*4, 4);
146 ib.put(s_quadTexCoords, i*2, 2);
149 interleavedVBO.
seal(gl,
true);
164 initFBO(gl, viewport.width()/2, viewport.height()/2);
170 private int fboID, fboWidth, fboHeight;
171 private int colorTexID, depthStencilTexID, stencilViewID;
172 private int depthStencilRenderID;
173 private final boolean useDepthStencilTexture =
true;
174 private final int colorAttachmentPoint = 0;
176 private void initTexParam(
final GL2ES2 gl) {
182 private void initFBO(
final GL4 gl,
final int width,
final int height) {
184 final int tmp[] = { 0, 0 };
189 depthStencilRenderID=0;
195 if (0 == colorTexID) {
199 if( useDepthStencilTexture ) {
201 depthStencilTexID = tmp[0];
202 stencilViewID = tmp[1];
203 if (0 == depthStencilTexID || 0 == stencilViewID) {
204 throw new GLException(
"XXX");
208 depthStencilRenderID = tmp[0];
209 if (0 == depthStencilRenderID) {
210 throw new GLException(
"XXX");
217 throw new GLException(
"XXX");
223 final boolean alpha=
true;
224 final int iFormat, dataFormat, dataType;
226 iFormat = alpha ? GL.GL_RGBA8 : GL.GL_RGB8;
227 dataFormat = alpha ? GL.GL_RGBA : GL.GL_RGB;
228 dataType = GL.GL_UNSIGNED_BYTE;
230 iFormat = alpha ? GL.GL_RGBA : GL.GL_RGB;
231 dataFormat = alpha ? GL.GL_RGBA : GL.GL_RGB;
232 dataType = GL.GL_UNSIGNED_BYTE;
234 iFormat = alpha ? GL.GL_RGBA8 : GL.GL_RGB8;
237 dataFormat = alpha ? GL.GL_BGRA : GL.GL_RGB;
238 dataType = alpha ? GL2GL3.GL_UNSIGNED_INT_8_8_8_8_REV : GL.GL_UNSIGNED_BYTE;
241 gl.
glTexImage2D(GL.GL_TEXTURE_2D, 0, iFormat, width, height, 0, dataFormat, dataType,
null);
244 gl.
glFramebufferTexture2D(GL.GL_FRAMEBUFFER, GL.GL_COLOR_ATTACHMENT0 + colorAttachmentPoint, GL.GL_TEXTURE_2D, colorTexID, 0);
247 if( useDepthStencilTexture ) {
250 gl.
glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_DEPTH24_STENCIL8, width, height, 0, GL.GL_DEPTH_STENCIL, GL.GL_UNSIGNED_INT_24_8,
null);
251 gl.
glTexStorage2D(GL.GL_TEXTURE_2D, 1, GL.GL_DEPTH24_STENCIL8, width, height);
253 gl.
glTextureView(stencilViewID, GL.GL_TEXTURE_2D, depthStencilTexID, GL.GL_DEPTH24_STENCIL8, 0, 1, 0, 1);
256 gl.glTexParameteri (GL.GL_TEXTURE_2D, GL2ES3.GL_DEPTH_STENCIL_TEXTURE_MODE, GL2ES2.GL_DEPTH_COMPONENT);
261 gl.glTexParameteri (GL.GL_TEXTURE_2D, GL2ES3.GL_DEPTH_STENCIL_TEXTURE_MODE, GL2ES2.GL_STENCIL_INDEX);
264 gl.
glFramebufferTexture2D(GL.GL_FRAMEBUFFER, GL2ES3.GL_DEPTH_STENCIL_ATTACHMENT, GL.GL_TEXTURE_2D, depthStencilTexID, 0);
268 gl.
glFramebufferRenderbuffer(GL.GL_FRAMEBUFFER, GL2ES3.GL_DEPTH_STENCIL_ATTACHMENT, GL.GL_RENDERBUFFER, depthStencilRenderID);
272 if( GL.GL_FRAMEBUFFER_COMPLETE != fboStatus ) {
273 throw new GLException(
"FBO not complete, but 0x"+Integer.toHexString(fboStatus));
278 private void disposeFBO(
final GL gl) {
279 gl.glBindFramebuffer(GL.GL_FRAMEBUFFER, fboID);
280 gl.glFramebufferTexture2D(GL.GL_FRAMEBUFFER, GL.GL_COLOR_ATTACHMENT0 + colorAttachmentPoint, GL.GL_TEXTURE_2D, 0, 0);
281 if( useDepthStencilTexture ) {
282 gl.glFramebufferTexture2D(GL.GL_FRAMEBUFFER, GL.GL_DEPTH_ATTACHMENT, GL.GL_TEXTURE_2D, 0, 0);
284 gl.glFramebufferRenderbuffer(GL.GL_FRAMEBUFFER, GL.GL_DEPTH_ATTACHMENT, GL.GL_RENDERBUFFER, 0);
286 gl.glFramebufferRenderbuffer(GL.GL_FRAMEBUFFER, GL.GL_STENCIL_ATTACHMENT, GL.GL_RENDERBUFFER, 0);
287 gl.glBindTexture(GL.GL_TEXTURE_2D, 0);
289 final int tmp[] = { colorTexID };
290 gl.glDeleteTextures(1, tmp, 0);
292 if( useDepthStencilTexture ) {
293 final int tmp[] = { depthStencilTexID, stencilViewID };
294 gl.glDeleteTextures(2, tmp, 0);
296 final int tmp[] = { depthStencilRenderID };
297 gl.glDeleteRenderbuffers(1, tmp, 0);
302 depthStencilRenderID=0;
306 gl.glBindFramebuffer(GL.GL_FRAMEBUFFER, 0);
308 final int tmp[] = { fboID };
309 gl.glDeleteFramebuffers(1, tmp, 0);
313 private void resetFBOs(
final GL4 gl,
final int width,
final int height) {
314 if( fboWidth != width || fboHeight != height ) {
316 initFBO(gl, width, height);
319 private void resetStencil(
final GL2ES2 gl) {
321 gl.glStencilFunc(GL.GL_ALWAYS, 0, 0xFF);
322 gl.glStencilOp(GL.GL_KEEP, GL.GL_KEEP, GL.GL_KEEP);
323 gl.glStencilMask(0xFF);
334 pmvMatrixUniform =
null;
335 interleavedVBO =
null;
349 gl.
glViewport(viewport.x(), viewport.y(), fboWidth, fboHeight);
367 gl.
glViewport(viewport.x(), viewport.y(), fboWidth, fboHeight);
373 if(
null != demo2 ) {
380 final float panX = -1.4f, panY = -1.0f, panZ = 2.0f;
394 gl.
glViewport(viewport.x(), viewport.y(), fboWidth, fboHeight);
413 gl.
glViewport(viewport.x(), viewport.y(), viewport.width(), viewport.height());
417 gl.
glViewport(viewport.x()+fboWidth, viewport.y(), fboWidth, fboHeight);
437 gl.
glViewport(viewport.x(), viewport.y(), viewport.width(), viewport.height());
441 gl.
glViewport(viewport.x()+fboWidth, viewport.y()+fboHeight, fboWidth, fboHeight);
461 gl.
glViewport(viewport.x(), viewport.y(), viewport.width(), viewport.height());
470 viewport.
set(x, y, width, height);
472 System.err.println(
"**** Reshape.Reset: "+width+
"x"+height);
473 resetFBOs(gl, width/2, height/2);
475 gl.
glViewport(viewport.x(), viewport.y(), fboWidth, fboHeight);
477 demo.
reshape(drawable, x, y, fboWidth, fboHeight);
479 demo2.
reshape(drawable, x, y, fboWidth, fboHeight);
482 gl.
glViewport(viewport.x(), viewport.y(), viewport.width(), viewport.height());
488 pmvMatrix.
glOrthof(-1.0f, 1.0f, -1.0f, 1.0f, 0.0f, 10.0f);
494 st.
uniform(gl, pmvMatrixUniform);
499 private static final float[] s_quadVertices = {
505 private static final float[] s_quadColors = {
510 private static final float[] s_quadTexCoords = {
517 public static void main(
final String[] args) {
522 for (
int i = 0; i < args.length; ++i) {
523 if(args[i].equals(
"-demo2") && i+1 < args.length) {
529 System.err.println(VersionUtil.getPlatformInfo());
531 System.err.println(options);
534 System.out.println(
"Requested: " + reqCaps);
535 System.out.println(
"Demo2 Type: " + demo2Type);
547 animator.
add(window);
Rectangle with x, y, width and height integer components.
void set(final Recti o)
this = o, returns this.
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,...
final void setTitle(final String title)
final void setSize(final int width, final int height)
Sets the size of the window's client area in window units, excluding decorations.
final void setVisible(final boolean visible)
Calls setVisible(true, visible), i.e.
final void addWindowListener(final WindowListener l)
Appends the given com.jogamp.newt.event.WindowListener to the end of the list.
CapabilitiesChooser setCapabilitiesChooser(final CapabilitiesChooser chooser)
Set the CapabilitiesChooser to help determine the native visual type.
static GLWindow create(final GLCapabilitiesImmutable caps)
Creates a new GLWindow attaching a new Window referencing a new default Screen and default Display wi...
Specifies a set of OpenGL capabilities.
A generic exception for OpenGL errors used throughout the binding as a substitute for RuntimeExceptio...
Specifies the the OpenGL profile.
static final String GL4
The desktop OpenGL core profile 4.x, with x >= 0.
void setClearStencilBuffer(final boolean v)
void setGearsColor(final int idx, final float r, final float g, final float b, final float a)
void display(final GLAutoDrawable drawable)
Called by the drawable to initiate OpenGL rendering by the client.
void init(final GLAutoDrawable drawable)
Called by the drawable immediately after the OpenGL context is initialized.
void dispose(final GLAutoDrawable drawable)
Notifies the listener to perform the release of all OpenGL resources per GLContext,...
void setClearBuffers(final boolean v)
void addPanning(final float x, final float y, final float z)
void setRotX(final float v)
void setScale(final float v)
void setRotY(final float v)
void reshape(final GLAutoDrawable glad, 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.
FBO demo using a texture attachment for color- and combined depth + stencil-buffer.
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.
void dispose(final GLAutoDrawable drawable)
Notifies the listener to perform the release of all OpenGL resources per GLContext,...
GearsFBO02(final int demo2Type, final int swapInterval)
void display(final GLAutoDrawable drawable)
Called by the drawable to initiate OpenGL rendering by the client.
void init(final GLAutoDrawable drawable)
Called by the drawable immediately after the OpenGL context is initialized.
static void main(final String[] args)
GLCapabilities getGLCaps()
void setGLProfile(final String name)
static int atoi(final String str, final int def)
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.
final synchronized boolean stop()
Stops this animator.
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.
final void glMatrixMode(final int matrixName)
Sets the current matrix mode.
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.
final void glLoadIdentity()
Load the current matrix with the identity matrix.
Custom GLCapabilitiesChooser, filtering out all full screen anti-aliasing (FSAA, multisample) capabil...
Convenient shader code class to use and instantiate vertex or fragment programs.
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.
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...
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...
void glTextureView(int texture, int target, int origtexture, int internalformat, int minlevel, int numlevels, int minlayer, int numlayers)
Entry point to C language function: void {@native glTextureView}(GLuint texture, GLenum target,...
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.
boolean isGLES()
Indicates whether this GL object conforms to one of the OpenGL ES profiles, see isGLES1(),...
GL2ES2 getGL2ES2()
Casts this object to the GL2ES2 interface.
GL4 getGL4()
Casts this object to the GL4 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.
boolean isGLES3()
Indicates whether this GL object conforms to the OpenGL ES ≥ 3.0 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 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.
void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level)
Entry point to C language function: void {@native glFramebufferTexture2D}(GLenum target,...
static final int GL_TEXTURE_MAG_FILTER
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_TEXTURE_MAG_FILTER" with expression '...
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_ALWAYS
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_ALWAYS" with expression '0x0207',...
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...
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',...
static final int GL_TEXTURE_WRAP_S
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_TEXTURE_WRAP_S" with expression '0x28...
void glBindTexture(int target, int texture)
Entry point to C language function: void {@native glBindTexture}(GLenum target, GLuint texture) Pa...
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',...
void glGenTextures(int n, IntBuffer textures)
Entry point to C language function: void {@native glGenTextures}(GLsizei n, GLuint * textures) Par...
void glStencilOp(int fail, int zfail, int zpass)
Entry point to C language function: void {@native glStencilOp}(GLenum fail, GLenum zfail,...
int glCheckFramebufferStatus(int target)
Entry point to C language function: GLenum {@native glCheckFramebufferStatus}(GLenum target) Part ...
void glTexStorage2D(int target, int levels, int internalformat, int width, int height)
Entry point to C language function: void {@native glTexStorage2D}(GLenum target, GLsizei levels,...
void glRenderbufferStorage(int target, int internalformat, int width, int height)
Entry point to C language function: void {@native glRenderbufferStorage}(GLenum target,...
void glGenFramebuffers(int n, IntBuffer framebuffers)
Entry point to C language function: void {@native glGenFramebuffers}(GLsizei n, GLuint * framebuffer...
static final int GL_TEXTURE_MIN_FILTER
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_TEXTURE_MIN_FILTER" with expression '...
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...
void glBindRenderbuffer(int target, int renderbuffer)
Entry point to C language function: void {@native glBindRenderbuffer}(GLenum target,...
void glFramebufferRenderbuffer(int target, int attachment, int renderbuffertarget, int renderbuffer)
Entry point to C language function: void {@native glFramebufferRenderbuffer}(GLenum target,...
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_KEEP
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_KEEP" with expression '0x1E00',...
static final int GL_TEXTURE_WRAP_T
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_TEXTURE_WRAP_T" with expression '0x28...
void glStencilFunc(int func, int ref, int mask)
Entry point to C language function: void {@native glStencilFunc}(GLenum func, GLint ref,...
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',...
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_...
void glTexParameteri(int target, int pname, int param)
Entry point to C language function: void {@native glTexParameteri}(GLenum target,...
void glStencilMask(int mask)
Entry point to C language function: void {@native glStencilMask}(GLuint mask) Part of GL_ES_VERSIO...
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...
void glBindFramebuffer(int target, int framebuffer)
Entry point to C language function: void {@native glBindFramebuffer}(GLenum target,...
static final int GL_NEAREST
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_NEAREST" with expression '0x2600',...
void glFinish()
Entry point to C language function: void {@native glFinish}() Part of GL_ES_VERSION_2_0,...
void glViewport(int x, int y, int width, int height)
Entry point to C language function: void {@native glViewport}(GLint x, GLint y, GLsizei width,...
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 ...
static final int GL_NOTEQUAL
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_NOTEQUAL" with expression '0x0205',...
static final int GL_STENCIL_TEST
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_STENCIL_TEST" with expression '0x0B90...
void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels)
Entry point to C language function: void {@native glTexImage2D}(GLenum target, GLint level,...
static final int GL_REPLACE
GL_ES_VERSION_2_0, GL_VERSION_1_0, GL_VERSION_ES_1_0, GL_EXT_texture Alias for: GL_REPLACE_EXT Defin...
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...
static final int GL_CLAMP_TO_EDGE
GL_ES_VERSION_2_0, GL_VERSION_1_2, GL_VERSION_ES_1_0, GL_SGIS_texture_edge_clamp Alias for: GL_CLAMP_...
void glGenRenderbuffers(int n, IntBuffer renderbuffers)
Entry point to C language function: void {@native glGenRenderbuffers}(GLsizei n, GLuint * renderbuff...
static final int GL_FRAMEBUFFER
GL_ES_VERSION_2_0, GL_ARB_framebuffer_object, GL_VERSION_3_0, GL_OES_framebuffer_object,...
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...
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.