ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
Colours Class Referencefinal

#include <colours.h>

Public Member Functions

 Colours ()
 
 ~Colours () ROLAND_DEFAULT void init()
 
void setIntensity (uint intensity)
 
void setDepth (uint depth)
 
void setMonitor (uint monitor)
 
tUDWORD get (int num) const
 

Private Attributes

uint mDepth
 
uint mIntensity
 
uint mMonitor
 
tUDWORD mTable [32]
 

Static Private Attributes

static const float mColour [32][3]
 
static const double mGreen [32]
 

Detailed Description

Author
Fred Klaus

Constructor & Destructor Documentation

Colours ( )
inline
~Colours ( )

Referenced by Colours::Colours().

Member Function Documentation

tUDWORD get ( int  num) const
inline

References Colours::mTable.

Referenced by Cpc::z80_out_handler().

void setDepth ( uint  depth)
inline

References init(), and Colours::mDepth.

Referenced by VideoStd::init(), and VideoGL::init().

void setIntensity ( uint  intensity)
inline

References init(), and Colours::mIntensity.

void setMonitor ( uint  monitor)
inline

References init(), and Colours::mMonitor.

Member Data Documentation

const float mColour
staticprivate
Initial value:
=
{
{0.5, 0.5, 0.5}, {0.5, 0.5, 0.5}, {0.0, 1.0, 0.5}, {1.0, 1.0, 0.5},
{0.0, 0.0, 0.5}, {1.0, 0.0, 0.5}, {0.0, 0.5, 0.5}, {1.0, 0.5, 0.5},
{1.0, 0.0, 0.5}, {1.0, 1.0, 0.5}, {1.0, 1.0, 0.0}, {1.0, 1.0, 1.0},
{1.0, 0.0, 0.0}, {1.0, 0.0, 1.0}, {1.0, 0.5, 0.0}, {1.0, 0.5, 1.0},
{0.0, 0.0, 0.5}, {0.0, 1.0, 0.5}, {0.0, 1.0, 0.0}, {0.0, 1.0, 1.0},
{0.0, 0.0, 0.0}, {0.0, 0.0, 1.0}, {0.0, 0.5, 0.0}, {0.0, 0.5, 1.0},
{0.5, 0.0, 0.5}, {0.5, 1.0, 0.5}, {0.5, 1.0, 0.0}, {0.5, 1.0, 1.0},
{0.5, 0.0, 0.0}, {0.5, 0.0, 1.0}, {0.5, 0.5, 0.0}, {0.5, 0.5, 1.0}
}
uint mDepth
private

Referenced by Colours::setDepth().

const double mGreen
staticprivate
Initial value:
=
{
0.5647, 0.5647, 0.7529, 0.9412, 0.1882, 0.3765, 0.4706, 0.6588,
0.3765, 0.9412, 0.9098, 0.9725, 0.3451, 0.4078, 0.6275, 0.6902,
0.1882, 0.7529, 0.7216, 0.7843, 0.1569, 0.2196, 0.4392, 0.5020,
0.2824, 0.8471, 0.8157, 0.8784, 0.2510, 0.3137, 0.5333, 0.5961
}
uint mIntensity
private

Referenced by Colours::setIntensity().

uint mMonitor
private

Referenced by Colours::setMonitor().

tUDWORD mTable[32]
private

Referenced by Colours::get().


The documentation for this class was generated from the following files: