diff options
author | Joe Fernandez <joefernandez@google.com> | 2013-11-15 10:33:41 -0800 |
---|---|---|
committer | Joe Fernandez <joefernandez@google.com> | 2013-11-15 11:55:33 -0800 |
commit | feaaea5b415283160f3255b75903be1df3b728e3 (patch) | |
tree | ac76cb0ab6230b439466d2c3a73184df34d77a69 /docs/html/training/graphics/opengl/environment.jd | |
parent | c5cdd5411204632494c77d7638acd21b19b16c88 (diff) | |
download | frameworks_base-feaaea5b415283160f3255b75903be1df3b728e3.zip frameworks_base-feaaea5b415283160f3255b75903be1df3b728e3.tar.gz frameworks_base-feaaea5b415283160f3255b75903be1df3b728e3.tar.bz2 |
docs: code fixes for OpenGL ES training
code sample fixes reviewed separately,
see Change-Id: I1d760b75d1f2bfe1ec90c71471867577bd146241
fixing bugs:
b/10798358
b/10796990
b/10603728
b/7962328
Change-Id: I1e0f6668ec8d2b103b88c385f1f067d30ecc7178
Diffstat (limited to 'docs/html/training/graphics/opengl/environment.jd')
-rw-r--r-- | docs/html/training/graphics/opengl/environment.jd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/html/training/graphics/opengl/environment.jd b/docs/html/training/graphics/opengl/environment.jd index e1e2c8a..77faabf 100644 --- a/docs/html/training/graphics/opengl/environment.jd +++ b/docs/html/training/graphics/opengl/environment.jd @@ -92,7 +92,7 @@ also add a {@link android.opengl.GLSurfaceView}.</p> {@link android.opengl.GLSurfaceView} as its primary view:</p> <pre> -public class OpenGLES20 extends Activity { +public class OpenGLES20Activity extends Activity { private GLSurfaceView mGLView; @@ -190,11 +190,11 @@ the geometry of the view changes, for example when the device's screen orientati gray background in the {@link android.opengl.GLSurfaceView}:</p> <pre> -public class MyGL20Renderer implements GLSurfaceView.Renderer { +public class MyGLRenderer implements GLSurfaceView.Renderer { public void onSurfaceCreated(GL10 unused, EGLConfig config) { // Set the background frame color - GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); + GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); } public void onDrawFrame(GL10 unused) { |