GL Studio C++ Runtime API
|
#include <texture_palette.h>
Public Member Functions | |
TexturePaletteEntry (const TexturePaletteEntry &source) | |
void | Initialize () |
Set up the default member values. | |
TexturePaletteEntry & | operator= (const TexturePaletteEntry &source) |
TextureState_e | TextureStatus () |
const char * | Filename () const |
void | Filename (const char *name) |
void | Invalidate () |
Sets the texture state to invalid. | |
void | Validate () |
Set the texture state to valid. | |
void | Ignore () |
Sets texture to NULL and status to IGNORED. | |
bool | IsEmpty () const |
bool | IsIgnored () const |
bool | IsUsed () const |
std::ostream & | WriteValue (std::ostream &outstr) |
std::istream & | ReadValue (std::istream &instr) |
Public Attributes | |
bool | generateInline |
True if the image is to be generated as inline code. | |
bool | reverseAlpha |
True if the alpha channel should be reversed on load. | |
bool | isLoadingDeferred |
True if loading should be deferred until first draw. | |
Image * | texture |
Pointer to the texture object itself. | |
long | compressedSize |
Size of image when compressed with currently set inline CODEC. | |
glsImageCodec | codec |
CODEC that will be used to compress an inline image. | |
int | compressionFactor |
Compression factor of the image, used only for JPEG. | |
int | desiredLoadWidth |
The width that the image should load at. 0 indicates full size. (Editor only) | |
int | desiredLoadHeight |
The height that the image should load at. 0 indicates full size. (Editor only) | |
int | sourceImageWidth |
The width of the source image. (pixels) (Editor only) | |
int | sourceImageHeight |
The height of the source image. (pixels) (Editor only) | |
int | sourceImageMemSize |
The size of the source image im memory. (bytes) (Editor only) | |
bool | useGLTextureCompression |
True if the image should be generated to use hardware texture compression. (Editor only) | |
bool | allowNPOT |
Allow Non-power of two texture (do not scale up). | |
Static Public Attributes | |
static bool | _defaultGenerateInline |
Unused, kept for backward compatibility. | |
A texture palette entry. Keeps track of which textures are assigned to each entry in the texture palette
TexturePaletteEntry | ( | const TexturePaletteEntry & | source | ) |
Copy constructor
source | The object to copy from. |
const char * Filename | ( | ) | const |
void Filename | ( | const char * | name | ) |
Set the file name relative to the current working directory.
name | The new file name to set. |
bool IsEmpty | ( | ) | const |
bool IsIgnored | ( | ) | const |
bool IsUsed | ( | ) | const |
TexturePaletteEntry & operator= | ( | const TexturePaletteEntry & | source | ) |
Assignment operator
source | Tthe object to copy from. |
std::istream & ReadValue | ( | std::istream & | instr | ) |
Reads this object from a stream.
instr | The stream to read from. |
|
inline |
std::ostream & WriteValue | ( | std::ostream & | outstr | ) |
Writes this object to a stream.
outstr | The stream to write to. |