|
Kemena3D
|
Represents a six-face cube-map texture. More...
#include <ktexturecube.h>


Public Member Functions | |
| kTextureCube () | |
| Constructs an empty cube-map texture. | |
| virtual | ~kTextureCube () |
| Destroys the cube-map texture and releases its GPU resources. | |
| Public Member Functions inherited from kemena::kTexture | |
| kTexture () | |
| Constructs an empty texture with no GPU handle assigned. | |
| virtual | ~kTexture () |
| Virtual destructor; allows safe polymorphic deletion of derived textures. | |
| kTexture * | duplicate (kString newName) |
| Creates a shallow copy with a different sampler name. | |
| void | setTextureID (GLuint newTextureID) |
| Sets the GPU texture handle. | |
| GLuint | getTextureID () |
| Returns the GPU texture handle. | |
| void | setTextureName (kString newName) |
| Sets the GLSL sampler uniform name for this texture. | |
| kString | getTextureName () |
| Returns the GLSL sampler uniform name. | |
| void | setType (kTextureType newType) |
| Sets the texture type (2D or cube map). | |
| kTextureType | getType () |
| Returns the texture type. | |
Represents a six-face cube-map texture.
Loaded via kAssetManager::loadTextureCube(). Bind it using kDriver::bindTextureCube() and sample in GLSL with a samplerCube uniform.
| kemena::kTextureCube::kTextureCube | ( | ) |
Constructs an empty cube-map texture.
|
virtual |
Destroys the cube-map texture and releases its GPU resources.