Lines Matching defs:GLES20
19 import android.opengl.GLES20;
24 int shader = GLES20.glCreateShader(shaderType);
26 GLES20.glShaderSource(shader, source);
27 GLES20.glCompileShader(shader);
29 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0);
31 String info = GLES20.glGetShaderInfoLog(shader);
32 GLES20.glDeleteShader(shader);
43 int vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexSource);
47 int pixelShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentSource);
52 int program = GLES20.glCreateProgram();
54 GLES20.glAttachShader(program, vertexShader);
56 GLES20.glAttachShader(program, pixelShader);
58 GLES20.glLinkProgram(program);
60 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus,
62 if (linkStatus[0] != GLES20.GL_TRUE) {
63 String info = GLES20.glGetProgramInfoLog(program);
64 GLES20.glDeleteProgram(program);
74 while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
80 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D,
81 GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);
82 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D,
83 GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);
84 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S,
85 GLES20.GL_CLAMP_TO_EDGE);
86 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T,
87 GLES20.GL_CLAMP_TO_EDGE);