Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
TextureCubemapBackend Class Referenceabstract

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.
 
- Public Member Functions inherited from TextureBackend
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.
 
- Public Member Functions inherited from Object
void retain ()
 Retains the ownership.
 
void release ()
 Releases the ownership immediately.
 
Objectautorelease ()
 Releases the ownership sometime soon automatically.
 
unsigned int getReferenceCount () const
 Returns the Object's current reference count.
 
virtual ~Object ()
 Destructor.
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 

Detailed Description

A cubemap texture.

Member Function Documentation

◆ updateFaceData()

virtual void updateFaceData ( TextureCubeFace side,
void * data,
int index = 0 )
pure virtual

Update texutre cube data in give slice side.

Parameters
sideSpecifies which slice texture of cube to be update.
dataSpecifies a pointer to the image data in memory.

Implemented in TextureCubeGL, and TextureCubeMTL.


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