Texture
Texture represents a GPU texture resource.
The Texture class supports:
2D textures
3D textures
Cube maps
Mip mapping
Creation and destruction
========================A Texture object is created using the Texture.Builder and destroyed by calling Engine.destroy(texture).
val engine = Engine.create()
val texture = Texture.Builder()
.width(64)
.height(64)
.build(engine)
engine.destroy(texture)Texture represents a GPU texture resource.
The Texture class supports:
2D textures
3D textures
Cube maps
Mip mapping
Creation and destruction
========================A Texture object is created using the Texture.Builder and destroyed by calling Engine.destroy(texture).
val engine = Engine.create()
val texture = Texture.Builder()
.width(64)
.height(64)
.build(engine)
engine.destroy(texture)Texture represents a GPU texture resource.
The Texture class supports:
2D textures
3D textures
Cube maps
Mip mapping
Creation and destruction
========================A Texture object is created using the Texture.Builder and destroyed by calling Engine.destroy(texture).
val engine = Engine.create()
val texture = Texture.Builder()
.width(64)
.height(64)
.build(engine)
engine.destroy(texture)Texture represents a GPU texture resource.
The Texture class supports:
2D textures
3D textures
Cube maps
Mip mapping
Creation and destruction
========================A Texture object is created using the Texture.Builder and destroyed by calling Engine.destroy(texture).
val engine = Engine.create()
val texture = Texture.Builder()
.width(64)
.height(64)
.build(engine)
engine.destroy(texture)Texture represents a GPU texture resource.
The Texture class supports:
2D textures
3D textures
Cube maps
Mip mapping
Creation and destruction
========================A Texture object is created using the Texture.Builder and destroyed by calling Engine.destroy(texture).
val engine = Engine.create()
val texture = Texture.Builder()
.width(64)
.height(64)
.build(engine)
engine.destroy(texture)Constructors
Types
Cubemap face identifiers.
Cubemap face identifiers.
Cubemap face identifiers.
Cubemap face identifiers.
Cubemap face identifiers.
Pixel color format (how data is laid out in the client buffer for setImage()).
Pixel color format (how data is laid out in the client buffer for setImage()).
Pixel color format (how data is laid out in the client buffer for setImage()).
Pixel color format (how data is laid out in the client buffer for setImage()).
Pixel color format (how data is laid out in the client buffer for setImage()).
Internal texel format (how texels are stored in memory).
Internal texel format (how texels are stored in memory).
Internal texel format (how texels are stored in memory).
Internal texel format (how texels are stored in memory).
Internal texel format (how texels are stored in memory).
Describes pixel buffer data for uploading to a texture via setImage().
Describes pixel buffer data for uploading to a texture via setImage().
Describes pixel buffer data for uploading to a texture via setImage().
Describes pixel buffer data for uploading to a texture via setImage().
Describes pixel buffer data for uploading to a texture via setImage().
Sampler type for texture sampling.
Sampler type for texture sampling.
Sampler type for texture sampling.
Sampler type for texture sampling.
Sampler type for texture sampling.
Texture channel swizzle (maps channels to output RGBA).
Texture channel swizzle (maps channels to output RGBA).
Texture channel swizzle (maps channels to output RGBA).
Texture channel swizzle (maps channels to output RGBA).
Texture channel swizzle (maps channels to output RGBA).
Pixel data type (size and signedness of color components in the client buffer for setImage()).
Pixel data type (size and signedness of color components in the client buffer for setImage()).
Pixel data type (size and signedness of color components in the client buffer for setImage()).
Pixel data type (size and signedness of color components in the client buffer for setImage()).
Pixel data type (size and signedness of color components in the client buffer for setImage()).
Texture usage flags affecting memory layout and capabilities.
Texture usage flags affecting memory layout and capabilities.
Texture usage flags affecting memory layout and capabilities.
Texture usage flags affecting memory layout and capabilities.
Texture usage flags affecting memory layout and capabilities.
Functions
Generates all mipmap levels automatically.
Generates all mipmap levels automatically.
Generates all mipmap levels automatically.
Generates all mipmap levels automatically.
Generates all mipmap levels automatically.
Return this texture InternalFormat as set by Builder.format().
Return this texture InternalFormat as set by Builder.format().
Return this texture InternalFormat as set by Builder.format().
Return this texture InternalFormat as set by Builder.format().
Return this texture InternalFormat as set by Builder.format().
Return this texture Sampler as set by Builder.sampler().
Return this texture Sampler as set by Builder.sampler().
Return this texture Sampler as set by Builder.sampler().
Return this texture Sampler as set by Builder.sampler().
Return this texture Sampler as set by Builder.sampler().
Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.
Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.
Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.
Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.
Associates an external stream with this texture. Typically the external stream is OS-specific and can be a video or camera stream.
Updates a 2D texture level with image data from a buffer.
Updates a rectangular sub-region of a 2D texture level.
Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.
Updates a 2D texture level with image data from a buffer.
Updates a rectangular sub-region of a 2D texture level.
Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.
Updates a 2D texture level with image data from a buffer.
Updates a rectangular sub-region of a 2D texture level.
Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.
Updates a 2D texture level with image data from a buffer.
Updates a rectangular sub-region of a 2D texture level.
Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.
Updates a 2D texture level with image data from a buffer.
Updates a rectangular sub-region of a 2D texture level.
Updates a sub-region of a 3D texture or 2D texture array. Cubemaps are treated like a 2D array of six layers.