Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
TextureCubeGL Class Reference

Texture cube. More...

#include <TextureGL.h>

Inherits TextureCubemapBackend.

Public Member Functions

 TextureCubeGL (const TextureDescriptor &descriptor)
 
virtual void updateSamplerDescriptor (const SamplerDescriptor &sampler) override
 Update sampler.
 
virtual void updateFaceData (TextureCubeFace side, void *data, int index=0) override
 Update texutre cube data in give slice side.
 
virtual void generateMipmaps () override
 Generate mipmaps.
 
virtual void updateTextureDescriptor (const TextureDescriptor &descriptor, int index=0) override
 Update texture description.
 
uintptr_t getHandler (int index=0) const override
 Get texture object.
 
void apply (int slot, int index) const
 Set texture to pipeline.
 
- Public Member Functions inherited from TextureBackend
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

Texture cube.

Constructor & Destructor Documentation

◆ TextureCubeGL()

TextureCubeGL ( const TextureDescriptor & descriptor)
Parameters
descriptorSpecifies the texture description.

Member Function Documentation

◆ updateSamplerDescriptor()

virtual void updateSamplerDescriptor ( const SamplerDescriptor & sampler)
overridevirtual

Update sampler.

Parameters
samplerSpecifies the sampler descriptor.

Implements TextureBackend.

◆ updateFaceData()

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

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.

Implements TextureCubemapBackend.

◆ updateTextureDescriptor()

virtual void updateTextureDescriptor ( const TextureDescriptor & descriptor,
int index = 0 )
overridevirtual

Update texture description.

Parameters
descriptorSpecifies texture and sampler descriptor.

Reimplemented from TextureBackend.

◆ getHandler()

uintptr_t getHandler ( int index = 0) const
inlineoverridevirtual

Get texture object.

Returns
Texture object.

Reimplemented from TextureBackend.

◆ apply()

void apply ( int slot,
int index ) const
inline

Set texture to pipeline.

Parameters
indexSpecifies the texture image unit selector.

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