From dcf2f354963c8cdf5d70263782979cf1bd18b0bf Mon Sep 17 00:00:00 2001 From: Scott Main Date: Tue, 17 May 2011 10:17:26 -0700 Subject: docs: simple update to OpenGl doc to update version support Note, this doc still needs a lot more work; this is a small step bug: 4395265 Change-Id: Ibe3fd816e88aa2b20ca99859b929164715f67027 --- docs/html/guide/topics/graphics/opengl.jd | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'docs') diff --git a/docs/html/guide/topics/graphics/opengl.jd b/docs/html/guide/topics/graphics/opengl.jd index 1f51c2d..9f88954 100644 --- a/docs/html/guide/topics/graphics/opengl.jd +++ b/docs/html/guide/topics/graphics/opengl.jd @@ -5,13 +5,15 @@ parent.link=index.html

Android includes support for high performance 3D graphics -via the OpenGL API — specifically, the OpenGL ES API.

+via the OpenGL API—specifically, the OpenGL ES API.

-

OpenGL ES is a flavor of the OpenGL specification intended for embedded -devices. Versions of OpenGL ES are loosely peered to versions of the primary -OpenGL standard. Android currently supports OpenGL ES 1.0, which corresponds -to OpenGL 1.3. So, if the application you have in mind is possible with OpenGL -1.3 on a desktop system, it should be possible on Android.

+

OpenGL ES is a flavor of the OpenGL specification intended for embedded devices. Versions of OpenGL ES are loosely peered to versions of the primary +OpenGL standard. Beginning with Android 2.2, the platform supports OpenGL ES 2.0 (with +backward compatibility support for OpenGL ES 1.1). For information about the relative number of +Android-powered devices that support a given version of OpenGL ES, see the OpenGL ES Versions +dashboard.

The specific API provided by Android is similar to the J2ME JSR239 OpenGL ES API. However, it may not be identical, so watch out for deviations.

@@ -21,17 +23,18 @@ ES API. However, it may not be identical, so watch out for deviations.

Here's how to use the API at an extremely high level:

    -
  1. Write a custom View subclass.
  2. +
  3. Write a custom {@link android.view.View} subclass.
  4. Obtain a handle to an OpenGLContext, which provides access to the OpenGL functionality.
  5. -
  6. In your View's onDraw() method, get a handle to a GL object, and use its methods to perform GL operations.
  7. +
  8. In your View's {@link android.view.View#onDraw onDraw()} method, get a handle to a GL object, +and use its methods to perform GL operations.
-

For an example of this usage model (based on the classic GL ColorCube), showing how to use -it with threads can be found in -com.android.samples.graphics.GLSurfaceViewActivity.java. +

Several samples using OpenGL ES are available in the API +Demos sample application.

-

Writing a summary of how to actually write 3D applications using OpenGL is +

A summary of how to actually write 3D applications using OpenGL is beyond the scope of this text and is left as an exercise for the reader.

Links to Additional Information

@@ -45,9 +48,6 @@ about OpenGL ES 1.0 (including a detailed specification) can be found at http://www.khronos.org/opengles/1_X/.

-

The documentation for the Android {@link javax.microedition.khronos.opengles -OpenGL ES implementations} are also available.

+

The documentation for the Android OpenGL ES implementations are available in {@link +android.opengl} and {@link javax.microedition.khronos.opengles}.

-

Finally, note that though Android does include some basic support for -OpenGL ES 1.1, the support is not complete, and should not be relied -upon at this time.

-- cgit v1.1