PageRenderTime 25ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/Research/Example projects/Android OGL/AndroidGL/src/edu/union/GLTutorialOne.java

https://bitbucket.org/DeveloperUX/behaviortree
Java | 24 lines | 15 code | 5 blank | 4 comment | 0 complexity | 29ee03029574bf963e0e5609026380f0 MD5 | raw file
 1package edu.union;
 2
 3import javax.microedition.khronos.opengles.GL10;
 4
 5import android.content.Context;
 6
 7/**
 8 * http://www.zeuscmd.com/tutorials/opengles/06-Rendering.php
 9 * @author bburns
10 */
11public class GLTutorialOne extends GLTutorialBase {
12	public GLTutorialOne(Context c) {
13		super(c);
14	}
15	
16	protected void init(GL10 gl) {
17		gl.glClearColor(0, 0, 0, 1);
18		gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST);
19	}
20	
21	public void onDrawFrame(GL10 gl) {
22		gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
23	}
24}