Lines Matching refs:gl
67 * @param gl A pointer to the OpenGL context.
71 public static void beginDrawing(GL10 gl, float viewWidth, float viewHeight) {
72 gl.glShadeModel(GL10.GL_FLAT);
73 gl.glEnable(GL10.GL_BLEND);
74 gl.glBlendFunc(GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA);
75 gl.glColor4x(0x10000, 0x10000, 0x10000, 0x10000);
77 gl.glMatrixMode(GL10.GL_PROJECTION);
78 gl.glPushMatrix();
79 gl.glLoadIdentity();
80 gl.glOrthof(0.0f, viewWidth, 0.0f, viewHeight, 0.0f, 1.0f);
81 gl.glMatrixMode(GL10.GL_MODELVIEW);
82 gl.glPushMatrix();
83 gl.glLoadIdentity();
85 gl.glEnable(GL10.GL_TEXTURE_2D);
93 * @param gl A pointer to the OpenGL context
101 GL10 gl = OpenGLSystem.getGL();
104 if (gl != null && texture != null) {
135 gl.glColor4f(opacity, opacity, opacity, opacity);
138 ((GL11Ext) gl).glDrawTexfOES(snappedX * scaleX, snappedY * scaleY,
142 gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
151 * @param gl A pointer to the OpenGL context.
153 public static void endDrawing(GL10 gl) {
154 gl.glDisable(GL10.GL_BLEND);
155 gl.glMatrixMode(GL10.GL_PROJECTION);
156 gl.glPopMatrix();
157 gl.glMatrixMode(GL10.GL_MODELVIEW);
158 gl.glPopMatrix();