29package com.jogamp.opengl.test.junit.jogl.demos.es1;
31import com.jogamp.opengl.GL;
32import com.jogamp.opengl.GL2ES1;
33import com.jogamp.opengl.fixedfunc.GLMatrixFunc;
34import com.jogamp.opengl.glu.GLU;
35import com.jogamp.opengl.glu.gl2es1.GLUgl2es1;
37import com.jogamp.opengl.util.ImmModeSink;
45 public static void setup(
final GL2ES1 gl,
final int width,
final int height ) {
59 public static void render(
final GL2ES1 gl,
final int width,
final int height) {
78 immModeSink.
glEnd(gl,
true);
Provides access to the OpenGL Utility Library (GLU).
void gluOrtho2D(float left, float right, float bottom, float top)
A utility class to encapsulate drawing a single triangle for unit tests.
static void setup(final GL2ES1 gl, final int width, final int height)
static void render(final GL2ES1 gl, final int width, final int height)
final void glVertex2f(final float x, final float y)
static ImmModeSink createFixed(final int initialElementCount, final int vComps, final int vDataType, final int cComps, final int cDataType, final int nComps, final int nDataType, final int tComps, final int tDataType, final int glBufferUsage)
Uses a GL2ES1, or ES2 fixed function emulation immediate mode sink.
final void glColor3f(final float x, final float y, final float z)
final void glEnd(final GL gl)
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_TRIANGLES
GL_ES_VERSION_2_0, GL_VERSION_1_1, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_TRIANGLES" with expre...
static final int GL_FLOAT
GL_ES_VERSION_2_0, GL_VERSION_1_1, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_FLOAT" with expressio...
static final int GL_COLOR_BUFFER_BIT
GL_ES_VERSION_2_0, GL_VERSION_1_1, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_COLOR_BUFFER_BIT" wit...
void glClear(int mask)
Entry point to C language function: void {@native glClear}(GLbitfield mask) Part of GL_ES_VERSION_...
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,...
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.
void glLoadIdentity()
Load the current matrix with the identity matrix.
void glMatrixMode(int mode)
Sets the current matrix mode.