28 #ifndef _TextureManager_H__ 29 #define _TextureManager_H__ 103 const String &name,
const String& group,
bool isManual =
false,
106 Real gamma = 1.0f,
bool isAlpha =
false,
139 Real gamma = 1.0f,
bool isAlpha =
false,
174 Real gamma = 1.0f,
bool isAlpha =
false,
176 bool hwGammaCorrection =
false);
251 int numMipmaps =
MIP_DEFAULT,
Real gamma = 1.0f,
bool hwGammaCorrection =
false);
353 return createManual(name, group, texType, width, height, 1,
354 numMipmaps, format, usage, loader, hwGammaCorrection, fsaa, fsaaHint);
364 virtual void setPreferredIntegerBitDepth(
ushort bits,
bool reloadTextures =
true);
368 virtual ushort getPreferredIntegerBitDepth(
void)
const;
377 virtual void setPreferredFloatBitDepth(
ushort bits,
bool reloadTextures =
true);
381 virtual ushort getPreferredFloatBitDepth(
void)
const;
393 virtual void setPreferredBitDepths(
ushort integerBits,
ushort floatBits,
bool reloadTextures =
true);
463 bool preciseFormatOnly =
false) = 0;
473 virtual void setDefaultNumMipmaps(
size_t num);
479 return mDefaultNumMipmaps;
std::pair< ResourcePtr, bool > ResourceCreateOrRetrieveResult
Class for loading & managing textures.
ushort mPreferredFloatBitDepth
2D texture, used in combination with 2D texture coordinates (default)
static String AUTODETECT_RESOURCE_GROUP_NAME
Special resource group name which causes resource group to be automatically determined based on searc...
float Real
Software floating point type.
virtual size_t getDefaultNumMipmaps()
Gets the default number of mipmaps to be used for loaded textures.
PixelFormat
The pixel format used for images, textures, and render surfaces.
Interface describing a manual resource loader.
Default to automatic mipmap generation static textures.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
TextureType
Enum identifying the texture type.
size_t mDefaultNumMipmaps
Defines a generic resource handler.
Class representing an image file.
TexturePtr createManual(const String &name, const String &group, TextureType texType, uint width, uint height, int numMipmaps, PixelFormat format, int usage=TU_DEFAULT, ManualResourceLoader *loader=0, bool hwGammaCorrection=false, uint fsaa=0, const String &fsaaHint=StringUtil::BLANK)
Create a manual texture with a depth of 1 (not loaded from a file).
This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info...
Template class for creating single-instance global classes.
Use TextureManager default.
ushort mPreferredIntegerBitDepth
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.