25 #ifndef GRAPHICS_AURORA_TEXTURE_H 26 #define GRAPHICS_AURORA_TEXTURE_H 37 class SeekableReadStream;
76 bool deswizzle =
false);
82 TXI *txi = 0,
bool deswizzle =
false);
100 bool deswizzle =
false);
103 bool deswizzle =
false);
118 void setWrap(GLenum target, GLint wrapModeX, GLint wrapModeY);
122 void setMipMapData(GLenum target,
size_t layer,
size_t mipMap);
126 TXI *txi = 0,
bool deswizzle =
false);
129 bool deswizzle =
false);
138 #endif // GRAPHICS_AURORA_TEXTURE_H
const TXI & getTXI() const
Return the TXI.
A class holding an UTF-8 string.
static Texture * createPLT(const Common::UString &name, Common::SeekableReadStream *imageStream)
void setMipMapData(GLenum target, size_t layer, size_t mipMap)
static Texture * create(const Common::UString &name, bool deswizzle=false)
Create a texture from this image resource.
static TXI * loadTXI(const Common::UString &name)
Virtual base class of a texture.
A simple scoped smart pointer template.
const ImageDecoder & getImage() const
Return the image.
Common::ScopedPtr< TXI > _txi
The TXI.
static ImageDecoder * loadImage(const Common::UString &name, bool deswizzle=false)
Load an image in any of the common texture formats.
void setFilter(GLenum target)
A scoped plain pointer, allowing pointer-y access and normal deletion.
Common::UString _name
The name of the texture's image's file.
virtual bool isDynamic() const
Is this a dynamic texture, or a shared static one?
Basic type definitions to handle files used in BioWare's Aurora engine.
bool dumpTGA(const Common::UString &fileName) const
Dump the texture into a TGA.
FileType
Various file types used by the Aurora engine and found in archives.
A generic interface for image decoders.
virtual bool reload()
Try to reload the texture.
void setMipMaps(GLenum target)
void createCubeMapTexture()
::Aurora::FileType _type
The type of the texture's image's file.
Interface for a seekable & readable data stream.
void setWrap(GLenum target, GLint wrapModeX, GLint wrapModeY)
Common::ScopedPtr< ImageDecoder > _image
The actual image.