Cocos2d-x  4.0.0
Public Member Functions | List of all members
TextureCubemapBackend Class Referenceabstract

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

Additional Inherited Members

- Public Attributes inherited from Ref
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.
 

Detailed Description

A cubemap texture.

Member Function Documentation

virtual void updateFaceData ( TextureCubeFace  side,
void *  data 
)
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: