Class that encapsulates a TexturePalette. 
Add a texture to the palette. 
- Parameters
- 
  
    | filename | file path and name of texture to add (can be relative or absolute) |  
 
- Returns
- the texture palette entry for the added texture 
- Precondition
- !isNULL(), file exists 
 
 
      
        
          | int TexturePalette::FindTextureByName | ( | String | filename | ) |  | 
      
 
Find a texture by name. 
- Parameters
- 
  
    | filename | file path and name of texture to check (can be relative or absolute) |  
 
- Returns
- textureIndex, -1 if not found 
 
 
      
        
          | unsigned int TexturePalette::GetCount | ( | void |  | ) |  | 
      
 
Get the number of texture palette entries in the palette. 
- Returns
- the number of texture palette entries in the palette 
- Precondition
- !isNULL() 
 
 
Get a texture palette entry from the palette. 
- Parameters
- 
  
    | texPalIdx | zero based texture palette index |  
 
- Returns
- texture palette entry, NOTE the return entry may be an empty entry in which case TexturePaletteEntry.isNULL() will return true 
- Precondition
- !isNULL(), texPalIdx < GetCount() 
 
 
      
        
          | bool TexturePalette::isNULL | ( | void |  | ) |  | 
      
 
Determine if wrapped texture palette does not exist. 
- Returns
- True if this object represents a NULL texture palette 
- Deprecated:
- Refer to the Truth Value Checking page 
 
 
Remove a texture from the palette. 
- Parameters
- 
  
    | texturePaletteEntry | texture to remove |  
 
- Precondition
- !isNULL(), !texturePaletteEntry.isNULL(), texture palette entry is in this palette 
 
 
The documentation for this class was generated from the following file: