PixelLightAPI
.
|
This is a manager for the texture resource. More...
#include <TextureManager.h>
Public Member Functions | |
RendererContext & | GetRendererContext () const |
Returns the owner renderer context of this manager. | |
float | GetTextureQuality () const |
Returns the texture quality. | |
PLRENDERER_API void | SetTextureQuality (float fQuality) |
Sets the texture quality. | |
bool | GetTextureFit () const |
Returns whether the next lower valid texture size should be taken or the higher one. | |
void | SetTextureFit (bool bLower=true) |
Sets whether the next lower valid texture size should be taken or the higher one. | |
bool | AreTextureMipmapsAllowed () const |
Returns whether or not the usage of texture mipmaps is allowed. | |
void | SetTextureMipmapsAllowed (bool bAllowed) |
Sets whether or not the usage of texture mipmaps is allowed. | |
bool | IsTextureCompressionAllowed () const |
Returns whether or not the usage of texture compression is allowed. | |
void | SetTextureCompressionAllowed (bool bAllowed) |
Sets whether or not the usage of texture compression is allowed. | |
PLRENDERER_API bool | ReloadTextures () |
Reloads all textures. | |
PLRENDERER_API Texture * | CreateTexture (const PLCore::String &sName, TextureBuffer &cTextureBuffer) |
Creates a new texture. | |
PLRENDERER_API Texture * | CreateTexture (const PLCore::String &sName, const PLCore::String &sParameters) |
Creates a texture resource using a texture creator. | |
Static Public Attributes | |
static PLRENDERER_API const PLCore::String | Default |
This is a manager for the texture resource.
RendererContext & PLRenderer::TextureManager::GetRendererContext | ( | ) | const [inline] |
Returns the owner renderer context of this manager.
float PLRenderer::TextureManager::GetTextureQuality | ( | ) | const [inline] |
PLRENDERER_API void PLRenderer::TextureManager::SetTextureQuality | ( | float | fQuality | ) |
Sets the texture quality.
[in] | fQuality | Texture quality, 1.0 best, 0.0 worst, default is 1.0 |
bool PLRenderer::TextureManager::GetTextureFit | ( | ) | const [inline] |
Returns whether the next lower valid texture size should be taken or the higher one.
void PLRenderer::TextureManager::SetTextureFit | ( | bool | bLower = true | ) | [inline] |
Sets whether the next lower valid texture size should be taken or the higher one.
[in] | bLower | Should the next lower valid texture size be chosen? If 'false' the next higher will be taken |
bool PLRenderer::TextureManager::AreTextureMipmapsAllowed | ( | ) | const [inline] |
Returns whether or not the usage of texture mipmaps is allowed.
void PLRenderer::TextureManager::SetTextureMipmapsAllowed | ( | bool | bAllowed | ) | [inline] |
Sets whether or not the usage of texture mipmaps is allowed.
[in] | bAllowed | 'true' if the usage of texture mipmaps is allowed, else 'false', default is 'true' |
bool PLRenderer::TextureManager::IsTextureCompressionAllowed | ( | ) | const [inline] |
Returns whether or not the usage of texture compression is allowed.
void PLRenderer::TextureManager::SetTextureCompressionAllowed | ( | bool | bAllowed | ) | [inline] |
Sets whether or not the usage of texture compression is allowed.
[in] | bAllowed | 'true' if the usage of texture compression is allowed, else 'false', default is 'true' |
PLRENDERER_API bool PLRenderer::TextureManager::ReloadTextures | ( | ) |
Reloads all textures.
PLRENDERER_API Texture* PLRenderer::TextureManager::CreateTexture | ( | const PLCore::String & | sName, |
TextureBuffer & | cTextureBuffer | ||
) |
Creates a new texture.
PLRENDERER_API Texture* PLRenderer::TextureManager::CreateTexture | ( | const PLCore::String & | sName, |
const PLCore::String & | sParameters | ||
) |
Creates a texture resource using a texture creator.
[in] | sName | Texture creator class name (for instance "PLRenderer::TextureCreatorTurbulence3D") |
[in] | sParameters | Texture creator parameters. (for instance "XSize='64' YSize='32'") This parameters depend on the used texture creator. |
PLRENDERER_API const PLCore::String PLRenderer::TextureManager::Default [static] |
Default texture
|