HomeSort by relevance Sort by last modified time
    Searched refs:GL10 (Results 1 - 25 of 83) sorted by null

1 2 3 4

  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
MatrixGrabber.java 19 import javax.microedition.khronos.opengles.GL10;
32 public void getCurrentState(GL10 gl) {
42 public void getCurrentModelView(GL10 gl) {
43 getMatrix(gl, GL10.GL_MODELVIEW, mModelView);
51 public void getCurrentProjection(GL10 gl) {
52 getMatrix(gl, GL10.GL_PROJECTION, mProjection);
55 private void getMatrix(GL10 gl, int mode, float[] mat) {
SpriteTextRenderer.java 27 import javax.microedition.khronos.opengles.GL10;
53 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
59 gl.glDisable(GL10.GL_DITHER);
65 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,
66 GL10.GL_FASTEST);
69 gl.glShadeModel(GL10.GL_SMOOTH);
70 gl.glEnable(GL10.GL_DEPTH_TEST);
71 gl.glEnable(GL10.GL_TEXTURE_2D);
82 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);
84 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER
    [all...]
LabelMaker.java 29 import javax.microedition.khronos.opengles.GL10;
80 public void initialize(GL10 gl) {
85 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);
88 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER,
89 GL10.GL_NEAREST);
90 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER,
91 GL10.GL_NEAREST);
93 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S
    [all...]
Grid.java 24 import javax.microedition.khronos.opengles.GL10;
115 public void draw(GL10 gl, boolean useTexture) {
116 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
117 gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mVertexBuffer);
120 gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
121 gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, mTexCoordBuffer);
122 gl.glEnable(GL10.GL_TEXTURE_2D);
124 gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
125 gl.glDisable(GL10.GL_TEXTURE_2D);
128 gl.glDrawElements(GL10.GL_TRIANGLES, mIndexCount
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
TriangleRenderer.java 27 import javax.microedition.khronos.opengles.GL10;
46 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
52 gl.glDisable(GL10.GL_DITHER);
58 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,
59 GL10.GL_FASTEST);
62 gl.glShadeModel(GL10.GL_SMOOTH);
63 gl.glEnable(GL10.GL_DEPTH_TEST);
64 gl.glEnable(GL10.GL_TEXTURE_2D);
75 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);
77 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER
    [all...]
CubeRenderer.java 20 import javax.microedition.khronos.opengles.GL10;
34 public void onDrawFrame(GL10 gl) {
41 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
47 gl.glMatrixMode(GL10.GL_MODELVIEW);
53 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
54 gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
66 public void onSurfaceChanged(GL10 gl, int width, int height) {
76 gl.glMatrixMode(GL10.GL_PROJECTION);
81 public void onSurfaceCreated(GL10 gl, EGLConfig config)
    [all...]
FrameBufferObjectActivity.java 21 import javax.microedition.khronos.opengles.GL10;
60 public void onDrawFrame(GL10 gl) {
76 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
80 public void onSurfaceChanged(GL10 gl, int width, int height) {
87 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
98 private void drawOnscreen(GL10 gl, int width, int height) {
101 gl.glMatrixMode(GL10.GL_PROJECTION);
106 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT)
    [all...]
TouchRotateActivity.java 20 import javax.microedition.khronos.opengles.GL10;
111 public void onDrawFrame(GL10 gl) {
118 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
124 gl.glMatrixMode(GL10.GL_MODELVIEW);
130 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
131 gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
136 public void onSurfaceChanged(GL10 gl, int width, int height) {
146 gl.glMatrixMode(GL10.GL_PROJECTION);
151 public void onSurfaceCreated(GL10 gl, EGLConfig config)
    [all...]
MatrixPaletteRenderer.java 28 import javax.microedition.khronos.opengles.GL10;
204 public void draw(GL10 gl) {
208 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
211 gl11.glVertexPointer(3, GL10.GL_FLOAT, VERTEX_SIZE, 0);
212 gl11.glTexCoordPointer(2, GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_TEXTURE_BUFFER_INDEX_OFFSET * FLOAT_SIZE);
217 gl11Ext.glWeightPointerOES(2, GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_WEIGHT_BUFFER_INDEX_OFFSET * FLOAT_SIZE);
218 gl11Ext.glMatrixIndexPointerOES(2, GL10.GL_UNSIGNED_BYTE, VERTEX_SIZE, VERTEX_PALETTE_INDEX_OFFSET );
221 gl11.glDrawElements(GL10.GL_TRIANGLES, mIndexCount, GL10.GL_UNSIGNED_SHORT, 0);
222 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY)
    [all...]
Cube.java 23 import javax.microedition.khronos.opengles.GL10;
89 public void draw(GL10 gl)
91 gl.glFrontFace(GL10.GL_CW);
92 gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer);
93 gl.glColorPointer(4, GL10.GL_FIXED, 0, mColorBuffer);
94 gl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_BYTE, mIndexBuffer);
CubeMapActivity.java 28 import javax.microedition.khronos.opengles.GL10;
57 public void onDrawFrame(GL10 gl) {
66 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
67 gl.glEnable(GL10.GL_DEPTH_TEST);
68 gl.glMatrixMode(GL10.GL_MODELVIEW);
75 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
80 gl.glActiveTexture(GL10.GL_TEXTURE0);
93 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_DECAL)
    [all...]
  /development/samples/BrowserPlugin/src/com/android/sampleplugin/graphics/
CubeRenderer.java 21 import javax.microedition.khronos.opengles.GL10;
35 public void onDrawFrame(GL10 gl) {
42 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
48 gl.glMatrixMode(GL10.GL_MODELVIEW);
54 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
55 gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
67 public void onSurfaceChanged(GL10 gl, int width, int height) {
77 gl.glMatrixMode(GL10.GL_PROJECTION);
82 public void onSurfaceCreated(GL10 gl, EGLConfig config)
    [all...]
  /development/samples/GlobalTime/src/com/android/globaltime/
Sphere.java 19 import javax.microedition.khronos.opengles.GL10;
25 super(GL10.GL_TRIANGLES, GL10.GL_UNSIGNED_SHORT,
PointCloud.java 19 import javax.microedition.khronos.opengles.GL10;
44 super(GL10.GL_POINTS, GL10.GL_UNSIGNED_SHORT,
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
KubeRenderer.java 22 import javax.microedition.khronos.opengles.GL10;
39 public void onDrawFrame(GL10 gl) {
53 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
59 gl.glMatrixMode(GL10.GL_MODELVIEW);
67 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
68 gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
69 gl.glEnable(GL10.GL_CULL_FACE);
70 gl.glShadeModel(GL10.GL_SMOOTH);
71 gl.glEnable(GL10.GL_DEPTH_TEST)
    [all...]
GLWorld.java 26 import javax.microedition.khronos.opengles.GL10;
72 public void draw(GL10 gl)
78 gl.glFrontFace(GL10.GL_CW);
79 gl.glShadeModel(GL10.GL_FLAT);
80 gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer);
81 gl.glColorPointer(4, GL10.GL_FIXED, 0, mColorBuffer);
82 gl.glDrawElements(GL10.GL_TRIANGLES, mIndexCount, GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
  /frameworks/base/opengl/tests/gldual/src/com/android/gldual/
TriangleRenderer.java 25 import javax.microedition.khronos.opengles.GL10;
37 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
43 gl.glDisable(GL10.GL_DITHER);
49 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,
50 GL10.GL_FASTEST);
53 gl.glShadeModel(GL10.GL_SMOOTH);
56 public void onDrawFrame(GL10 gl) {
62 gl.glDisable(GL10.GL_DITHER);
70 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
AccelerometerTestRenderer.java 27 import javax.microedition.khronos.opengles.GL10;
149 public void draw(GL10 gl) {
150 gl.glFrontFace(GL10.GL_CCW);
151 gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mFVertexBuffer);
152 gl.glEnable(GL10.GL_TEXTURE_2D);
153 gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, mTexBuffer);
154 gl.glDrawElements(GL10.GL_TRIANGLE_STRIP, 24, GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
238 public void onDrawFrame(GL10 gl) {
240 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_MODULATE)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/os/
RotationVectorDemo.java 23 import javax.microedition.khronos.opengles.GL10;
122 public void onDrawFrame(GL10 gl) {
124 gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
127 gl.glMatrixMode(GL10.GL_MODELVIEW);
133 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
134 gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
139 public void onSurfaceChanged(GL10 gl, int width, int height) {
144 gl.glMatrixMode(GL10.GL_PROJECTION);
149 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
151 gl.glDisable(GL10.GL_DITHER)
    [all...]
  /frameworks/base/opengl/tests/lighting1709/src/com/android/lightingtest/
ClearActivity.java 25 import javax.microedition.khronos.opengles.GL10;
70 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
74 public void onSurfaceChanged(GL10 gl, int w, int h) {
76 gl.glMatrixMode(GL10.GL_PROJECTION);
89 gl.glMatrixMode(GL10.GL_MODELVIEW);
94 public void onDrawFrame(GL10 gl) {
95 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
113 gl.glDisable(GL10.GL_DITHER);
115 gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_AMBIENT, lightAmbient, 0)
    [all...]
  /frameworks/base/opengl/java/android/opengl/
GLWrapperBase.java 20 import javax.microedition.khronos.opengles.GL10;
31 implements GL, GL10, GL10Ext, GL11, GL11Ext, GL11ExtensionPack {
33 mgl = (GL10) gl;
48 protected GL10 mgl;
GLU.java 19 import javax.microedition.khronos.opengles.GL10;
37 case GL10.GL_NO_ERROR:
39 case GL10.GL_INVALID_ENUM:
41 case GL10.GL_INVALID_VALUE:
43 case GL10.GL_INVALID_OPERATION:
45 case GL10.GL_STACK_OVERFLOW:
47 case GL10.GL_STACK_UNDERFLOW:
49 case GL10.GL_OUT_OF_MEMORY:
60 * @param gl a GL10 interface
71 public static void gluLookAt(GL10 gl, float eyeX, float eyeY, float eyeZ
    [all...]
  /frameworks/base/opengl/tests/testPauseResume/src/com/android/test/
TestView.java 44 import javax.microedition.khronos.opengles.GL10;
71 public void onDrawFrame(GL10 gl) {
75 public void onSurfaceChanged(GL10 gl, int width, int height) {
79 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
  /packages/apps/Nfc/src/com/android/nfc/
FireflyRenderThread.java 39 import javax.microedition.khronos.opengles.GL10;
51 GL10 mGL;
166 mGL.glBindTexture(GL10.GL_TEXTURE_2D, mTextureId);
168 mGL.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);
169 mGL.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);
171 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0)
    [all...]
  /cts/tests/src/android/opengl/cts/
OpenGlEsVersionStubActivity.java 28 import javax.microedition.khronos.opengles.GL10;
78 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
81 mVersionString = gl.glGetString(GL10.GL_VERSION);
88 public void onSurfaceChanged(GL10 gl, int width, int height) {
91 public void onDrawFrame(GL10 gl) {

Completed in 945 milliseconds

1 2 3 4