Home
last modified time | relevance | path

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

/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/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/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/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()