/cts/tests/tests/opengl/src/android/opengl/cts/ |
RendererTenShaderTest.java | 21 import android.opengl.GLES20; 32 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); 33 int fragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode); 34 mProgram = GLES20.glCreateProgram(); 36 GLES20.glAttachShader(mProgram, fragmentShader); 37 GLES20.glLinkProgram(mProgram); 39 mError = GLES20.glGetError();
|
RendererOneColorBufferTest.java | 30 import android.opengl.GLES20; 104 shader = GLES20.glCreateShader(type); 110 GLES20.glShaderSource(shader, shaderSrc); 113 GLES20.glCompileShader(shader); 116 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); 119 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); 120 GLES20.glDeleteShader(shader); 152 vertexShader = LoadShader(GLES20.GL_VERTEX_SHADER, vShaderStr); 153 fragmentShader = LoadShader(GLES20.GL_FRAGMENT_SHADER, fShaderStr) [all...] |
RendererFourShaderTest.java | 21 import android.opengl.GLES20; 33 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); 35 mProgram = GLES20.glCreateProgram(); 39 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); 43 mError = GLES20.glGetError(); 44 GLES20.glLinkProgram(mProgram);
|
RendererTwelveShaderTest.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); 38 GLES20.glAttachShader(mProgram, fragmentShader); 39 GLES20.glLinkProgram(mProgram); 41 mError = GLES20.glGetError();
|
RendererBase.java | 22 import android.opengl.GLES20; 52 int shader = GLES20.glCreateShader(type); 53 GLES20.glShaderSource(shader, shaderCode); 54 GLES20.glCompileShader(shader);
|
AttachShaderTest.java | 19 import android.opengl.GLES20; 44 * error : GLES20.GL_NO_ERROR 52 assertEquals(GLES20.GL_NO_ERROR, error); 59 * error : GLES20.GL_INVALID_VALUE 67 assertTrue(GLES20.GL_NO_ERROR != error); 74 * error : GLES20.GL_INVALID_OPERATION 82 assertTrue(GLES20.GL_NO_ERROR != error); 90 * error : GLES20.GL_NO_ERROR 100 assertEquals(GLES20.GL_NO_ERROR, error); 107 assertEquals(GLES20.GL_INVALID_OPERATION, error) [all...] |
RendererTwoShaderTest.java | 18 import android.opengl.GLES20; 40 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); 44 int fragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode); 45 mProgram = GLES20.glCreateProgram(); 47 GLES20.glAttachShader(mProgram, vertexShaderOne); 48 mError = GLES20.glGetError();
|
NativeAttachShaderTest.java | 19 import android.opengl.GLES20; 45 * error : GLES20.GL_NO_ERROR 53 assertEquals(GLES20.GL_NO_ERROR, error); 60 * error : GLES20.GL_INVALID_VALUE 67 assertTrue(GLES20.GL_NO_ERROR != error); 74 * error : GLES20.GL_INVALID_OPERATION 81 assertTrue(GLES20.GL_NO_ERROR != error); 88 * error : GLES20.GL_NO_ERROR 98 assertEquals(GLES20.GL_NO_ERROR, error); 105 assertTrue(GLES20.GL_NO_ERROR != error) [all...] |
ProgramTest.java | 19 import android.opengl.GLES20; 41 assertEquals(GLES20.GL_INVALID_OPERATION, error);
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
TextureRenderer.java | 19 import android.opengl.GLES20; 73 mTexSamplerHandle = GLES20.glGetUniformLocation(mProgram, 75 mTexCoordHandle = GLES20.glGetAttribLocation(mProgram, "a_texcoord"); 76 mPosCoordHandle = GLES20.glGetAttribLocation(mProgram, "a_position"); 90 GLES20.glDeleteProgram(mProgram); 107 GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0); 110 GLES20.glUseProgram(mProgram); 114 GLES20.glViewport(0, 0, mViewWidth, mViewHeight); 118 GLES20.glDisable(GLES20.GL_BLEND) [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
TextureSource.java | 21 import android.opengl.GLES20; 37 return new TextureSource(texId, GLES20.GL_TEXTURE_2D, false); 41 return new TextureSource(GLToolbox.generateTexture(), GLES20.GL_TEXTURE_2D, true); 59 GLES20.glBindTexture(mTarget, mTexId); 82 GLES20.glBindTexture(mTarget, mTexId); 83 GLES20.glTexParameteri(mTarget, 84 GLES20.GL_TEXTURE_MIN_FILTER, 85 GLES20.GL_LINEAR_MIPMAP_LINEAR); 86 GLES20.glGenerateMipmap(mTarget); 87 GLES20.glBindTexture(mTarget, 0) [all...] |
ImageShader.java | 20 import android.opengl.GLES20; 46 private int mSFactor = GLES20.GL_SRC_ALPHA; 47 private int mDFactor = GLES20.GL_ONE_MINUS_SRC_ALPHA; 48 private int mDrawMode = GLES20.GL_TRIANGLE_STRIP; 50 private int mBaseTexUnit = GLES20.GL_TEXTURE0; 51 private int mClearBuffers = GLES20.GL_COLOR_BUFFER_BIT; 126 GLES20.glVertexAttrib1fv(mIndex, mValues); 129 GLES20.glVertexAttrib2fv(mIndex, mValues); 132 GLES20.glVertexAttrib3fv(mIndex, mValues); 135 GLES20.glVertexAttrib4fv(mIndex, mValues) [all...] |
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/ |
TestLatencyView.java | 36 import android.opengl.GLES20; 94 GLES20.glClearColor(0.4f, 0.4f, 0.4f, 1.0f); 95 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); 96 GLES20.glUseProgram(mProgram); 114 GLES20.glEnableVertexAttribArray(mvPositionHandle); 116 GLES20.glEnableVertexAttribArray(mvColorHandle); 134 GLES20.glVertexAttribPointer(mvPositionHandle, 2, GLES20.GL_FLOAT, false, 6*4, mTriangleVertices) [all...] |
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
GL2CameraEye.java | 34 import android.opengl.GLES20; 198 // Ignore the passed-in GL10 interface, and use the GLES20 200 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); 201 GLES20.glUseProgram(mProgram); 204 GLES20.glActiveTexture(GLES20.GL_TEXTURE0); 205 GLES20.glBindTexture(GL_TEXTURE_EXTERNAL_OES, mTextureID); 208 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT, false [all...] |
/cts/suite/cts/deviceTests/opengl/src/com/android/cts/opengl/reference/ |
GLGameActivity.java | 24 import android.opengl.GLES20; 157 GLES20.glGenTextures(1, textures, 0); 161 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textureID); 162 GLES20.glTexParameteri( 163 GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR); 164 GLES20.glTexParameteri( 165 GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR) [all...] |
/cts/tests/src/android/opengl/cts/ |
EglConfigGLSurfaceView.java | 20 import android.opengl.GLES20; 143 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); 162 int vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexSource); 167 int pixelShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentSource); 172 int program = GLES20.glCreateProgram(); 174 GLES20.glAttachShader(program, vertexShader); 176 GLES20.glAttachShader(program, pixelShader); 178 GLES20.glLinkProgram(program); 180 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0) [all...] |
/external/jmonkeyengine/engine/src/android/com/jme3/renderer/android/ |
Android22Workaround.java | 3 import android.opengl.GLES20; 7 GLES20.glVertexAttribPointer(location,
|
OGLESShaderRenderer.java | 35 import android.opengl.GLES20; 135 while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { 155 logger.log(Level.INFO, "Vendor: {0}", GLES20.glGetString(GLES20.GL_VENDOR)); 156 logger.log(Level.INFO, "Renderer: {0}", GLES20.glGetString(GLES20.GL_RENDERER)); 157 logger.log(Level.INFO, "Version: {0}", GLES20.glGetString(GLES20.GL_VERSION)); 159 powerVr = GLES20.glGetString(GLES20.GL_RENDERER).contains("PowerVR") [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
GLES20Canvas.java | 21 import android.opengl.GLES20; 199 handle = GLES20.glGetUniformLocation(program, mName); 211 handle = GLES20.glGetAttribLocation(program, mName); 278 int drawVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, DRAW_VERTEX_SHADER); 279 int textureVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, TEXTURE_VERTEX_SHADER); 280 int meshVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, MESH_VERTEX_SHADER); 281 int drawFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, DRAW_FRAGMENT_SHADER); 282 int textureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, TEXTURE_FRAGMENT_SHADER); 283 int oesTextureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, 292 GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA) [all...] |
GLES20IdImpl.java | 3 import android.opengl.GLES20; 13 GLES20.glGenTextures(1, mTempIntArray, 0); 20 GLES20.glGenBuffers(n, buffers, offset); 26 GLES20.glDeleteTextures(n, textures, offset); 33 GLES20.glDeleteBuffers(n, buffers, offset); 39 GLES20.glDeleteFramebuffers(n, buffers, offset);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
GLES20Canvas.java | 21 import android.opengl.GLES20; 199 handle = GLES20.glGetUniformLocation(program, mName); 211 handle = GLES20.glGetAttribLocation(program, mName); 278 int drawVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, DRAW_VERTEX_SHADER); 279 int textureVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, TEXTURE_VERTEX_SHADER); 280 int meshVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, MESH_VERTEX_SHADER); 281 int drawFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, DRAW_FRAGMENT_SHADER); 282 int textureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, TEXTURE_FRAGMENT_SHADER); 283 int oesTextureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, 292 GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA) [all...] |
GLES20IdImpl.java | 3 import android.opengl.GLES20; 13 GLES20.glGenTextures(1, mTempIntArray, 0); 20 GLES20.glGenBuffers(n, buffers, offset); 26 GLES20.glDeleteTextures(n, textures, offset); 33 GLES20.glDeleteBuffers(n, buffers, offset); 39 GLES20.glDeleteFramebuffers(n, buffers, offset);
|
/packages/apps/Launcher3/src/com/android/gallery3d/glrenderer/ |
GLES20Canvas.java | 21 import android.opengl.GLES20; 199 handle = GLES20.glGetUniformLocation(program, mName); 211 handle = GLES20.glGetAttribLocation(program, mName); 278 int drawVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, DRAW_VERTEX_SHADER); 279 int textureVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, TEXTURE_VERTEX_SHADER); 280 int meshVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, MESH_VERTEX_SHADER); 281 int drawFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, DRAW_FRAGMENT_SHADER); 282 int textureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, TEXTURE_FRAGMENT_SHADER); 283 int oesTextureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, 292 GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA) [all...] |
GLES20IdImpl.java | 3 import android.opengl.GLES20; 13 GLES20.glGenTextures(1, mTempIntArray, 0); 20 GLES20.glGenBuffers(n, buffers, offset); 26 GLES20.glDeleteTextures(n, textures, offset); 33 GLES20.glDeleteBuffers(n, buffers, offset); 39 GLES20.glDeleteFramebuffers(n, buffers, offset);
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
VideoDumpView.java | 45 import android.opengl.GLES20; 88 public static final int PIXEL_FORMAT = GLES20.GL_RGB; 89 public static final int PIXEL_TYPE = PIXEL_FORMAT == GLES20.GL_RGBA 90 ? GLES20.GL_UNSIGNED_BYTE : GLES20.GL_UNSIGNED_SHORT_5_6_5; 92 PIXEL_FORMAT == GLES20.GL_RGBA ? 4 : 2; 94 = PIXEL_FORMAT == GLES20.GL_RGBA ? true : false; 387 GLES20.glClearColor(0.0f, 1.0f, 0.0f, 1.0f); 388 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT) [all...] |