40 #ifndef _TEXTURE_PALETTE_H
41 #define _TEXTURE_PALETTE_H
60 const int MULTIPLE_TEXTURES_SELECTED = -2;
81 virtual GLS_EXPORT ~DistiAttributeImageCodecEnum();
93 char* _returned_filename;
94 bool _supportsNPOTValue;
96 void SupportsAllowNPOT();
101 static GLS_EXPORT
bool _defaultGenerateInline;
121 GLS_EXPORT
void Initialize(
void );
125 GLS_EXPORT
TextureState_e TextureStatus(
void ) {
return status; }
126 GLS_EXPORT
const char* Filename(
void )
const;
127 GLS_EXPORT
void Filename(
const char* name );
128 GLS_EXPORT
void Invalidate(
void );
129 GLS_EXPORT
void Validate(
void );
130 GLS_EXPORT
void Ignore();
132 GLS_EXPORT
bool IsEmpty(
void )
const;
133 GLS_EXPORT
bool IsIgnored(
void )
const;
135 GLS_EXPORT std::ostream& WriteValue( std::ostream& outstr );
136 GLS_EXPORT std::istream& ReadValue( std::istream& instr );
147 GLS_EXPORT
bool ValidIndex(
int i );
150 Image* _defaultTexture;
176 GLS_EXPORT
unsigned int size(
void )
const;
258 GLS_EXPORT
int Width(
int i );
264 GLS_EXPORT
int Height(
int i );
376 GLS_EXPORT
void AllowNPOT(
int i,
bool val );
411 GLS_EXPORT
void Reload(
int i );
417 GLS_EXPORT
void SetMipMap(
int i,
bool val );
429 static GLS_EXPORT
bool DownsizeImage(
Image* image,
int desiredWidth,
int desiredHeight );
443 virtual std::ostream&
WriteValue( std::ostream& outstr ) {
return outstr; }
445 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:62
glsImageCodec Codec(int i)
virtual std::ostream & WriteValue(std::ostream &outstr)
const char * TextureFilename(int i)
bool useGLTextureCompression
Definition: texture_palette.h:114
DynamicArray< TexturePaletteEntry, false > palette
Definition: texture_palette.h:154
virtual std::istream & ReadValue(std::istream &instr)
float TextureCoordX(int i)
int FindAvailableSlot(void)
TextureState_e
Definition: texture_palette.h:63
Definition: dynamic_array.h:62
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:86
bool UseGLTextureCompression(int i)
int desiredLoadWidth
Definition: texture_palette.h:109
Definition: texture_palette.h:434
long compressedSize
Definition: texture_palette.h:106
Definition: gls_metadata_attributes.h:1655
Definition: texture_palette.h:65
virtual bool OkToWrite() const
Definition: texture_palette.h:442
Definition: gls_state_manager_interface.h:66
Definition: texture_palette.h:66
unsigned int size(void) const
int compressionFactor
Definition: texture_palette.h:108
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:70
The Image class. All textures are converted internally into Images.
void SetMipMap(int i, bool val)
void InvalidateTexture(int i)
Definition: texture_palette.h:68
bool allowNPOT
Definition: texture_palette.h:116
virtual DistiAttributeBase & operator=(const DistiAttributeBase &oldClass)
int sourceImageHeight
Definition: texture_palette.h:112
void InvalidateTextures(void)
float TextureCoordY(int i)
Definition: texture_palette.h:77
int sourceImageWidth
Definition: texture_palette.h:111
int sourceImageMemSize
Definition: texture_palette.h:113
Definition: disti_metadata.h:174
bool reverseAlpha
Definition: texture_palette.h:104
Definition: file_path_class.h:60
void PaletteSize(int newSize)
Definition: disti_metadata.h:667
Image * texture
Definition: texture_palette.h:105
Definition: texture_palette.h:450
Definition: callback_caller_base.h:55
virtual std::istream & ReadValue(std::istream &instr)
long CompressedSize(int i)
bool DisableImageSharing(int index)
bool generateInline
Definition: texture_palette.h:103
Definition: texture_palette.h:143
void PreviewGenerated(int i)
int CompressionFactor(int i)
glsImageCodec codec
Definition: texture_palette.h:107
Definition: disti_metadata.h:79
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:110
virtual std::ostream & WriteValue(std::ostream &outstr)
Definition: texture_palette.h:443
int FindTextureByName(const char *name)
bool GenerateInline(int i)