virtual ~kTexture2D()
Destroys the 2D texture and releases any retained CPU-side pixel data.
kTexture2D()
Constructs an empty 2D texture with zeroed metadata and no pixel data.
void setChannels(int newChannel)
Sets the number of colour channels.
unsigned char * getData()
Returns the CPU-side pixel data pointer.
int getChannels()
Returns the number of colour channels.
int getWidth()
Returns the texture width in pixels.
void setWidth(int newWidth)
Sets the texture width.
int getHeight()
Returns the texture height in pixels.
void setData(unsigned char *newData)
Stores a pointer to the CPU-side pixel data.
void setHeight(int newHeight)
Sets the texture height.
kTexture()
Constructs an empty texture with no GPU handle assigned.
Base class for GPU texture objects.