40 #ifndef _TEXTURE_PALETTE_H
41 #define _TEXTURE_PALETTE_H
62 const int MULTIPLE_TEXTURES_SELECTED = -2;
83 virtual GLS_EXPORT ~DistiAttributeImageCodecEnum();
95 char* _returned_filename;
96 bool _supportsNPOTValue;
98 void SupportsAllowNPOT();
102 static GLS_EXPORT
bool _defaultGenerateInline;
122 GLS_EXPORT
void Initialize(
void);
127 GLS_EXPORT
const char *Filename(
void)
const;
128 GLS_EXPORT
void Filename(
const char *name);
129 GLS_EXPORT
void Invalidate(
void);
130 GLS_EXPORT
void Validate(
void);
131 GLS_EXPORT
void Ignore();
133 GLS_EXPORT
bool IsEmpty(
void)
const;
134 GLS_EXPORT
bool IsIgnored(
void)
const;
136 GLS_EXPORT std::ostream & WriteValue(std::ostream &outstr);
137 GLS_EXPORT std::istream & ReadValue(std::istream &instr);
150 GLS_EXPORT
bool ValidIndex(
int i);
177 GLS_EXPORT
unsigned int size(
void)
const;
259 GLS_EXPORT
int Width(
int i);
265 GLS_EXPORT
int Height(
int i);
306 GLS_EXPORT
void BindTexture(
int i,IGlsStateManager *stateManager);
378 GLS_EXPORT
void AllowNPOT(
int i,
bool val);
413 GLS_EXPORT
void Reload(
int i);
419 GLS_EXPORT
void SetMipMap(
int i,
bool val);
431 static GLS_EXPORT
bool DownsizeImage(
Image* image,
int desiredWidth,
int desiredHeight);
444 virtual std::ostream &
WriteValue(std::ostream &outstr) {
return outstr; }
446 virtual GLS_EXPORT std::istream &
ReadValue(std::istream &instr);
456 virtual GLS_EXPORT std::ostream &
WriteValue(std::ostream &outstr);
457 virtual GLS_EXPORT std::istream &
ReadValue(std::istream &instr);
glsImageCodec
Definition: image.h:59
glsImageCodec Codec(int i)
virtual std::ostream & WriteValue(std::ostream &outstr)
const char * TextureFilename(int i)
bool useGLTextureCompression
Definition: texture_palette.h:115
virtual std::istream & ReadValue(std::istream &instr)
float TextureCoordX(int i)
int FindAvailableSlot(void)
TextureState_e
Definition: texture_palette.h:65
Definition: dynamic_array.h:63
static bool DownsizeImage(Image *image, int desiredWidth, int desiredHeight)
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
TexturePaletteEntry * Entry(int i)
Definition: texture_palette.h:88
bool UseGLTextureCompression(int i)
int desiredLoadWidth
Definition: texture_palette.h:110
Definition: texture_palette.h:436
long compressedSize
Definition: texture_palette.h:107
Definition: gls_metadata_attributes.h:1625
Definition: texture_palette.h:67
virtual bool OkToWrite() const
Definition: texture_palette.h:443
Definition: texture_palette.h:68
unsigned int size(void) const
int compressionFactor
Definition: texture_palette.h:109
A file for all GL Studio files to include.
bool SetTexture(int i, const char *filename, const Image::LoadOptions &options=Image::LoadOptions(), bool glTexCompress=false, bool allowNPOT=true)
TexturePalette(int size=0)
Definition: texture_palette.h:72
The Image class. All textures are converted internally into Images.
void SetMipMap(int i, bool val)
void InvalidateTexture(int i)
Definition: texture_palette.h:70
bool allowNPOT
Definition: texture_palette.h:117
DynamicArray< TexturePaletteEntry, false > palette
Definition: texture_palette.h:155
virtual DistiAttributeBase & operator=(const DistiAttributeBase &oldClass)
int sourceImageHeight
Definition: texture_palette.h:113
void InvalidateTextures(void)
float TextureCoordY(int i)
Definition: texture_palette.h:79
int sourceImageWidth
Definition: texture_palette.h:112
int sourceImageMemSize
Definition: texture_palette.h:114
Definition: disti_metadata.h:179
bool reverseAlpha
Definition: texture_palette.h:105
Definition: file_path_class.h:60
void PaletteSize(int newSize)
Definition: disti_metadata.h:676
Image * texture
Definition: texture_palette.h:106
Definition: texture_palette.h:451
Definition: callback_caller_base.h:56
virtual std::istream & ReadValue(std::istream &instr)
long CompressedSize(int i)
bool DisableImageSharing(int index)
bool generateInline
Definition: texture_palette.h:104
Definition: texture_palette.h:146
void PreviewGenerated(int i)
int CompressionFactor(int i)
glsImageCodec codec
Definition: texture_palette.h:108
Definition: disti_metadata.h:83
void DesiredLoadSize(int i, int width, int height)
Definition: bmpimage.h:46
TextureState_e TextureState(int i)
bool SetInlineTexture(int i, glsInlineImage &image)
void DeleteTexture(int i)
int desiredLoadHeight
Definition: texture_palette.h:111
virtual std::ostream & WriteValue(std::ostream &outstr)
Definition: texture_palette.h:444
int FindTextureByName(const char *name)
bool GenerateInline(int i)