Handles colour palette files.
More...
#include <VGearsPaletteFile.h>
Handles colour palette files.
◆ Color
◆ Page
◆ PageList
◆ PaletteFile()
VGears::PaletteFile::PaletteFile |
( |
Ogre::ResourceManager * |
creator, |
|
|
const String & |
name, |
|
|
Ogre::ResourceHandle |
handle, |
|
|
const String & |
group, |
|
|
bool |
is_manual = false , |
|
|
Ogre::ManualResourceLoader * |
loader = nullptr |
|
) |
| |
Constructor.
- Parameters
-
[in] | creator | Pointer to the ResourceManager that is creating this resource. |
[in] | name | The unique name of the resource. |
[in] | handle | |
- Todo:
- Understand and document.
- Parameters
-
[in] | group | The name of the resource group to which this resource belong. |
[in] | is_manual | True if the resource is manually loaded, false otherwise. |
[in] | loader | Pointer to a ManualResourceLoader implementation which will be called when the Resource wishes to load (should be supplied if is_manual is set to true). It can be null, but the Resource will never be able to reload if anything ever causes it to unload. Therefore provision of a proper ManualResourceLoader instance is strongly recommended. |
◆ ~PaletteFile()
VGears::PaletteFile::~PaletteFile |
( |
| ) |
|
|
virtual |
◆ calculateSize()
size_t VGears::PaletteFile::calculateSize |
( |
void |
| ) |
const |
|
overrideprotectedvirtual |
Calculates the size of the palette.
- Returns
- The size of the palette.
- Todo:
- Units?
◆ GetPage()
virtual const Page & VGears::PaletteFile::GetPage |
( |
size_t |
index | ) |
const |
|
inlinevirtual |
Retrieves a page.
- Parameters
-
- Returns
- The page at the specified index.
◆ GetPages()
virtual PageList & VGears::PaletteFile::GetPages |
( |
| ) |
|
|
inlinevirtual |
Retrieevs the list of pages.
- Returns
- The list of pages.
◆ loadImpl()
void VGears::PaletteFile::loadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ unloadImpl()
void VGears::PaletteFile::unloadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ pages_
The list of palette pages.
◆ RESOURCE_TYPE
const String VGears::PaletteFile::RESOURCE_TYPE |
|
static |
The documentation for this class was generated from the following files: