Axmol Engine 2.4.0-258ceca
|
A cubemap texture. More...
#include <Texture.h>
Inherits TextureBackend.
Inherited by TextureCubeGL, and TextureCubeMTL.
Public Member Functions | |
virtual void | updateFaceData (TextureCubeFace side, void *data, int index=0)=0 |
Update texutre cube data in give slice side. | |
![]() | |
virtual void | updateSamplerDescriptor (const SamplerDescriptor &sampler)=0 |
Update sampler. | |
virtual void | generateMipmaps ()=0 |
Generate mipmaps. | |
virtual void | updateTextureDescriptor (const TextureDescriptor &descriptor, int index=0) |
Update texture description. | |
PixelFormat | getTextureFormat () const |
Get texture format. | |
TextureUsage | getTextureUsage () const |
Get texture usage. | |
TextureType | getTextureType () const |
Get texture type. | |
bool | hasMipmaps () const |
Check if mipmap had generated before. | |
![]() | |
void | retain () |
Retains the ownership. | |
void | release () |
Releases the ownership immediately. | |
Object * | autorelease () |
Releases the ownership sometime soon automatically. | |
unsigned int | getReferenceCount () const |
Returns the Object's current reference count. | |
virtual | ~Object () |
Destructor. | |
Additional Inherited Members | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
A cubemap texture.
|
pure virtual |
Update texutre cube data in give slice side.
side | Specifies which slice texture of cube to be update. |
data | Specifies a pointer to the image data in memory. |
Implemented in TextureCubeGL, and TextureCubeMTL.