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

A texture cube. More...

#include <TextureMTL.h>

Inherits TextureCubemapBackend.

Public Member Functions

 TextureCubeMTL (id< MTLDevice > mtlDevice, 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 ax::backend::TextureDescriptor &descriptor, int index=0) override
 Update texture description.
 
id< MTLSamplerState > getMTLSamplerState () const
 Get MTLSamplerState object.
 
- 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

A texture cube.

Constructor & Destructor Documentation

◆ TextureCubeMTL()

TextureCubeMTL ( id< MTLDevice > mtlDevice,
const TextureDescriptor & descriptor )
Parameters
mtlDeviceThe device for which MTLTexture and MTLSamplerState object was created.
descriptorSpecify texture and sampler 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 ax::backend::TextureDescriptor & descriptor,
int index = 0 )
overridevirtual

Update texture description.

Parameters
descriptorSpecifies texture and sampler descriptor.

Reimplemented from TextureBackend.

◆ getMTLSamplerState()

id< MTLSamplerState > getMTLSamplerState ( ) const
inline

Get MTLSamplerState object.

Returns
A MTLSamplerState object.

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