GLTexture
The GLTexture class is an OpenGL-specific implementation of the Texture class, providing access to OpenGL texture resources. It enables the creation of external textures by specifying the texture target, ID, and additional flags, allowing for efficient interaction with OpenGL texture management system. This class provides functions to retrieve the texture target, internal format, and ID while inheriting the create method from the Texture class for initializing textures in OpenGL-based applications.
#include <platform/TellusimTexture.h>
Inheritance
- Inherits from Texture
Constructors
GLTexture()
Methods
Create external texture.
bool create(uint32_t target, uint32_t texture_id, Flags flags = DefaultFlags, Format format = FormatUnknown)
uint32_t getTarget() const
uint32_t getInternalFormat() const
uint32_t getTextureID() const