/frameworks/native/opengl/tests/textures/ |
D | textures.cpp | 67 glBindTexture(GL_TEXTURE_2D, 0); in main() 68 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 69 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in main() 70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in main() 71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in main() 72 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in main() 74 glEnable(GL_TEXTURE_2D); in main() 105 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, 4, 4, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, t8); in main() 108 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 4, 4, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, t16); in main() 111 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 4, 4, 0, GL_RGBA, GL_UNSIGNED_SHORT_4_4_4_4, t16); in main() [all …]
|
/frameworks/native/opengl/tests/finish/ |
D | finish.cpp | 69 glBindTexture(GL_TEXTURE_2D, 0); in main() 70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in main() 71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in main() 73 glEnable(GL_TEXTURE_2D); in main() 84 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, in main() 107 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 121 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 135 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 150 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 167 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() [all …]
|
/frameworks/native/opengl/tests/filter/ |
D | filter.cpp | 79 glBindTexture(GL_TEXTURE_2D, 0); in main() 80 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 81 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in main() 82 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in main() 84 glEnable(GL_TEXTURE_2D); in main() 116 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, in main() 120 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, in main() 124 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, in main() 128 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE_ALPHA, in main() 132 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, in main() [all …]
|
/frameworks/native/opengl/tests/gl_perf/ |
D | fill_common.cpp | 246 glBindTexture(GL_TEXTURE_2D, 1); in genTextures() 247 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1024, 1024, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in genTextures() 248 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in genTextures() 249 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in genTextures() 250 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in genTextures() 251 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in genTextures() 258 glBindTexture(GL_TEXTURE_2D, 2); in genTextures() 259 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 16, 16, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in genTextures() 260 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in genTextures() 261 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in genTextures() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | MultiTextureConsumer_test.cpp | 89 glBindTexture(GL_TEXTURE_2D, TEX_ID+1); in TEST_F() 90 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, &texel); in TEST_F() 91 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in TEST_F() 92 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in TEST_F() 93 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in TEST_F() 94 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in TEST_F() 97 glBindTexture(GL_TEXTURE_2D, TEX_ID+1); in TEST_F() 98 glEnable(GL_TEXTURE_2D); in TEST_F()
|
D | SurfaceTextureFBO.h | 35 glBindTexture(GL_TEXTURE_2D, mFboTex); in SetUp() 36 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getSurfaceWidth(), in SetUp() 38 glBindTexture(GL_TEXTURE_2D, 0); in SetUp() 43 GL_TEXTURE_2D, mFboTex, 0); in SetUp()
|
/frameworks/native/opengl/tests/linetex/ |
D | linetex.cpp | 68 glBindTexture(GL_TEXTURE_2D, 0); in main() 69 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in main() 70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in main() 71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in main() 72 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in main() 76 glEnable(GL_TEXTURE_2D); in main() 95 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 1, 4, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, t16); in main()
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | gl_frame.cpp | 48 texture_target_(GL_TEXTURE_2D), in GLFrame() 112 glGenerateMipmap(GL_TEXTURE_2D); in GenerateMipMap() 121 glTexParameteri(GL_TEXTURE_2D, pname, value); in SetTextureParameter() 134 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, tex_params_[GL_TEXTURE_MAG_FILTER]); in UpdateTexParameters() 135 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, tex_params_[GL_TEXTURE_MIN_FILTER]); in UpdateTexParameters() 136 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, tex_params_[GL_TEXTURE_WRAP_S]); in UpdateTexParameters() 137 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, tex_params_[GL_TEXTURE_WRAP_T]); in UpdateTexParameters() 257 glBindTexture(GL_TEXTURE_2D, texture_id_); in BindTexture() 306 glBindTexture(GL_TEXTURE_2D, texture_id_); in AllocateTexture() 307 glTexImage2D(GL_TEXTURE_2D, in AllocateTexture() [all …]
|
/frameworks/rs/tests/java_api/GenImages/src/com/android/rs/genimage/ |
D | GenImage.java | 157 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST); in setup() 160 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR); in setup() 167 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_NEAREST); in setup() 170 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR); in setup() 178 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_CLAMP_TO_EDGE); in setup() 182 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_REPEAT); in setup() 186 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_MIRRORED_REPEAT); in setup() 195 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_CLAMP_TO_EDGE); in setup() 199 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_REPEAT); in setup() 203 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_MIRRORED_REPEAT); in setup() [all …]
|
/frameworks/base/cmds/bootanimation/ |
D | BootAnimation.cpp | 158 glBindTexture(GL_TEXTURE_2D, texture->name); in initTexture() 162 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, w, h, 0, GL_ALPHA, in initTexture() 166 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, in initTexture() 170 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, in initTexture() 174 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, w, h, 0, GL_RGB, in initTexture() 181 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in initTexture() 182 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in initTexture() 183 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in initTexture() 184 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in initTexture() 185 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in initTexture() [all …]
|
/frameworks/native/opengl/tests/gl2_copyTexImage/ |
D | gl2_copyTexImage.cpp | 189 glBindTexture(GL_TEXTURE_2D, gTexture); in setupGraphics() 190 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); in setupGraphics() 191 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in setupGraphics() 192 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in setupGraphics() 193 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in setupGraphics() 194 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in setupGraphics() 197 glBindTexture(GL_TEXTURE_2D, gBufferTexture); in setupGraphics() 198 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); in setupGraphics() 199 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in setupGraphics() 200 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in setupGraphics() [all …]
|
/frameworks/native/opengl/tests/fillrate/ |
D | fillrate.cpp | 69 glBindTexture(GL_TEXTURE_2D, 0); in main() 70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in main() 71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in main() 72 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in main() 73 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in main() 78 glEnable(GL_TEXTURE_2D); in main() 110 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 512, 512, 0, GL_RGBA, GL_UNSIGNED_BYTE, t32); in main()
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
D | GLES20RenderEngine.cpp | 125 glBindTexture(GL_TEXTURE_2D, mProtectedTexName); in GLES20RenderEngine() 126 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in GLES20RenderEngine() 127 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in GLES20RenderEngine() 128 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in GLES20RenderEngine() 129 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in GLES20RenderEngine() 130 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 1, 1, 0, in GLES20RenderEngine() 312 glBindTexture(GL_TEXTURE_2D, mProtectedTexName); 338 glBindTexture(GL_TEXTURE_2D, tname); 339 glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, (GLeglImageOES)image); 344 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tname, 0);
|
/frameworks/base/libs/hwui/ |
D | Texture.cpp | 127 bool needsAlloc = updateLayout(width, height, internalFormat, format, GL_TEXTURE_2D); in upload() 133 mCaches.textureState().bindTexture(GL_TEXTURE_2D, mId); in upload() 135 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0, in upload() 138 glTexSubImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0, in upload() 166 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, data); in uploadToTexture() 168 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, data); in uploadToTexture() 190 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, temp); in uploadToTexture() 192 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, temp); in uploadToTexture() 350 GLenum target = bitmap.isHardware() ? GL_TEXTURE_EXTERNAL_OES : GL_TEXTURE_2D; in upload() 375 glGenerateMipmap(GL_TEXTURE_2D); in upload()
|
D | OpenGLReadback.cpp | 187 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in copyTextureInto() 188 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in copyTextureInto() 189 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in copyTextureInto() 190 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in copyTextureInto() 191 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, destWidth, destHeight, in copyTextureInto() 194 GL_TEXTURE_2D, texture, 0); in copyTextureInto()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | GLToolbox.java | 97 GLES20.GL_TEXTURE_2D, in attachTextureToFbo() 129 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams() 131 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams() 133 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams() 135 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams()
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
D | gl_code.cpp | 108 glEnable(GL_TEXTURE_2D); in init_scene() 130 glBindTexture(GL_TEXTURE_2D, texture); in create_texture() 131 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture() 132 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in create_texture() 133 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in create_texture()
|
/frameworks/rs/driver/ |
D | rsdFrameBufferObj.cpp | 78 GL_TEXTURE_2D, mDepthTarget->textureID, 0); in setDepthAttachment() 86 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, 0, 0); in setDepthAttachment() 96 GL_TEXTURE_2D, mColorTargets[i]->textureID, 0); in setColorAttachment() 106 GL_TEXTURE_2D, 0, 0); in setColorAttachment()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GLDepthTestActivity.java | 150 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID); in onDrawFrame() 228 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID); in onSurfaceCreated() 230 GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, in onSurfaceCreated() 232 GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, in onSurfaceCreated() 236 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, in onSurfaceCreated() 238 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, in onSurfaceCreated() 254 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); in onSurfaceCreated()
|
D | GLTextureViewActivity.java | 200 glBindTexture(GL_TEXTURE_2D, texture); in run() 261 glBindTexture(GL_TEXTURE_2D, texture); in loadTexture() 264 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in loadTexture() 265 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in loadTexture() 267 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in loadTexture() 268 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in loadTexture() 272 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0); in loadTexture()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/ |
D | ImageFlipRenderThread.java | 47 import static android.opengl.GLES20.GL_TEXTURE_2D; 153 glBindTexture(GL_TEXTURE_2D, texture); in run() 214 glBindTexture(GL_TEXTURE_2D, texture); in loadTexture() 217 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in loadTexture() 218 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in loadTexture() 220 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in loadTexture() 221 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in loadTexture() 225 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0); in loadTexture()
|
/frameworks/native/opengl/tests/tritex/ |
D | tritex.cpp | 201 glEnable(GL_TEXTURE_2D); in init_scene() 222 glBindTexture(GL_TEXTURE_2D, texture); in create_texture() 223 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture() 224 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in create_texture() 225 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in create_texture()
|
/frameworks/native/opengl/tests/gl_basic/ |
D | gl_basic.cpp | 308 glEnable(GL_TEXTURE_2D); in init_scene() 330 glBindTexture(GL_TEXTURE_2D, texture); in create_texture() 331 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture() 332 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in create_texture() 333 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in create_texture()
|
/frameworks/native/cmds/flatland/ |
D | GLHelper.cpp | 447 glBindTexture(GL_TEXTURE_2D, mDitherTexture); in getDitherTexture() 449 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in getDitherTexture() 450 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in getDitherTexture() 452 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in getDitherTexture() 453 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in getDitherTexture() 455 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, DITHER_KERNEL_SIZE, in getDitherTexture()
|
/frameworks/base/libs/hwui/renderstate/ |
D | TextureState.cpp | 103 glBindTexture(GL_TEXTURE_2D, texture); in bindTexture() 109 if (target == GL_TEXTURE_2D) { in bindTexture()
|