Expand description
The most basic OpenGL Texture Object wrapping
Structs§
- Pixel
Buffer - 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
- Texture
Bind - The binding state of the texture, utilizing the RAII rules to manage the binding state
Enums§
- Channel
Type - The channel type of a pixel
- Component
Type - The component type for each channel of a pixel
- Cube
MapFaces - The cubemap faces enum
- Load
Image Error - The error for loading an image from a file, decoding the byte stream of the image
- Sampler
Filter - The sampler filters of the textures, including how mipmap sampling should be done
- Sampler
MagFilter - The sampler filters of the textures, only for magnifying sampling
- Texture
Dimension - The dimension of the texture represents the type of texture
- Texture
Error - Texture
Format - The internal format of the texture indicates how the pixels are stored in the GPU texture
- Texture
Target - The binding target of the texture includes the 6 faces of a cubemap
- Texture
Wrapping - The wrapping rules of the textures
Constants§
- CUBE_
FACE_ TARGETS - The constant helps to conveniently iterate through the 6 faces of a cubemap
Traits§
- Generic
Pixel Buffer - The
GenericPixelBuffer
trait helps thePixelBuffer
struct to be able to turn into an object - Generic
Texture - The
GenericTexture
trait helps theTexture
struct to be able to turn into an object - Pixel
Type - 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