ClanSoft logo
ClanSoft logo

    CL_Res_Palette

The palette resource type.

Parents: public CL_ResourceType

Description

This class is used to load palette resources from a resource source (datafile or script file).

Use the CL_ResourceManager to get an instance to the resource source, and then call one of the static functions here to load the resource:

 CL_ResourceManager res_manager("my_datafile.dat", true);
 CL_Palette *my_palette = CL_Res_Palette::load("my_palette", res_manager);
 

Class members

static CL_Palette *load(
        CL_String res_id,
        CL_ResourceManager &manager)
static void set_system_palette( CL_String res_id, CL_ResourceManager &manager)
CL_Res_Palette()

See Also

None


Back to index



This page was built using the Perceps documentation system.