/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/ |
D | Triangle.java | 49 private final int mProgram; field in Triangle 91 mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program in Triangle() 92 GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program in Triangle() 93 GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program in Triangle() 94 GLES20.glLinkProgram(mProgram); // create OpenGL program executables in Triangle() 106 GLES20.glUseProgram(mProgram); in draw() 109 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition"); in draw() 121 mColorHandle = GLES20.glGetUniformLocation(mProgram, "vColor"); in draw() 127 mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in draw()
|
D | Square.java | 51 private final int mProgram; field in Square 100 mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program in Square() 101 GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program in Square() 102 GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program in Square() 103 GLES20.glLinkProgram(mProgram); // create OpenGL program executables in Square() 114 GLES20.glUseProgram(mProgram); in draw() 117 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition"); in draw() 129 mColorHandle = GLES20.glGetUniformLocation(mProgram, "vColor"); in draw() 135 mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in draw()
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
D | TextureRenderer.java | 27 private int mProgram; field in TextureRenderer 70 mProgram = GLToolbox.createProgram(VERTEX_SHADER, FRAGMENT_SHADER); in init() 73 mTexSamplerHandle = GLES20.glGetUniformLocation(mProgram, in init() 75 mTexCoordHandle = GLES20.glGetAttribLocation(mProgram, "a_texcoord"); in init() 76 mPosCoordHandle = GLES20.glGetAttribLocation(mProgram, "a_position"); in init() 90 GLES20.glDeleteProgram(mProgram); in tearDown() 110 GLES20.glUseProgram(mProgram); in renderTexture()
|
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/ |
D | TextureRenderer.java | 27 private int mProgram; field in TextureRenderer 70 mProgram = GLToolbox.createProgram(VERTEX_SHADER, FRAGMENT_SHADER); in init() 73 mTexSamplerHandle = GLES20.glGetUniformLocation(mProgram, in init() 75 mTexCoordHandle = GLES20.glGetAttribLocation(mProgram, "a_texcoord"); in init() 76 mPosCoordHandle = GLES20.glGetAttribLocation(mProgram, "a_position"); in init() 90 GLES20.glDeleteProgram(mProgram); in tearDown() 110 GLES20.glUseProgram(mProgram); in renderTexture()
|
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
D | GLES20TriangleRenderer.java | 52 GLES20.glUseProgram(mProgram); in onDrawFrame() 93 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated() 94 if (mProgram == 0) { in onSurfaceCreated() 97 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated() 102 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated() 108 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated() 245 private int mProgram; field in GLES20TriangleRenderer
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | GLES20TriangleRenderer.java | 54 GLES20.glUseProgram(mProgram); in onDrawFrame() 95 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated() 96 if (mProgram == 0) { in onSurfaceCreated() 99 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated() 104 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated() 110 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated() 247 private int mProgram; field in GLES20TriangleRenderer
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | Gles2ColoredTriangleList.java | 60 private final Program mProgram; field in Gles2ColoredTriangleList 90 mProgram = program; in Gles2ColoredTriangleList() 117 mProgram.bind(mvpMatrix, mVertexBuffer, mColor); in draw()
|
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/ |
D | SynthEngine.java | 49 private int mProgram; field in SynthEngine 98 mProgram = data[1]; in onSend() 239 voice = createVoice(mProgram); in noteOn()
|
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/ |
D | SynthEngine.java | 49 private int mProgram; field in SynthEngine 98 mProgram = data[1]; in onSend() 239 voice = createVoice(mProgram); in noteOn()
|