TextureData¶
TextureData interface.
Overview¶
Typical use cases:
Defining a common interface for texture data management
Header¶
<RaeptorCogs/GAPI/Common/Ressources/TextureData.hpp>
Metadata¶
- Author
Estorc
- Version
v1.0
- Copyright
Copyright (c) 2025 Estorc MIT License.
Classes¶
Class |
Description |
|---|---|
|
TextureData interface. |
-
class TextureData : public RaeptorCogs::GAPI::Common::ObjectData¶
TextureData interface.
Provides a common interface for texture data management.
Note
This is an abstract base class and should be inherited by specific texture data implementations.
Subclassed by RaeptorCogs::GAPI::GL::TextureData, RaeptorCogs::GAPI::Vulkan::TextureData
Public Functions
-
virtual void build(int width, int height, void *data, GLenum minFilter = GL_LINEAR_MIPMAP_NEAREST, GLenum magFilter = GL_LINEAR) = 0¶
Build the texture data.
Note
Must be implemented by derived classes.
- Parameters:
width – Width of the texture.
height – Height of the texture.
data – Pointer to the texture data.
minFilter – Minification filter (default: GL_LINEAR_MIPMAP_NEAREST).
magFilter – Magnification filter (default: GL_LINEAR).
-
virtual void build(int width, int height, void *data, GLenum minFilter = GL_LINEAR_MIPMAP_NEAREST, GLenum magFilter = GL_LINEAR) = 0¶