/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
PolygonSpriteBatch.java | 27 import com.badlogic.gdx.graphics.Texture;
36 /** A PolygonSpriteBatch is used to draw 2D polygons that reference a texture (region). The class will batch the drawing commands
66 private Texture lastTexture;
214 final Texture texture = region.region.texture;
local 215 if (texture != lastTexture)
216 switchTexture(texture);
253 final Texture texture = textureRegion.texture; local 298 Texture texture = textureRegion.texture; local 788 Texture texture = region.texture; local 847 Texture texture = region.texture; local 978 Texture texture = region.texture; local 1124 Texture texture = region.texture; local [all...] |
TextureAtlas.java | 19 import static com.badlogic.gdx.graphics.Texture.TextureWrap.*;
25 import com.badlogic.gdx.graphics.Texture;
26 import com.badlogic.gdx.graphics.Texture.TextureFilter;
27 import com.badlogic.gdx.graphics.Texture.TextureWrap;
45 /** Loads images from texture atlases created by TexturePacker.<br>
52 private final ObjectSet<Texture> textures = new ObjectSet(4);
58 public Texture texture;
field in class:TextureAtlas.TextureAtlasData.Page 240 ObjectMap<Page, Texture> pageToTexture = new ObjectMap<Page, Texture>();
242 Texture texture = null; local [all...] |
SpriteCache.java | 29 import com.badlogic.gdx.graphics.Texture;
42 * later be used for drawing. The size, color, and texture region for each cached image cannot be modified. This information is
45 * To cache {@link Sprite sprites} or {@link Texture textures}, first call {@link SpriteCache#beginCache()}, then call the
82 private final Array<Texture> textures = new Array(8);
201 cache.textures = textures.toArray(Texture.class);
217 if (cache.textures.length < cache.textureCount) cache.textures = new Texture[cache.textureCount];
247 public void add (Texture texture, float[] vertices, int offset, int length) {
253 if (lastIndex < 0 || textures.get(lastIndex) != texture) {
254 textures.add(texture);
[all...] |
/frameworks/base/rs/java/android/renderscript/ |
Program.java | 107 * @return number of texture inputs 114 * Returns the type of texture at a given slot. e.g. 2D or Cube 115 * @param slot index of the texture input 116 * @return texture input type 126 * Returns the name of the texture input at a given slot. e.g. 128 * @param slot index of the texture input 129 * @return texture input name 159 * Binds a texture to be used in the program 161 * @param va allocation containing texture data 173 throw new IllegalArgumentException("Cannot bind cubemap to 2d texture slot") [all...] |
/external/skia/include/gpu/gl/ |
GrGLFunctions.h | 20 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLActiveTextureProc)(GrGLenum texture); 27 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindTextureProc)(GrGLenum target, GrGLuint texture); 42 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLClientActiveTextureProc)(GrGLenum texture); 78 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferTexture2DProc)(GrGLenum target, GrGLenum attachment, GrGLenum textarget, GrGLuint texture, GrGLint level); 79 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFramebufferTexture2DMultisampleProc)(GrGLenum target, GrGLenum attachment, GrGLenum textarget, GrGLuint texture, GrGLint level, GrGLsizei samples); 112 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateTexImageProc)(GrGLuint texture, GrGLint level); 113 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLInvalidateTexSubImageProc)(GrGLuint texture, GrGLint level, GrGLint xoffset, GrGLint yoffset, GrGLint zoffset, GrGLsizei width, GrGLsizei height, GrGLsizei depth); 114 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsTextureProc)(GrGLuint texture); 224 typedef GrGLuint64 (GR_GL_FUNCTION_TYPE* GrGLGetTextureHandleProc)(GrGLuint texture); 225 typedef GrGLuint64 (GR_GL_FUNCTION_TYPE* GrGLGetTextureSamplerHandleProc)(GrGLuint texture, GrGLuint sampler) [all...] |
/external/deqp/modules/gles3/functional/ |
es3fNegativeBufferApiTests.cpp | 235 deUint32 texture; 237 glGenTextures (1, &texture); 238 glBindTexture (GL_TEXTURE_2D, texture); 242 glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 248 glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 255 glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 262 glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 306 glDeleteTextures (1, &texture); 411 deUint32 texture; 413 glGenTextures (1, &texture); [all...] |
/external/deqp/modules/gles31/functional/ |
es31fNegativeBufferApiTests.cpp | 279 deUint32 texture = 0x1234; local 281 ctx.glGenTextures (1, &texture); 282 ctx.glBindTexture (GL_TEXTURE_2D, texture); 286 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 292 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 299 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 306 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 314 ctx.glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); 357 ctx.glDeleteTextures (1, &texture); 522 deUint32 texture = 0x1234 local 572 deUint32 texture = 0x1234; local 619 deUint32 texture = 0x1234; local 767 deUint32 texture = 0x1234; local 964 deUint32 texture = 0x1234; local 1158 GLuint texture[] = {0x1234, 0x1234}; local 1360 deUint32 texture[2]; local 1689 deUint32 texture = 0x1234; local 1738 deUint32 texture = 0x1234; local 1876 deUint32 texture[5]; local [all...] |
/external/mesa3d/src/gallium/drivers/svga/ |
svga_resource_texture.c | 59 struct svga_texture *texture = svga_texture(st->base.resource); local 82 texture->handle, 90 util_format_get_blocksize(texture->b.b.format) * 8 / 91 (util_format_get_blockwidth(texture->b.b.format)*util_format_get_blockheight(texture->b.b.format))); 108 struct svga_texture *texture = svga_texture(st->base.resource); local 109 struct svga_screen *screen = svga_screen(texture->b.b.screen); 177 * Prevent the texture contents to be discarded on the next band 201 struct pipe_resource *texture, 204 struct svga_winsys_screen *sws = svga_winsys_screen(texture->screen) [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_surface.c | 52 const struct pipe_resource *texture, 57 surf->format = texture->format; 64 * \param textureOut returns the new texture 99 /* create texture */ 116 /* create surface / view into texture */ 130 * Release the surface and texture from util_create_rgba_surface(). 133 util_destroy_rgba_surface(struct pipe_resource *texture, 137 pipe_resource_reference(&texture, NULL); 242 assert(dst->texture); 243 if (!dst->texture) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/ |
TexImageTransform.java | 57 * Construct a texture image transformation. 59 * @param textureData texture data passed in by the call. Could be null. 60 * @param format format of the source texture data 63 * @param width width of the texture 64 * @param height height of the texture 91 // Applying texture transformations is a heavy weight process. So we perform 127 * Creates a texture of provided width and height. If the texture data file is provided, 128 * then the texture is initialized with the contents of that file, otherwise an empty 130 * @param textureDataFile path to texture data, could be null [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
TextureData.java | 26 /** Used by a {@link Texture} to load the pixel data. A TextureData can either return a {@link Pixmap} or upload the pixel data
27 * itself. It signals it's type via {@link #getType()} to the Texture that's using it. The Texture will then either invoke
28 * {@link #consumePixmap()} or {@link #consumeCustomData(int)}. These are the first methods to be called by Texture. After that
29 * the Texture will invoke the other methods to find out about the size of the image data, the format, whether mipmaps should be
35 * Before a call to either {@link #consumePixmap()} or {@link #consumeCustomData(int)}, Texture will bind the OpenGL ES
36 * texture.</p>
57 /** Returns the {@link Pixmap} for upload by Texture. A call to {@link #prepare()} must precede a call to this method. Any
66 /** Uploads the pixel data to the OpenGL ES texture. The caller must bind an OpenGL ES texture. A call to {@link #prepare()} [all...] |
/external/mesa3d/src/mesa/main/ |
fbobject.h | 74 /** Return the texture image for a renderbuffer attachment */ 79 return att->Texture->Image[att->CubeMapFace][att->TextureLevel]; 83 /** Return the (const) texture image for a renderbuffer attachment */ 88 return att->Texture->Image[att->CubeMapFace][att->TextureLevel]; 175 GLenum textarget, GLuint texture, GLint level); 179 GLenum textarget, GLuint texture, GLint level); 183 GLenum textarget, GLuint texture, 188 GLuint texture, GLint level, GLint layer); 210 GLuint texture, GLint level); 214 GLuint texture, GLint level, GLenum face) [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_framebuffer.c | 47 * When doing GL render to texture, we have to be sure that finalize_texture() 56 struct pipe_resource *resource = strb->rtt ? strb->rtt->pt : strb->texture; 63 strb->surface->texture != resource || 87 texture); 125 (strb->texture && util_format_is_srgb(strb->texture->format))) { 126 /* rendering to a GL texture, may have to update surface */ 148 /* rendering to a GL texture, may have to update surface */ 166 assert(framebuffer->cbufs[i]->texture->bind & PIPE_BIND_RENDER_TARGET); 169 assert(framebuffer->zsbuf->texture->bind & PIPE_BIND_DEPTH_STENCIL) [all...] |
st_texture.c | 103 * In OpenGL the number of 1D array texture layers is the "height" and 104 * the number of 2D array texture layers is the "depth". In Gallium the 105 * number of layers in an array texture is a separate 'array_size' field. 109 st_gl_texture_dims_to_pipe_dims(GLenum texture, 118 switch (texture) { 157 assert(0 && "Unexpected texture in st_gl_texture_dims_to_pipe_dims()"); 170 * Check if a texture image can be pulled into a unified mipmap texture. 183 /* Check if this image's format matches the established texture's format. 193 * established texture [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
GlopBuilderTests.cpp | 46 EXPECT_EQ(expectedFill.texture.clamp, builtFill.texture.clamp); 47 EXPECT_EQ(expectedFill.texture.filter, builtFill.texture.filter); 48 EXPECT_EQ(expectedFill.texture.target, builtFill.texture.target); 49 EXPECT_EQ(expectedFill.texture.textureTransform, builtFill.texture.textureTransform); 114 glop->fill.texture = { nullptr, GL_INVALID_ENUM, GL_INVALID_ENUM, GL_INVALID_ENUM, nullptr }; 145 goldenGlop->fill.texture.filter = GL_NEAREST [all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
SpriteCacheTest.java | 25 import com.badlogic.gdx.graphics.Texture;
26 import com.badlogic.gdx.graphics.Texture.TextureFilter;
39 Texture texture;
field in class:SpriteCacheTest 40 Texture texture2;
119 texture = new Texture(Gdx.files.internal("data/badlogicsmall.jpg"));
120 texture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
125 texture2 = new Texture(pixmap);
154 sprites3[i] = new Sprite(texture, 32, 32); [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_triangle.c | 80 ASSERT(ctx->Texture._EnabledCoordUnits == 0);\ 106 ASSERT(ctx->Texture._EnabledCoordUnits == 0); \ 128 ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; \ 136 const GLubyte *texture = (const GLubyte *) swImg->Map; \ 140 if (!rb || !texture) { \ 154 rgba[i][RCOMP] = texture[pos+2]; \ 155 rgba[i][GCOMP] = texture[pos+1]; \ 156 rgba[i][BCOMP] = texture[pos+0]; \ 186 ctx->Texture.Unit[0].CurrentTex[TEXTURE_2D_INDEX]; \ 194 const GLubyte *texture = (const GLubyte *) swImg->Map; 244 const GLchan *texture; member in struct:affine_info 600 const GLchan *texture; member in struct:persp_info [all...] |
/frameworks/native/services/surfaceflinger/RenderEngine/ |
GLES20RenderEngine.cpp | 36 #include "Texture.h" 173 void GLES20RenderEngine::setupLayerTexturing(const Texture& texture) { 174 GLuint target = texture.getTextureTarget(); 175 glBindTexture(target, texture.getTextureName()); 177 if (texture.getFiltering()) { 185 mState.setTexture(texture); 190 Texture texture(Texture::TEXTURE_2D, mProtectedTexName) [all...] |
/external/deqp/modules/gles2/functional/ |
es2fNegativeTextureApiTests.cpp | 21 * \brief Negative Texture API tests. 77 // Find a supported compressed texture format that is accepted by compressedTexSubImage2D() 98 : TestCaseGroup(context, "texture", "Negative Texture API Cases") 112 m_log << TestLog::Section("", "GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i ranges from 0 to (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1)."); 132 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if texture was previously created with a target that doesn't match that of target."); 133 GLuint texture; 134 glGenTextures(1, &texture); 135 glBindTexture(GL_TEXTURE_2D, texture); 136 glBindTexture(GL_TEXTURE_CUBE_MAP, texture); [all...] |
/external/skia/include/gpu/ |
GrTypes.h | 236 * ASTC stands for Adaptive Scalable Texture Compression. It is a technique 239 * which means that a texture that contains ASTC data must be treated as 395 * Creates a texture that can be rendered to as a GrRenderTarget. Use 417 * the origin (in texture coord space) and for other textures the lower and left edges meet at 431 * API texture creation function. Either all of the function pointers should be 446 void* ctx, GrBackendObject texture, unsigned width, 448 typedef void (*DeallocateTextureStorageProc)(void* ctx, GrBackendObject texture); 451 * Generates and binds a texture to |textureStorageTarget()|. Allocates 452 * storage for the texture. 454 * In OpenGL, the MIN and MAX filters for the created texture must b [all...] |
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineImageSamplingInstance.cpp | 68 MovePtr<TestTexture> texture; local 75 texture = MovePtr<TestTexture>(new TestTexture1D(format, size.x())); 77 texture = MovePtr<TestTexture>(new TestTexture1DArray(format, size.x(), layerCount)); 84 texture = MovePtr<TestTexture>(new TestTexture2D(format, size.x(), size.y())); 92 texture = MovePtr<TestTexture>(new TestTextureCube(format, size.x())); 98 texture = MovePtr<TestTexture>(new TestTextureCubeArray(format, size.x(), layerCount)); 103 texture = MovePtr<TestTexture>(new TestTexture2DArray(format, size.x(), size.y(), layerCount)); 110 texture = MovePtr<TestTexture>(new TestTexture3D(format, size.x(), size.y(), size.z())); 117 return texture; 211 const tcu::Texture1D& texture = dynamic_cast<const TestTexture1D&>(testTexture).getTexture() local 216 const tcu::Texture1DArray& texture = dynamic_cast<const TestTexture1DArray&>(testTexture).getTexture(); local 238 const tcu::Texture2D& texture = dynamic_cast<const TestTexture2D&>(testTexture).getTexture(); local 247 const tcu::TextureCube& texture = dynamic_cast<const TestTextureCube&>(testTexture).getTexture(); local 254 const tcu::TextureCubeArray& texture = dynamic_cast<const TestTextureCubeArray&>(testTexture).getTexture(); local 277 const tcu::Texture2DArray& texture = dynamic_cast<const TestTexture2DArray&>(testTexture).getTexture(); local 302 const tcu::Texture3D& texture = dynamic_cast<const TestTexture3D&>(testTexture).getTexture(); local [all...] |
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_tex_sample.c | 30 * Texture sampling 47 /** Set to one to help debug texture sampling */ 78 * v00, v10, v01 and v11 are typically four texture samples in a square/box. 123 * Apply texture coord wrapping mode and return integer texture indexes 127 * \param size the texture image size 129 * \return integer texture index 258 * \param size the texture image size 259 * \param icoord0 returns first texture index 260 * \param icoord1 returns second texture index (usually icoord0 + 1 493 const struct pipe_resource *texture = samp->view->texture; local 508 const struct pipe_resource *texture = samp->view->texture; local 527 const struct pipe_resource *texture = samp->view->texture; local 597 const struct pipe_resource *texture = samp->view->texture; local 690 const struct pipe_resource *texture = samp->view->texture; local 709 const struct pipe_resource *texture = samp->view->texture; local 726 const struct pipe_resource *texture = samp->view->texture; local 936 const struct pipe_resource *texture = samp->view->texture; local 973 const struct pipe_resource *texture = samp->view->texture; local 1011 const struct pipe_resource *texture = samp->view->texture; local 1051 const struct pipe_resource *texture = samp->view->texture; local 1100 const struct pipe_resource *texture = samp->view->texture; local 1140 const struct pipe_resource *texture = samp->view->texture; local 1179 const struct pipe_resource *texture = samp->view->texture; local 1216 const struct pipe_resource *texture = samp->view->texture; local 1254 const struct pipe_resource *texture = samp->view->texture; local 1298 const struct pipe_resource *texture = samp->view->texture; local 1343 const struct pipe_resource *texture = samp->view->texture; local 1388 const struct pipe_resource *texture = samp->view->texture; local 1460 const struct pipe_resource *texture = samp->view->texture; local 1517 const struct pipe_resource *texture = samp->view->texture; local 1640 const struct pipe_resource *texture = samp->view->texture; local 1823 const struct pipe_resource *texture = samp->view->texture; local 1922 const struct pipe_resource *texture = samp->view->texture; local 2471 const struct pipe_resource *texture = view->texture; local 2493 const struct pipe_resource *texture = view->texture; local 2544 const struct pipe_resource *texture = samp->view->texture; local [all...] |
/external/deqp/framework/opengl/simplereference/ |
sglrReferenceContext.cpp | 133 static Framebuffer::TexTarget texLayeredTypeToTarget (Texture::Type type) 137 case Texture::TYPE_2D_ARRAY: return Framebuffer::TEXTARGET_2D_ARRAY; 138 case Texture::TYPE_3D: return Framebuffer::TEXTARGET_3D; 139 case Texture::TYPE_CUBE_MAP_ARRAY: return Framebuffer::TEXTARGET_CUBE_MAP_ARRAY; 179 TCU_FAIL("Can't map pixel format to texture format"); 262 // Limit texture sizes to supported values 388 // Create empty textures to be used when texture objects are incomplete. 459 vector<Texture*> textures; 461 for (vector<Texture*>::iterator i = textures.begin(); i != textures.end(); i++) 494 void ReferenceContext::activeTexture (deUint32 texture) 685 Texture* texture = name ? m_textures.find(name) : DE_NULL; local 1124 TextureCube* texture = unit.texCubeBinding ? unit.texCubeBinding : &unit.defaultCubeTex; local 1163 Texture2DArray* texture = unit.tex2DArrayBinding ? unit.tex2DArrayBinding : &unit.default2DArrayTex; local 1202 Texture3D* texture = unit.tex3DBinding ? unit.tex3DBinding : &unit.default3DTex; local 1242 TextureCubeArray* texture = unit.texCubeArrayBinding ? unit.texCubeArrayBinding : &unit.defaultCubeArrayTex; local 1345 TextureCube& texture = unit.texCubeBinding ? *unit.texCubeBinding : unit.defaultCubeTex; variable 1365 Texture3D& texture = unit.tex3DBinding ? *unit.tex3DBinding : unit.default3DTex; variable 1384 Texture2DArray& texture = unit.tex2DArrayBinding ? *unit.tex2DArrayBinding : unit.default2DArrayTex; variable 1403 TextureCubeArray& texture = unit.texCubeArrayBinding ? *unit.texCubeArrayBinding : unit.defaultCubeArrayTex; variable 1445 Texture1D* texture = unit.tex1DBinding ? unit.tex1DBinding : &unit.default1DTex; local [all...] |
/external/deqp/framework/common/ |
tcuTexLookupVerifier.hpp | 23 * \brief Texture lookup simulator that is capable of verifying generic 108 bool isLookupResultValid (const Texture1DView& texture, const Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const Vec4& result); 109 bool isLookupResultValid (const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result); 110 bool isLookupResultValid (const TextureCubeView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result); 111 bool isLookupResultValid (const Texture1DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result); 112 bool isLookupResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result); 113 bool isLookupResultValid (const Texture3DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result); 114 bool isLookupResultValid (const TextureCubeArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const IVec4& coordBits, const Vec4& coord, const Vec2& lodBounds, const Vec4& result); 130 bool isGatherOffsetsResultValid (const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4], const Vec4& result); 131 bool isGatherOffsetsResultValid (const Texture2DView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec2& coord, int componentNdx, cons (…) [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_tex.c | 55 * Set the texture wrap modes. 57 * \param t Texture object whose wrap modes are to be set 58 * \param swrap Wrap mode for the \a s texture coordinate 59 * \param twrap Wrap mode for the \a t texture coordinate 162 * Set the texture magnification and minification modes. 164 * \param t Texture whose filter modes are to be set 165 * \param minf Texture minification mode 166 * \param magf Texture magnification mode 262 GLuint unit = ctx->Texture.CurrentUnit; 263 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit] [all...] |