This is the documentation for Enlighten.
class Geo GeoGenericTexture
template<class T>
class Geo::GeoGenericTexture
A really simple texture where all elements are T.
Functions
Name | Description |
|---|---|
Increments the reference count. | |
Clears the entire texture to the given value. | |
Create gives you back an uninitialise (values undefined!) texture of the appropriate size with a ref count of 1. | |
Gets the width/height of this texture. | |
Raw access to the pixel data. | |
Gets the width/height of this texture. | |
Decrements the reference count, and destroys this object if it has reached zero. | |
Read from the texture at the given location. | |
Creates a texure by loading it from the given file. | |
Saves this texture to the given file. | |
Sets the value at the given location. |
void Geo::GeoGenericTexture< T >::AddRef
public: void AddRef()
Increments the reference count.
void Geo::GeoGenericTexture< T >::Clear
public: void Clear
(
const T & value
)
Clears the entire texture to the given value.
static GeoGenericTexture* Geo::GeoGenericTexture< T >::Create
public: GeoGenericTexture * Create
(
s32 w,
s32 h
)
Create gives you back an uninitialise (values undefined!) texture of the appropriate size with a ref count of 1.
So no need to AddRef it immediately.
s32 Geo::GeoGenericTexture< T >::GetHeight
public: s32 GetHeight()