HomeSort by relevance Sort by last modified time
    Searched refs:GLES20 (Results 1 - 25 of 142) sorted by null

1 2 3 4 5 6

  /developers/build/prebuilts/gradle/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/
GLToolbox.java 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);
40 int vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexSource);
44 int pixelShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentSource)
    [all...]
  /developers/samples/android/media/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/
GLToolbox.java 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);
40 int vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexSource);
44 int pixelShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentSource)
    [all...]
  /development/samples/HelloEffects/src/com/example/android/mediafx/
GLToolbox.java 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)
    [all...]
  /development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/
GLToolbox.java 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);
40 int vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexSource);
44 int pixelShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentSource)
    [all...]
  /external/webrtc/talk/app/webrtc/java/android/org/webrtc/
GlTextureFrameBuffer.java 30 import android.opengl.GLES20;
51 case GLES20.GL_LUMINANCE:
52 case GLES20.GL_RGB:
53 case GLES20.GL_RGBA:
60 textureId = GlUtil.generateTexture(GLES20.GL_TEXTURE_2D);
66 GLES20.glGenFramebuffers(1, frameBuffers, 0);
68 GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, frameBufferId);
72 GLES20.glFramebufferTexture2D(GLES20.GL_FRAMEBUFFER, GLES20.GL_COLOR_ATTACHMENT0
    [all...]
GlShader.java 30 import android.opengl.GLES20;
42 GLES20.GL_FALSE
44 int shader = GLES20.glCreateShader(shaderType);
45 GLES20.glShaderSource(shader, source);
46 GLES20.glCompileShader(shader);
47 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, result, 0);
48 if (result[0] != GLES20.GL_TRUE) {
50 GLES20.glGetShaderInfoLog(shader));
51 throw new RuntimeException(GLES20.glGetShaderInfoLog(shader))
    [all...]
GlUtil.java 30 import android.opengl.GLES20;
44 int error = GLES20.glGetError();
45 if (error != GLES20.GL_NO_ERROR) {
46 throw new RuntimeException(msg + ": GLES20 error: " + error);
65 GLES20.glGenTextures(1, textureArray, 0);
67 GLES20.glBindTexture(target, textureId);
68 GLES20.glTexParameterf(target, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);
69 GLES20.glTexParameterf(target, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR)
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
GLToolbox.java 20 import android.opengl.GLES20;
39 return GLES20.glIsTexture(texId);
45 GLES20.glDeleteTextures(1, textures, 0);
52 GLES20.glDeleteFramebuffers(1, fbos, 0);
58 GLES20.glGenTextures(1, textures, 0);
65 GLES20.glGenFramebuffers(1, fbos, 0);
71 GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fboId);
72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels)
    [all...]
  /cts/tests/vr/src/android/vr/cts/
RendererProtectedTexturesTest.java 23 import android.opengl.GLES20;
51 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
53 int vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode);
54 int fragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);
55 mProgram = GLES20.glCreateProgram();
56 GLES20.glAttachShader(mProgram, vertexShader);
57 GLES20.glAttachShader(mProgram, fragmentShader);
58 GLES20.glLinkProgram(mProgram);
60 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0)
    [all...]
  /cts/tests/tests/opengl/src/android/opengl/cts/
RendererThreeShaderTest.java 24 import android.opengl.GLES20;
46 GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
47 GLES20.glUseProgram(mProgram);
49 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT,
51 GLES20.glEnableVertexAttribArray(maPositionHandle);
52 GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 3)
    [all...]
RendererFiveShaderTest.java 21 import android.opengl.GLES20;
33 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
35 mProgram = GLES20.glCreateProgram();
36 int shaderOne = GLES20.glCreateShader(GLES20.GL_FRAGMENT_SHADER);
37 int shaderTwo = GLES20.glCreateShader(GLES20.GL_FRAGMENT_SHADER);
38 GLES20.glAttachShader(mProgram, shaderOne);
39 GLES20.glAttachShader(mProgram, shaderTwo);
42 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0)
    [all...]
RendererSixShaderTest.java 21 import android.opengl.GLES20;
31 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
33 mProgram = GLES20.glCreateProgram();
34 int shaderOne = GLES20.glCreateShader(GLES20.GL_FRAGMENT_SHADER);
35 int shaderTwo = GLES20.glCreateShader(GLES20.GL_VERTEX_SHADER);
36 GLES20.glAttachShader(mProgram, shaderOne);
37 GLES20.glAttachShader(mProgram, shaderTwo);
40 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0)
    [all...]
RendererOneShaderTest.java 24 import android.opengl.GLES20;
47 GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
48 GLES20.glUseProgram(mProgram);
50 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT,
52 GLES20.glEnableVertexAttribArray(maPositionHandle);
53 GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 3)
    [all...]
RendererEightShaderTest.java 21 import android.opengl.GLES20;
31 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
33 mProgram = GLES20.glCreateProgram();
34 int shaderOne = GLES20.glCreateShader(GLES20.GL_FRAGMENT_SHADER);
36 GLES20.glAttachShader(mProgram, shaderOne);
38 mError = GLES20.glGetError();
RendererSevenShaderTest.java 21 import android.opengl.GLES20;
31 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
33 mProgram = GLES20.glCreateProgram();
34 int shaderOne = GLES20.glCreateShader(GLES20.GL_VERTEX_SHADER);
35 int shaderTwo = GLES20.glCreateShader(GLES20.GL_VERTEX_SHADER);
36 GLES20.glAttachShader(mProgram, shaderOne);
37 GLES20.glAttachShader(mProgram, shaderTwo);
38 mError = GLES20.glGetError()
    [all...]
  /frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/
GenImage.java 34 import android.opengl.GLES20;
59 GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
68 GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
78 GLES20.glViewport(0, 0, 512, 512);
83 // create a vertex shader type (GLES20.GL_VERTEX_SHADER)
84 // or a fragment shader type (GLES20.GL_FRAGMENT_SHADER)
85 int shader = GLES20.glCreateShader(type);
88 GLES20.glShaderSource(shader, shaderCode);
89 GLES20.glCompileShader(shader)
    [all...]
  /cts/tests/tests/mediastress/src/android/mediastress/cts/
SurfaceTextureRenderer.java 21 import android.opengl.GLES20;
113 // Ignore the passed-in GL10 interface, and use the GLES20
115 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
116 GLES20.glUseProgram(mProgram);
119 GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
120 GLES20.glBindTexture(GL_TEXTURE_EXTERNAL_OES, mTextureID);
123 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT, false
    [all...]
  /development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/
MyGLSurfaceView.java 31 import android.opengl.GLES20;
93 // Ignore the passed-in GL10 interface, and use the GLES20
95 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
96 GLES20.glUseProgram(mProgram);
99 GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
100 GLES20.glBindTexture(GL_TEXTURE_EXTERNAL_OES, mTextureID);
103 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT, false
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
GLES20TriangleRenderer.java 31 import android.opengl.GLES20;
50 // Ignore the passed-in GL10 interface, and use the GLES20
52 GLES20.glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
53 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
54 GLES20.glUseProgram(mProgram);
57 GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
58 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID)
    [all...]
  /development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/
GLES20TriangleRenderer.java 31 import android.opengl.GLES20;
48 // Ignore the passed-in GL10 interface, and use the GLES20
50 GLES20.glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
51 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
52 GLES20.glUseProgram(mProgram);
55 GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
56 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
CtsMediaTextureRender.java 29 import android.opengl.GLES20;
105 GLES20.glClearColor(0.0f, 1.0f, 0.0f, 1.0f);
106 GLES20.glClear(GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
108 GLES20.glUseProgram(mProgram);
111 GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
112 GLES20.glBindTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, mTextureID);
115 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT, false
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
TextureRender.java 29 import android.opengl.GLES20;
101 GLES20.glClearColor(0.0f, 1.0f, 0.0f, 1.0f);
102 GLES20.glClear(GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
104 GLES20.glUseProgram(mProgram);
107 GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
108 GLES20.glBindTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, mTextureID);
111 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT, false
    [all...]
  /development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
Triangle.java 22 import android.opengl.GLES20;
87 GLES20.GL_VERTEX_SHADER, vertexShaderCode);
89 GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);
91 mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program
92 GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program
93 GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program
94 GLES20.glLinkProgram(mProgram); // create OpenGL program executables
106 GLES20.glUseProgram(mProgram);
109 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition");
112 GLES20.glEnableVertexAttribArray(mPositionHandle)
    [all...]
  /platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/
Triangle.java 23 import android.opengl.GLES20;
92 GLES20.GL_VERTEX_SHADER, vertexShaderCode);
94 GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);
96 mProgram = GLES20.glCreateProgram(); // create empty OpenGL Program
97 GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program
98 GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program
99 GLES20.glLinkProgram(mProgram); // create OpenGL program executables
110 GLES20.glUseProgram(mProgram);
113 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition");
116 GLES20.glEnableVertexAttribArray(mPositionHandle)
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GLDepthTestActivity.java 27 import android.opengl.GLES20;
133 // Ignore the passed-in GL10 interface, and use the GLES20
135 GLES20.glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
137 GLES20.glClear(GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
139 GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
141 GLES20.glUseProgram(mProgram);
143 GLES20.glEnable(GLES20.GL_DEPTH_TEST)
    [all...]

Completed in 650 milliseconds

1 2 3 4 5 6