| 
 | 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::ColorsRGB colors. | 
| enum | Nes::Api::Video::Palette::CustomTypeCustom palette types. | 
| enum | Nes::Api::Video::Palette::ModePalette modes | 
| Constructor Summary | |
| Palette( Core::Machine& instance )Interface constructor | |
| Method Summary | |
|  Nes::Api::Video::Palette::Colors | GetColors() constReturn the current palette colors. | 
|  uint | GetCustom( uchar ( * colors )[ 3], Nes::Api::Video::Palette::CustomType type ) constReturns the custom palette. | 
|  Nes::Api::Video::Palette::CustomType | GetCustomType() constReturns the custom palette type. | 
|  Nes::Api::Video::Palette::Mode | GetDefaultMode() constReturns the default palette mode. | 
|  Nes::Api::Video::Palette::Mode | GetMode() constReturns 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 | |||||||