summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-08-21 11:48:50 -0700
committerJack Palevich <jackpal@google.com>2009-08-21 11:48:50 -0700
commit83d8d83ad1f2c9aee0db9a5a1329cfc64801bc3a (patch)
tree9fb818cb2cf769b70ac9e4590347b783957dc7f8 /samples
parenteec015ad1465431b0942214c730f6bd6344c8c76 (diff)
downloadandroid_development-83d8d83ad1f2c9aee0db9a5a1329cfc64801bc3a.tar.gz
android_development-83d8d83ad1f2c9aee0db9a5a1329cfc64801bc3a.tar.bz2
android_development-83d8d83ad1f2c9aee0db9a5a1329cfc64801bc3a.zip
Remove unused getConfigSpec methods from ApiDemos sample code
At one time during the development of GLSurfaceView, the GLSurfaceView.Renderer interface had a getConfigSpec method that was used to select the frame buffer format. This method was removed from the Renderer interface before GLSurfaceView became a public API, but the sample code still defined these now-unused methods. To reduce the chance of confusing a developer who uses the sample code, this change removes the dead, no-longer-called getConfigSpec implementations from the three samples. See GLSurfaceView.setEGLConfigChooser for the replacement technique.
Diffstat (limited to 'samples')
-rw-r--r--samples/ApiDemos/src/com/example/android/apis/graphics/CubeRenderer.java23
-rw-r--r--samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.java10
-rw-r--r--samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/SpriteTextRenderer.java10
3 files changed, 0 insertions, 43 deletions
diff --git a/samples/ApiDemos/src/com/example/android/apis/graphics/CubeRenderer.java b/samples/ApiDemos/src/com/example/android/apis/graphics/CubeRenderer.java
index 527e2bc04..0f15f9131 100644
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/CubeRenderer.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/CubeRenderer.java
@@ -64,29 +64,6 @@ class CubeRenderer implements GLSurfaceView.Renderer {
mAngle += 1.2f;
}
- public int[] getConfigSpec() {
- if (mTranslucentBackground) {
- // We want a depth buffer and an alpha buffer
- int[] configSpec = {
- EGL10.EGL_RED_SIZE, 8,
- EGL10.EGL_GREEN_SIZE, 8,
- EGL10.EGL_BLUE_SIZE, 8,
- EGL10.EGL_ALPHA_SIZE, 8,
- EGL10.EGL_DEPTH_SIZE, 16,
- EGL10.EGL_NONE
- };
- return configSpec;
- } else {
- // We want a depth buffer, don't care about the
- // details of the color buffer.
- int[] configSpec = {
- EGL10.EGL_DEPTH_SIZE, 16,
- EGL10.EGL_NONE
- };
- return configSpec;
- }
- }
-
public void onSurfaceChanged(GL10 gl, int width, int height) {
gl.glViewport(0, 0, width, height);
diff --git a/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.java b/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.java
index 09d369441..c0f32a71a 100644
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.java
@@ -134,16 +134,6 @@ class TouchSurfaceView extends GLSurfaceView {
mCube.draw(gl);
}
- public int[] getConfigSpec() {
- // We want a depth buffer, don't care about the
- // details of the color buffer.
- int[] configSpec = {
- EGL10.EGL_DEPTH_SIZE, 16,
- EGL10.EGL_NONE
- };
- return configSpec;
- }
-
public void onSurfaceChanged(GL10 gl, int width, int height) {
gl.glViewport(0, 0, width, height);
diff --git a/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/SpriteTextRenderer.java b/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/SpriteTextRenderer.java
index b9369cd7c..223300a8d 100644
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/SpriteTextRenderer.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/SpriteTextRenderer.java
@@ -50,16 +50,6 @@ public class SpriteTextRenderer implements GLSurfaceView.Renderer{
mLabelPaint.setARGB(0xff, 0x00, 0x00, 0x00);
}
- public int[] getConfigSpec() {
- // We don't need a depth buffer, and don't care about our
- // color depth.
- int[] configSpec = {
- EGL10.EGL_DEPTH_SIZE, 0,
- EGL10.EGL_NONE
- };
- return configSpec;
- }
-
public void onSurfaceCreated(GL10 gl, EGLConfig config) {
/*
* By default, OpenGL enables features that improve quality