Lines Matching defs:gl
186 public void createBufferObjects(GL gl) {
189 GL11 gl11 = (GL11) gl;
209 public void draw(GL10 gl) {
210 GL11 gl11 = (GL11) gl;
212 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
219 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
230 public void onDrawFrame(GL10 gl) {
231 gl.glClearColor(0,0,1,1);
232 gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
233 mGrid.draw(gl);
236 public void onSurfaceChanged(GL10 gl, int width, int height) {
237 gl.glViewport(0, 0, width, height);
238 gl.glMatrixMode(GL11.GL_PROJECTION);
239 gl.glLoadIdentity();
240 gl.glOrthof(0, width, height, 0, -1, 1);
241 gl.glMatrixMode(GL11.GL_MODELVIEW);
242 createGrid(gl, width, height);
245 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
248 private void createGrid(GL10 gl, float w, float h) {
258 mGrid.createBufferObjects(gl);