Home
last modified time | relevance | path

Searched refs:mProgram (Results 1 – 13 of 13) sorted by relevance

/development/ndk/platforms/android-18/samples/gles3jni/jni/
DRendererES2.cpp54 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()
DRendererES3.cpp66 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/
DTriangle.java49 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()
DSquare.java51 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/
DTextureRenderer.java27 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/
DTextureRenderer.java27 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/
DMyGLSurfaceView.java96 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/
DMyGLSurfaceView.java103 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/
DGLES20TriangleRenderer.java54 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/
DGLES20TriangleRenderer.java52 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/
DGles2ColoredTriangleList.java60 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/
DSynthEngine.java49 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/
DSynthEngine.java49 private int mProgram; field in SynthEngine
98 mProgram = data[1]; in onSend()
239 voice = createVoice(mProgram); in noteOn()