Home
last modified time | relevance | path

Searched refs:shader (Results 1 – 6 of 6) sorted by relevance

/development/samples/HelloEffects/src/com/example/android/mediafx/
DGLToolbox.java24 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
25 if (shader != 0) { in loadShader()
26 GLES20.glShaderSource(shader, source); in loadShader()
27 GLES20.glCompileShader(shader); in loadShader()
29 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
31 String info = GLES20.glGetShaderInfoLog(shader); in loadShader()
32 GLES20.glDeleteShader(shader); in loadShader()
33 shader = 0; in loadShader()
38 return shader; in loadShader()
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/
DGLToolbox.java24 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
25 if (shader != 0) { in loadShader()
26 GLES20.glShaderSource(shader, source); in loadShader()
27 GLES20.glCompileShader(shader); in loadShader()
29 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
31 String info = GLES20.glGetShaderInfoLog(shader); in loadShader()
32 GLES20.glDeleteShader(shader); in loadShader()
36 return shader; in loadShader()
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/
DGLES20TriangleRenderer.java156 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
157 if (shader != 0) { in loadShader()
158 GLES20.glShaderSource(shader, source); in loadShader()
159 GLES20.glCompileShader(shader); in loadShader()
161 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
164 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader()
165 GLES20.glDeleteShader(shader); in loadShader()
166 shader = 0; in loadShader()
169 return shader; in loadShader()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DGLES20TriangleRenderer.java158 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
159 if (shader != 0) { in loadShader()
160 GLES20.glShaderSource(shader, source); in loadShader()
161 GLES20.glCompileShader(shader); in loadShader()
163 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
166 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader()
167 GLES20.glDeleteShader(shader); in loadShader()
168 shader = 0; in loadShader()
171 return shader; in loadShader()
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
DMyGLRenderer.java121 int shader = GLES20.glCreateShader(type); in loadShader() local
124 GLES20.glShaderSource(shader, shaderCode); in loadShader()
125 GLES20.glCompileShader(shader); in loadShader()
127 return shader; in loadShader()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DGles2ColoredTriangleList.java162 int shader = GLES20.glCreateShader(type); in loadShader() local
164 if (shader == 0) { in loadShader()
169 GLES20.glShaderSource(shader, shaderCode); in loadShader()
171 GLES20.glCompileShader(shader); in loadShader()
174 return shader; in loadShader()