|
C3D_API | DynamicTexture (RenderSystem &p_renderSystem, uint8_t p_cpuAccess, uint8_t p_gpuAccess) |
| Constructor. More...
|
|
virtual C3D_API | ~DynamicTexture () |
| Destructor. More...
|
|
virtual C3D_API bool | Initialise () |
| Initialisation function. More...
|
|
virtual C3D_API void | Cleanup () |
| Cleanup function. More...
|
|
C3D_API void | SetImage (Castor::Size const &p_size, Castor::ePIXEL_FORMAT p_format) |
| Defines the texture buffer. More...
|
|
C3D_API void | SetImage (Castor::Point3ui const &p_size, Castor::ePIXEL_FORMAT p_format) |
| Defines the 3D texture buffer. More...
|
|
virtual C3D_API void | Resize (Castor::Size const &p_size) |
| Resizes the texture buffer. More...
|
|
virtual C3D_API void | Resize (Castor::Point3ui const &p_size) |
| Resizes the 3D texture buffer. More...
|
|
RenderTargetSPtr | GetRenderTarget () const |
| Retrieves the render target. More...
|
|
void | SetRenderTarget (RenderTargetSPtr p_target) |
| Defines the render target. More...
|
|
int | GetSamplesCount () const |
| Retrieves the samples count. More...
|
|
void | SetSamplesCount (int p_count) |
| Defines the samples count. More...
|
|
virtual C3D_API void | Fill (uint8_t const *p_buffer, Castor::Size const &p_size, Castor::ePIXEL_FORMAT p_format)=0 |
| Sends the given image buffer to the driver. More...
|
|
C3D_API void | SetImage (Castor::PxBufferBaseSPtr p_buffer) |
| Defines the texture buffer. More...
|
|
C3D_API | Texture (eTEXTURE_BASE_TYPE p_type, RenderSystem &p_renderSystem, uint8_t p_cpuAccess, uint8_t p_gpuAccess) |
| Constructor. More...
|
|
virtual C3D_API | ~Texture () |
| Destructor. More...
|
|
C3D_API void | SetImage (Castor::PxBufferBaseSPtr p_buffer) |
| Defines the texture buffer. More...
|
|
C3D_API bool | Bind (uint32_t p_index) const |
| Activation function, to tell the GPU it is active. More...
|
|
C3D_API void | Unbind (uint32_t p_index) const |
| Deactivation function, to tell the GPU it is inactive. More...
|
|
virtual C3D_API bool | Create ()=0 |
| Creation function. More...
|
|
virtual C3D_API void | Destroy ()=0 |
| Destruction function. More...
|
|
virtual C3D_API uint8_t * | Lock (uint32_t p_lock)=0 |
| Locks image buffer from GPU, allowing modifications into it. More...
|
|
virtual C3D_API void | Unlock (bool p_modified)=0 |
| Unlocks image buffer from GPU. More...
|
|
virtual C3D_API void | GenerateMipmaps () const =0 |
| Generate texture mipmaps. More...
|
|
bool | IsInitialised () const |
| Retrieves the initialisation status. More...
|
|
eTEXTURE_BASE_TYPE | GetBaseType () const |
| Retrieves the texture type. More...
|
|
eTEXTURE_TYPE | GetType () const |
| Retrieves the texture dimension. More...
|
|
void | SetType (eTEXTURE_TYPE p_dimension) |
| Defines the texture dimension. More...
|
|
eTEXTURE_MAP_MODE | GetMappingMode () const |
| Retrieves the texture mapping mode. More...
|
|
void | SetMappingMode (eTEXTURE_MAP_MODE p_eMapMode) |
| Defines the texture mapping mode. More...
|
|
Castor::Size | GetDimensions () const |
| Retrieves the texture image dimensions. More...
|
|
uint32_t | GetDepth () const |
| Retrieves the texture depth. More...
|
|
Castor::ePIXEL_FORMAT | GetPixelFormat () const |
| Retrieves the texture pixel format. More...
|
|
uint32_t | GetWidth () const |
| Retrieves the texture image width. More...
|
|
uint32_t | GetHeight () const |
| Retrieves the texture image height. More...
|
|
Castor::PxBufferBaseSPtr | GetBuffer () const |
| Retrieves the texture buffer. More...
|
|