HomeSort by relevance Sort by last modified time
    Searched defs:GLES20 (Results 26 - 50 of 83) sorted by null

12 3 4

  /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...]
  /cts/tests/tests/graphics/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...]
  /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...]
  /external/chromium_org/third_party/libjingle/source/talk/app/webrtc/java/android/org/webrtc/
VideoRendererGui.java 40 import android.opengl.GLES20;
114 int error = GLES20.glGetError();
115 abortUnless(error == GLES20.GL_NO_ERROR, "GLES20 error: " + error);
131 GLES20.GL_FALSE
133 int shader = GLES20.glCreateShader(type);
134 GLES20.glShaderSource(shader, source);
135 GLES20.glCompileShader(shader);
136 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, result, 0)
    [all...]
  /frameworks/base/services/core/java/com/android/server/display/
ColorFade.java 38 import android.opengl.GLES20;
206 int shader = GLES20.glCreateShader(type);
208 GLES20.glShaderSource(shader, source);
209 GLES20.glCompileShader(shader);
212 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0);
215 Slog.e(TAG, GLES20.glGetShaderSource(shader));
216 Slog.e(TAG, GLES20.glGetShaderInfoLog(shader));
217 GLES20.glDeleteShader(shader);
226 GLES20.GL_VERTEX_SHADER)
    [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/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...]
  /developers/build/prebuilts/gradle/MediaEffects/MediaEffectsSample/src/main/java/com/example/android/mediaeffects/
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...]
  /developers/samples/android/media/MediaEffects/MediaEffectsSample/src/main/java/com/example/android/mediaeffects/
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...]
  /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/media/mca/effect/java/android/media/effect/
EffectContext.java 23 import android.opengl.GLES20;
117 GLES20.glGetIntegerv(GLES20.GL_FRAMEBUFFER_BINDING, mOldState, GL_STATE_FBO);
118 GLES20.glGetIntegerv(GLES20.GL_CURRENT_PROGRAM, mOldState, GL_STATE_PROGRAM);
119 GLES20.glGetIntegerv(GLES20.GL_ARRAY_BUFFER_BINDING, mOldState, GL_STATE_ARRAYBUFFER);
123 GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, mOldState[GL_STATE_FBO]);
124 GLES20.glUseProgram(mOldState[GL_STATE_PROGRAM])
    [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...]
  /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...]
  /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...]
  /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...]
  /packages/apps/Launcher3/WallpaperPicker/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...]
  /cts/tests/tests/opengl/src/android/opengl/cts/
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();
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);
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...]
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();
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();
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();
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
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...]
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...]
  /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...]

Completed in 1559 milliseconds

12 3 4