• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

development


Commit MetaInfo

Revisão46a1d902174efe99c6b4048d6dfa78ef7916f937 (tree)
Hora2009-03-25 14:49:05
AutorJack Palevich <>
CommiterThe Android Open Source Project

Mensagem de Log

Automated import from //branches/donutburger/...@142486,142486

Mudança Sumário

Diff

--- a/samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java
@@ -34,6 +34,10 @@ public class TranslucentGLSurfaceViewActivity extends Activity {
3434 // Create our Preview view and set it as the content of our
3535 // Activity
3636 mGLSurfaceView = new GLSurfaceView(this);
37+ // We want an 8888 pixel format because that's required for
38+ // a translucent window.
39+ // And we want a depth buffer.
40+ mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
3741 // Tell the cube renderer that we want to render a translucent version
3842 // of the cube:
3943 mGLSurfaceView.setRenderer(new CubeRenderer(true));
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java
@@ -26,6 +26,7 @@ public class TriangleActivity extends Activity {
2626 protected void onCreate(Bundle savedInstanceState) {
2727 super.onCreate(savedInstanceState);
2828 mGLView = new GLSurfaceView(this);
29+ mGLView.setEGLConfigChooser(false);
2930 mGLView.setRenderer(new TriangleRenderer(this));
3031 setContentView(mGLView);
3132 }
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleRenderer.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleRenderer.java
@@ -44,16 +44,6 @@ public class TriangleRenderer implements GLSurfaceView.Renderer{
4444 mTriangle = new Triangle();
4545 }
4646
47- public int[] getConfigSpec() {
48- // We don't need a depth buffer, and don't care about our
49- // color depth.
50- int[] configSpec = {
51- EGL10.EGL_DEPTH_SIZE, 0,
52- EGL10.EGL_NONE
53- };
54- return configSpec;
55- }
56-
5747 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
5848 /*
5949 * By default, OpenGL enables features that improve quality
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/kube/KubeRenderer.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/kube/KubeRenderer.java
@@ -74,15 +74,6 @@ class KubeRenderer implements GLSurfaceView.Renderer {
7474 mWorld.draw(gl);
7575 }
7676
77- public int[] getConfigSpec() {
78- // Need a depth buffer, don't care about color depth.
79- int[] configSpec = {
80- EGL10.EGL_DEPTH_SIZE, 16,
81- EGL10.EGL_NONE
82- };
83- return configSpec;
84- }
85-
8677 public void onSurfaceChanged(GL10 gl, int width, int height) {
8778 gl.glViewport(0, 0, width, height);
8879
--- a/samples/Compass/src/com/example/android/compass/CompassActivity.java
+++ b/samples/Compass/src/com/example/android/compass/CompassActivity.java
@@ -89,16 +89,6 @@ public class CompassActivity extends Activity implements Renderer, SensorEventLi
8989 mSensorManager.unregisterListener(this);
9090 }
9191
92- public int[] getConfigSpec() {
93- // We want a depth buffer, don't care about the
94- // details of the color buffer.
95- int[] configSpec = {
96- EGL10.EGL_DEPTH_SIZE, 16,
97- EGL10.EGL_NONE
98- };
99- return configSpec;
100- }
101-
10292 public void onDrawFrame(GL10 gl) {
10393 /*
10494 * Usually, the first thing one might want to do is to clear