/development/ndk/platforms/android-18/samples/gles3jni/jni/ |
D | RendererES2.cpp | 54 GLuint mProgram; member in RendererES2 76 mProgram(0), in RendererES2() 85 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER); in init() 86 if (!mProgram) in init() 88 mPosAttrib = glGetAttribLocation(mProgram, "pos"); in init() 89 mColorAttrib = glGetAttribLocation(mProgram, "color"); in init() 90 mScaleRotUniform = glGetUniformLocation(mProgram, "scaleRot"); in init() 91 mOffsetUniform = glGetUniformLocation(mProgram, "offset"); in init() 111 glDeleteProgram(mProgram); in ~RendererES2() 129 glUseProgram(mProgram); in draw()
|
D | RendererES3.cpp | 66 GLuint mProgram; member in RendererES3 82 mProgram(0), in RendererES3() 90 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER); in init() 91 if (!mProgram) in init() 136 glDeleteProgram(mProgram); in ~RendererES3() 162 glUseProgram(mProgram); in draw()
|
/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/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/ |
D | MyGLSurfaceView.java | 96 GLES20.glUseProgram(mProgram); in onDrawFrame() 144 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated() 145 if (mProgram == 0) { in onSurfaceCreated() 148 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated() 153 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated() 159 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated() 165 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in onSurfaceCreated() 317 private int mProgram; field in MyRenderer
|
/development/ndk/platforms/android-21/samples/native-codec/src/com/example/nativecodec/ |
D | MyGLSurfaceView.java | 103 GLES20.glUseProgram(mProgram); in onDrawFrame() 159 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated() 160 if (mProgram == 0) { in onSurfaceCreated() 163 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated() 168 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated() 174 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated() 180 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in onSurfaceCreated() 333 private int mProgram; field in MyRenderer
|
/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/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/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()
|