/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...] |
/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/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...] |
RendererOneProgramTest.java | 21 import android.opengl.GLES20; 32 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); 34 mProgram = GLES20.glCreateProgram(); 35 int mProgramTwo = GLES20.glCreateProgram(); 36 GLES20.glAttachShader(mProgram, mProgramTwo); 37 mError = GLES20.glGetError();
|
RendererNineShaderTest.java | 21 import android.opengl.GLES20; 31 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); 33 mProgram = GLES20.glCreateProgram(); 37 GLES20.glAttachShader(mProgram, shaderOne); 39 mError = GLES20.glGetError();
|
RendererElevenShaderTest.java | 22 import android.opengl.GLES20; 33 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); 34 int fragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode); 35 mProgram = GLES20.glCreateProgram(); 37 GLES20.glAttachShader(mProgram, fragmentShader); 38 GLES20.glLinkProgram(mProgram); 40 mError = GLES20.glGetError();
|
/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...] |
/external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/ |
VideoStreamsView.java | 33 import android.opengl.GLES20; 134 GLES20.glGenTextures(3, textures, 0); 138 GLES20.glActiveTexture(GLES20.GL_TEXTURE0 + i); 139 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textures[i]); 140 GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_LUMINANCE, w, h, 0, 141 GLES20.GL_LUMINANCE, GLES20.GL_UNSIGNED_BYTE, null) [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/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...] |
/cts/tests/src/android/opengl/cts/ |
CompressedTextureSurfaceView.java | 41 import android.opengl.GLES20; 169 GLES20.glUseProgram(mProgram); 172 GLES20.glActiveTexture(GLES20.GL_TEXTURE0); 173 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textureID); 176 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT, false, 179 GLES20.glEnableVertexAttribArray(maPositionHandle); 183 GLES20.glVertexAttribPointer(maTextureHandle, 2, GLES20.GL_FLOAT, false [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
PlanetsRenderer.java | 23 import android.opengl.GLES20; 139 mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); 140 mOffsetHandle = GLES20.glGetUniformLocation(mProgram, "uOffset"); 141 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition"); 142 mTexCoord0Handle = GLES20.glGetAttribLocation(mProgram, "vTexCoord0"); 143 mTextureHandle = GLES20.glGetUniformLocation(mProgram, "sTexture"); 161 GLES20.glUseProgram(mProgram); 162 GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); 163 GLES20.glClear(GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT) [all...] |
/frameworks/native/opengl/tests/gl2_java/src/com/android/gl2java/ |
GL2JavaView.java | 36 import android.opengl.GLES20; 65 GLES20.glClearColor(0.0f, 0.0f, 1.0f, 1.0f); 66 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); 67 GLES20.glUseProgram(mProgram); 70 GLES20.glVertexAttribPointer(mvPositionHandle, 2, GLES20.GL_FLOAT, false, 0, mTriangleVertices); 72 GLES20.glEnableVertexAttribArray(mvPositionHandle); 74 GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 3) [all...] |
/external/jmonkeyengine/engine/src/android/com/jme3/renderer/android/ |
TextureUtil.java | 4 import android.opengl.GLES20; 38 return GLES20.GL_DEPTH_COMPONENT; 40 return GLES20.GL_DEPTH_COMPONENT16; 152 format = GLES20.GL_ALPHA; 153 dataType = GLES20.GL_UNSIGNED_BYTE; 156 format = GLES20.GL_LUMINANCE; 157 dataType = GLES20.GL_UNSIGNED_BYTE; 160 format = GLES20.GL_LUMINANCE_ALPHA; 161 dataType = GLES20.GL_UNSIGNED_BYTE; 164 format = GLES20.GL_LUMINANCE_ALPHA [all...] |
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
MyGLSurfaceView.java | 32 import android.opengl.GLES20; 105 // Ignore the passed-in GL10 interface, and use the GLES20 107 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(GL_TEXTURE_EXTERNAL_OES, mTextureID); 115 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT, false [all...] |
/frameworks/base/media/mca/effect/java/android/media/effect/ |
EffectContext.java | 26 import android.opengl.GLES20; 120 GLES20.glGetIntegerv(GLES20.GL_FRAMEBUFFER_BINDING, mOldState, GL_STATE_FBO); 121 GLES20.glGetIntegerv(GLES20.GL_CURRENT_PROGRAM, mOldState, GL_STATE_PROGRAM); 122 GLES20.glGetIntegerv(GLES20.GL_ARRAY_BUFFER_BINDING, mOldState, GL_STATE_ARRAYBUFFER); 126 GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, mOldState[GL_STATE_FBO]); 127 GLES20.glUseProgram(mOldState[GL_STATE_PROGRAM]) [all...] |
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
SurfaceTextureView.java | 8 import android.opengl.GLES20; 35 int shader = GLES20.glCreateShader(shaderType); 37 GLES20.glShaderSource(shader, source); 38 GLES20.glCompileShader(shader); 40 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); 43 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); 44 GLES20.glDeleteShader(shader); 53 while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) [all...] |