|
Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Palette interface.
| Inner Classes, Typedefs, and Enums | |
typedef |
Nes::Api::Video::Palette::Colors
RGB colors. |
enum |
Nes::Api::Video::Palette::CustomType
Custom palette types. |
enum |
Nes::Api::Video::Palette::Mode
Palette modes |
| Constructor Summary | |
Palette( Core::Machine& instance )
Interface constructor |
|
| Method Summary | |
Nes::Api::Video::Palette::Colors |
GetColors() const
Return the current palette colors. |
uint |
GetCustom( uchar ( * colors )[ 3], Nes::Api::Video::Palette::CustomType type ) const
Returns the custom palette. |
Nes::Api::Video::Palette::CustomType |
GetCustomType() const
Returns the custom palette type. |
Nes::Api::Video::Palette::Mode |
GetDefaultMode() const
Returns the default palette mode. |
Nes::Api::Video::Palette::Mode |
GetMode() const
Returns the current palette mode. |
void |
ResetCustom()
Resets the custom palette. |
Result |
SetCustom( Nes::Api::Video::Palette::Colors colors, Nes::Api::Video::Palette::CustomType type = STD_PALETTE )
Sets the custom palette. |
Result |
SetMode( Nes::Api::Video::Palette::Mode mode )
Sets the palette mode. |
| Constructor Detail |
public Palette( Core::Machine& instance );
instance - emulator instance| Method Detail |
public Nes::Api::Video::Palette::Colors GetColors() const throw();
public uint GetCustom( uchar ( * colors )[ 3], Nes::Api::Video::Palette::CustomType type ) const throw();
colors - RGB colors to be filled
type - custom palette typepublic Nes::Api::Video::Palette::CustomType GetCustomType() const throw();
public Nes::Api::Video::Palette::Mode GetDefaultMode() const throw();
public Nes::Api::Video::Palette::Mode GetMode() const throw();
public void ResetCustom() throw();
public Result SetCustom( Nes::Api::Video::Palette::Colors colors, Nes::Api::Video::Palette::CustomType type = STD_PALETTE ) throw();
colors - RGB color data
type - custom palette typepublic Result SetMode( Nes::Api::Video::Palette::Mode mode ) throw();
mode - palette mode
|
Nestopia Core API | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||