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

1 2 3 4 5

  /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...]
  /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);
  /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/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...]
  /frameworks/native/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/tests/tests/openglperf/src/android/openglperf/cts/
TextureTestRenderer.java 31 import javax.microedition.khronos.opengles.GL10;
80 public void onDrawFrame(GL10 gl) {
82 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
84 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE,
85 GL10.GL_REPLACE);
88 gl.glMatrixMode(GL10.GL_MODELVIEW);
94 gl.glActiveTexture(GL10.GL_TEXTURE0);
95 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID)
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
OpenGLSystem.java 19 import javax.microedition.khronos.opengles.GL10;
30 private static GL10 sGL;
39 public OpenGLSystem(GL10 gl) {
43 public static final void setGL(GL10 gl) {
49 public static final GL10 getGL() {
67 ((GL11) sGL).glTexParameteriv(GL10.GL_TEXTURE_2D, GL11Ext.GL_TEXTURE_CROP_RECT_OES,
TextureLibrary.java 22 import javax.microedition.khronos.opengles.GL10;
82 public Texture loadTexture(Context context, GL10 gl, int resourceID) {
89 public void loadAll(Context context, GL10 gl) {
98 public void deleteAll(GL10 gl) {
107 if (error != GL10.GL_NO_ERROR) {
111 assert error == GL10.GL_NO_ERROR;
127 protected Texture loadBitmap(Context context, GL10 gl, Texture texture) {
135 if (error != GL10.GL_NO_ERROR) {
139 assert error == GL10.GL_NO_ERROR;
143 gl.glBindTexture(GL10.GL_TEXTURE_2D, textureName)
    [all...]
GameRenderer.java 24 import javax.microedition.khronos.opengles.GL10;
80 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
85 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST);
88 gl.glShadeModel(GL10.GL_FLAT);
89 gl.glDisable(GL10.GL_DEPTH_TEST);
90 gl.glEnable(GL10.GL_TEXTURE_2D);
96 gl.glDisable(GL10.GL_DITHER);
97 gl.glDisable(GL10.GL_LIGHTING);
99 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_MODULATE)
    [all...]
GLErrorLogger.java 25 import javax.microedition.khronos.opengles.GL10;
38 static class ErrorLoggingGL implements GL, GL10, GL10Ext, GL11, GL11Ext {
47 int error = ((GL10)mGL).glGetError();
48 if (error != GL10.GL_NO_ERROR) {
53 assert error == GL10.GL_NO_ERROR;
57 ((GL10) mGL).glActiveTexture(texture);
62 ((GL10)mGL).glAlphaFunc(func, ref);
67 ((GL10)mGL).glAlphaFuncx(func, ref);
72 ((GL10)mGL).glBindTexture(target, texture);
77 ((GL10)mGL).glBlendFunc(sfactor, dfactor)
    [all...]
DrawableBitmap.java 19 import javax.microedition.khronos.opengles.GL10;
71 public static void beginDrawing(GL10 gl, float viewWidth, float viewHeight) {
72 gl.glShadeModel(GL10.GL_FLAT);
73 gl.glEnable(GL10.GL_BLEND);
74 gl.glBlendFunc(GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA);
77 gl.glMatrixMode(GL10.GL_PROJECTION);
81 gl.glMatrixMode(GL10.GL_MODELVIEW);
85 gl.glEnable(GL10.GL_TEXTURE_2D);
101 GL10 gl = OpenGLSystem.getGL()
    [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/native/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...]
  /cts/tests/tests/opengl/src/android/opengl/cts/
RendererBase.java 20 import javax.microedition.khronos.opengles.GL10;
46 public void onSurfaceChanged(GL10 gl, int width, int height) {
58 public void onDrawFrame(GL10 gl) {
68 public void doOnDrawFrame(GL10 gl) {
  /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/native/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) {

Completed in 1122 milliseconds

1 2 3 4 5