136 virtual float getGamma(
void)
const {
return mGamma; }
255 virtual void createInternalResources(
void);
259 virtual void freeInternalResources(
void);
263 virtual void copyToTexture(
TexturePtr& target );
271 virtual void loadImage(
const Image &img );
302 return mDesiredFormat;
317 virtual bool hasAlpha(
void)
const;
324 virtual void setDesiredIntegerBitDepth(
ushort bits);
328 virtual ushort getDesiredIntegerBitDepth(
void)
const;
335 virtual void setDesiredFloatBitDepth(
ushort bits);
339 virtual ushort getDesiredFloatBitDepth(
void)
const;
343 virtual void setDesiredBitDepths(
ushort integerBits,
ushort floatBits);
347 virtual void setTreatLuminanceAsAlpha(
bool asAlpha);
351 virtual bool getTreatLuminanceAsAlpha(
void)
const;
356 virtual size_t getNumFaces()
const;
377 virtual void convertToImage(
Image& destImage,
bool includeMipMaps =
false);
416 size_t calculateSize(
void)
const;
421 virtual void createInternalResourcesImpl(
void) = 0;
425 virtual void freeInternalResourcesImpl(
void) = 0;
428 void unloadImpl(
void);
433 String getSourceFileType()
const;
virtual uint32 getSrcWidth(void) const
Returns the width of the original input texture (may differ due to hardware requirements).
This texture will be a render target, i.e.
virtual void getCustomAttribute(const String &name, void *pData)
Retrieve a platform or API-specific piece of information from this texture.
TextureMipmap
Enum identifying special mipmap numbers.
virtual void setGamma(float g)
Sets the gamma adjustment factor applied to this texture on loading the data.
virtual void setDepth(uint32 d)
Set the depth of the texture (only applicable for 3D textures); can only do this before load();...
Combination of HBU_STATIC and HBU_WRITE_ONLY.
virtual PixelFormat getDesiredFormat(void) const
Returns the desired pixel format for the texture surface.
Mipmaps will be automatically generated for this texture.
virtual PixelFormat getSrcFormat(void) const
Returns the pixel format of the original input texture (may differ due to hardware requirements and p...
Indicates the application will never read the contents of the buffer back, it will only ever write da...
PixelFormat mSrcFormat
Bit field, so this can't be TextureUsage.
vector< const Image * >::type ConstImagePtrList
Interface describing a manual resource loader.
virtual int getUsage() const
Returns the TextureUsage identifier for this Texture.
virtual uint32 getWidth(void) const
Returns the width of the texture.
Combination of HBU_DYNAMIC, HBU_WRITE_ONLY and HBU_DISCARDABLE.
bool mMipmapsHardwareGenerated
unsigned short mDesiredIntegerBitDepth
Indicates the application would like to modify this buffer with the CPU fairly often.
virtual uint32 getHeight(void) const
Returns the height of the texture.
virtual void setFSAA(uint fsaa, const String &fsaaHint)
Set the level of multisample AA to be used if this texture is a rendertarget.
Static buffer which the application rarely modifies once created.
1D texture, used in combination with 1D texture coordinates
uint8 mNumRequestedMipmaps
PixelFormat
The pixel format used for images, textures, and render surfaces.
Enums describing buffer usage; not mutually exclusive.
virtual void setWidth(uint32 w)
Set the width of the texture; can only do this before load();.
Combination of HBU_DYNAMIC and HBU_WRITE_ONLY.
bool mInternalResourcesCreated
2D non-square texture, used in combination with 2D texture coordinates
virtual uint32 getSrcDepth(void) const
Returns the original depth of the input texture (only applicable for 3D textures).
virtual uint getFSAA() const
Get the level of multisample AA to be used if this texture is a rendertarget.
Shared pointer implementation used to share pixel buffers.
virtual bool isHardwareGammaEnabled() const
Gets whether this texture will be set up so that on sampling it, hardware gamma correction is applied...
Class representing an image file.
virtual void setUsage(int u)
Sets the TextureUsage identifier for this Texture; only useful before load()
Abstract class representing a loadable resource (e.g.
unsigned long long int ResourceHandle
virtual uint32 getDepth(void) const
Returns the depth of the texture (only applicable for 3D textures).
bool mTreatLuminanceAsAlpha
virtual void setHeight(uint32 h)
Set the height of the texture; can only do this before load();.
virtual uint8 getNumMipmaps(void) const
Gets the number of mipmaps to be used for this texture.
virtual void setTextureType(TextureType ttype)
Sets the type of texture; can only be changed before load()
virtual void setHardwareGammaEnabled(bool enabled)
Sets whether this texture will be set up so that on sampling it, hardware gamma correction is applied...
virtual float getGamma(void) const
Returns the gamma adjustment factor applied to this texture on loading.
TextureType
Enum identifying the texture type.
Defines a generic resource handler.
unsigned short mDesiredFloatBitDepth
2D texture, used in combination with 2D texture coordinates (default)
PixelFormat mDesiredFormat
Use TextureManager default.
virtual const String & getFSAAHint() const
Get the multisample AA hint if this texture is a rendertarget.
Default to automatic mipmap generation static textures.
3D volume texture, used in combination with 3D texture coordinates
virtual bool getMipmapsHardwareGenerated(void) const
Are mipmaps hardware generated?
Generate mipmaps up to 1x1.
Abstract class representing a Texture resource.
virtual PixelFormat getFormat() const
Returns the pixel format for the texture surface.
3D cube map, used in combination with 3D texture coordinates
virtual uint32 getSrcHeight(void) const
Returns the height of the original input texture (may differ due to hardware requirements).
virtual TextureType getTextureType(void) const
Gets the type of texture.
virtual void setNumMipmaps(uint8 num)
Sets the number of mipmaps to be used for this texture.
TextureUsage
Enum identifying the texture usage.