Cocos2d-x
4.0.0
|
A cubemap texture. More...
Inherits TextureBackend.
Inherited by TextureCubeGL, and TextureCubeMTL.
Public Member Functions | |
virtual void | updateFaceData (TextureCubeFace side, void *data)=0 |
Update texutre cube data in give slice side. | |
![]() | |
virtual void | updateSamplerDescriptor (const SamplerDescriptor &sampler)=0 |
Update sampler. | |
virtual void | getBytes (std::size_t x, std::size_t y, std::size_t width, std::size_t height, bool flipImage, std::function< void(const unsigned char *, std::size_t, std::size_t)> callback)=0 |
Read a block of pixels from the drawable texture. | |
virtual void | generateMipmaps ()=0 |
Generate mipmaps. | |
virtual void | updateTextureDescriptor (const TextureDescriptor &descriptor) |
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. | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. | |
virtual | ~Ref () |
Destructor. | |
Additional Inherited Members | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
void * | _scriptObject |
scriptObject, support for swift | |
bool | _rooted |
When true, it means that the object was already rooted. | |
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.