Module gltexture

Source
Expand description

The most basic OpenGL Texture Object wrapping

Structs§

PixelBuffer
The pixel buffer object (PBO) for the texture helps with asynchronous texture updating or retrieving back to the system memory
Texture
The OpenGL texture object
TextureBind
The binding state of the texture, utilizing the RAII rules to manage the binding state

Enums§

ChannelType
The channel type of a pixel
ComponentType
The component type for each channel of a pixel
CubeMapFaces
The cubemap faces enum
LoadImageError
The error for loading an image from a file, decoding the byte stream of the image
SamplerFilter
The sampler filters of the textures, including how mipmap sampling should be done
SamplerMagFilter
The sampler filters of the textures, only for magnifying sampling
TextureDimension
The dimension of the texture represents the type of texture
TextureError
TextureFormat
The internal format of the texture indicates how the pixels are stored in the GPU texture
TextureTarget
The binding target of the texture includes the 6 faces of a cubemap
TextureWrapping
The wrapping rules of the textures

Constants§

CUBE_FACE_TARGETS
The constant helps to conveniently iterate through the 6 faces of a cubemap

Traits§

GenericPixelBuffer
The GenericPixelBuffer trait helps the PixelBuffer struct to be able to turn into an object
GenericTexture
The GenericTexture trait helps the Texture struct to be able to turn into an object
PixelType
The pixel type trait must be able to be a BufferVec item

Functions§

get_channel_type_and_component_type_from_image_pixel
Input a generic type of P as the pixel data type, retrieve the channel type, and the component type
size_of_pixel
Get the size for each pixel