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 getSrcHeight(void) const
Returns the height of the original input texture (may differ due to hardware requirements).
Combination of HBU_STATIC and HBU_WRITE_ONLY.
virtual PixelFormat getFormat() const
Returns the pixel format for the texture surface.
Mipmaps will be automatically generated for this texture.
uint8 mNumRequestedMipmaps
PixelFormat mDesiredFormat
virtual void setNumMipmaps(uint8 num)
Sets the number of mipmaps to be used for this texture.
Static buffer which the application rarely modifies once created.
Indicates the application will never read the contents of the buffer back, it will only ever write da...
virtual const String & getFSAAHint() const
Get the multisample AA hint if this texture is a rendertarget.
2D texture, used in combination with 2D texture coordinates (default)
virtual int getUsage() const
Returns the TextureUsage identifier for this Texture.
2D non-square texture, used in combination with 2D texture coordinates
Indicates the application would like to modify this buffer with the CPU fairly often.
virtual uint8 getNumMipmaps(void) const
Gets the number of mipmaps to be used for this texture.
PixelFormat
The pixel format used for images, textures, and render surfaces.
Abstract class representing a loadable resource (e.g.
virtual TextureType getTextureType(void) const
Gets the type of texture.
Interface describing a manual resource loader.
Abstract class representing a Texture resource.
virtual uint32 getHeight(void) const
Returns the height of the texture.
Enums describing buffer usage; not mutually exclusive.
unsigned long long int ResourceHandle
TextureUsage
Enum identifying the texture usage.
virtual void setGamma(float g)
Sets the gamma adjustment factor applied to this texture on loading the data.
virtual uint32 getDepth(void) const
Returns the depth of the texture (only applicable for 3D textures).
Generate mipmaps up to 1x1.
PixelFormat mSrcFormat
Bit field, so this can't be TextureUsage.
TextureMipmap
Enum identifying special mipmap numbers.
Combination of HBU_DYNAMIC, HBU_WRITE_ONLY and HBU_DISCARDABLE.
Default to automatic mipmap generation static textures.
3D volume texture, used in combination with 3D texture coordinates
virtual PixelFormat getSrcFormat(void) const
Returns the pixel format of the original input texture (may differ due to hardware requirements and p...
Combination of HBU_DYNAMIC and HBU_WRITE_ONLY.
virtual uint getFSAA() const
Get the level of multisample AA to be used if this texture is a rendertarget.
virtual float getGamma(void) const
Returns the gamma adjustment factor applied to this texture on loading.
TextureType
Enum identifying the texture type.
virtual uint32 getSrcWidth(void) const
Returns the width of the original input texture (may differ due to hardware requirements).
virtual void setHeight(uint32 h)
Set the height of the texture; can only do this before load();.
Shared pointer implementation used to share pixel buffers.
bool mMipmapsHardwareGenerated
1D texture, used in combination with 1D texture coordinates
unsigned short mDesiredIntegerBitDepth
virtual void setHardwareGammaEnabled(bool enabled)
Sets whether this texture will be set up so that on sampling it, hardware gamma correction is applied...
virtual void setTextureType(TextureType ttype)
Sets the type of texture; can only be changed before load()
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.
Defines a generic resource handler.
Class representing an image file.
virtual uint32 getSrcDepth(void) const
Returns the original depth of the input texture (only applicable for 3D textures).
unsigned short mDesiredFloatBitDepth
virtual bool isHardwareGammaEnabled() const
Gets whether this texture will be set up so that on sampling it, hardware gamma correction is applied...
virtual void setDepth(uint32 d)
Set the depth of the texture (only applicable for 3D textures); can only do this before load();...
vector< const Image * >::type ConstImagePtrList
virtual bool getMipmapsHardwareGenerated(void) const
Are mipmaps hardware generated?
virtual uint32 getWidth(void) const
Returns the width of the texture.
virtual void setWidth(uint32 w)
Set the width of the texture; can only do this before load();.
virtual void setFSAA(uint fsaa, const String &fsaaHint)
Set the level of multisample AA to be used if this texture is a rendertarget.
virtual PixelFormat getDesiredFormat(void) const
Returns the desired pixel format for the texture surface.
Use TextureManager default.
bool mInternalResourcesCreated
3D cube map, used in combination with 3D texture coordinates
bool mTreatLuminanceAsAlpha
virtual void setUsage(int u)
Sets the TextureUsage identifier for this Texture; only useful before load()