Kemena3D
Loading...
Searching...
No Matches
kemena::kTextureCube Class Reference

Represents a six-face cube-map texture. More...

#include <ktexturecube.h>

Inheritance diagram for kemena::kTextureCube:
Collaboration diagram for kemena::kTextureCube:

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.
kTextureduplicate (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.

Detailed Description

Represents a six-face cube-map texture.

Loaded via kAssetManager::loadTextureCube(). Bind it using kDriver::bindTextureCube() and sample in GLSL with a samplerCube uniform.

Constructor & Destructor Documentation

◆ kTextureCube()

kemena::kTextureCube::kTextureCube ( )

Constructs an empty cube-map texture.

◆ ~kTextureCube()

virtual kemena::kTextureCube::~kTextureCube ( )
virtual

Destroys the cube-map texture and releases its GPU resources.


The documentation for this class was generated from the following file: