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. More... | |
Public Member Functions inherited from TextureBackend | |
| virtual void | updateSamplerDescriptor (const SamplerDescriptor &sampler)=0 |
| Update sampler. More... | |
| 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. More... | |
| virtual void | generateMipmaps ()=0 |
| Generate mipmaps. | |
| virtual void | updateTextureDescriptor (const TextureDescriptor &descriptor) |
| Update texture description. More... | |
| PixelFormat | getTextureFormat () const |
| Get texture format. More... | |
| TextureUsage | getTextureUsage () const |
| Get texture usage. More... | |
| TextureType | getTextureType () const |
| Get texture type. More... | |
| bool | hasMipmaps () const |
| Check if mipmap had generated before. More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. More... | |
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. | |
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.