Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

C64Display Class Reference

#include <Display.h>

Collaboration diagram for C64Display:

Collaboration graph
List of all members.

Public Member Functions

 C64Display (C64 *the_c64)
 ~C64Display ()
void Update (void)
void UpdateLEDs (int l0, int l1, int l2, int l3)
void Speedometer (int speed)
uint8BitmapBase ()
int BitmapXMod () const
void PollKeyboard (uint8 *key_matrix, uint8 *rev_matrix, uint8 *joystick)
void InitColors (uint8 *colors)
void NewPrefs (Prefs *prefs)
void ResetKeyboardState ()
bool BuildColorTable ()

Static Public Member Functions

int VirtKey2C64 (const TKeyEvent &virtkey, TUint8 &aJoyKey)

Public Attributes

bool quit_requested

Private Member Functions

void draw_leds (TBool force=EFalse)

Private Attributes

uint8 colors [256]
bool in_constructor
int max_speed
int iSpeedCount
bool colors_changed
int colors_depth
int led_state [4]
int old_led_state [4]

Detailed Description

Class for C64 graphics display

Definition at line 60 of file Display.h.

Constructor & Destructor Documentation

C64Display::C64Display C64 the_c64  ) 

Definition at line 109 of file Display_Acorn.i.

References DISPLAY_Y, KeyJoy1_Down, KeyJoy1_Fire, KeyJoy1_Left, KeyJoy1_Right, KeyJoy1_Up, KeyJoy2_Down, KeyJoy2_Fire, KeyJoy2_Left, KeyJoy2_Right, KeyJoy2_Up, and uint8.

C64Display::~C64Display  ) 

Definition at line 128 of file Display_Acorn.i.

Member Function Documentation

uint8 * C64Display::BitmapBase  ) 

Definition at line 169 of file Display_Acorn.i.

References uint8.

Referenced by MOS6569::EmulateLine(), MOS6569::ReInitColors(), and MOS6569::vblank().

int C64Display::BitmapXMod void   )  const

Return number of bytes per row

Definition at line 191 of file Display_Acorn.i.

Referenced by MOS6569::vblank().

BOOL C64Display::BuildColorTable  ) 

build the color table

--- Unused keys: --- ///

Definition at line 50 of file display_epoc32.i.

References colors, Prefs::ColorTbl, ELOG, ELOG1, ELOG3, MOS6569::ReInitColors(), TheC64, C64::ThePrefs, C64::TheVIC, and uint8.

void C64Display::draw_leds TBool  force = EFalse  )  [private]

void C64Display::InitColors uint8 colors  ) 

Definition at line 175 of file Display_Acorn.i.

Referenced by MOS6569::ReInitColors().

void C64Display::NewPrefs Prefs prefs  ) 

Definition at line 346 of file Display_Acorn.i.

Referenced by C64::NewPrefs().

void C64Display::PollKeyboard uint8 key_matrix,
uint8 rev_matrix,
uint8 joystick

Definition at line 365 of file Display_Be.i.

References key_bit, and key_byte.

Referenced by C64::VBlank().

void C64Display::ResetKeyboardState  ) 

Definition at line 40 of file display_epoc32.i.

References CE32FrodoDocument::iAppUiPtr, Frodo::iDocPtr, C64::iFrodoPtr, CE32FrodoAppUi::key_matrix, CE32FrodoAppUi::keystate, memset, CE32FrodoAppUi::rev_matrix, and TheC64.

Referenced by C64::Reset().

void C64Display::Speedometer int  speed  ) 

Definition at line 340 of file Display_Amiga.i.

References DISPLAY_Y, sprintf, and strlen.

void C64Display::Update void   ) 

Definition at line 351 of file Display_Acorn.i.

References LED_ERROR_OFF, LED_ERROR_ON, LED_OFF, LED_ON, led_state, LEDtoIcon, old_led_state, sprintf, and TheC64.

Referenced by C64::VBlank().

void C64Display::UpdateLEDs int  l0,
int  l1,
int  l2,
int  l3

Definition at line 67 of file Display.cpp.

References led_state.

Referenced by IEC::UpdateLEDs(), and MOS6502_1541::write_byte_io().

int C64Display::VirtKey2C64 const TKeyEvent &  virtkey,
TUint8 &  aJoyKey

Referenced by CE32FrodoAppUi::HandleKeyEventL().

Member Data Documentation

uint8 C64Display::colors[256] [private]

Definition at line 116 of file Display.h.

Referenced by BuildColorTable().

bool C64Display::colors_changed [private]

Definition at line 120 of file Display.h.

int C64Display::colors_depth [private]

Definition at line 121 of file Display.h.

bool C64Display::in_constructor [private]

Definition at line 117 of file Display.h.

int C64Display::iSpeedCount [private]

Definition at line 119 of file Display.h.

int C64Display::led_state[4] [private]

Definition at line 127 of file Display.h.

Referenced by Update(), and UpdateLEDs().

int C64Display::max_speed [private]

Definition at line 118 of file Display.h.

int C64Display::old_led_state[4] [private]

Definition at line 128 of file Display.h.

Referenced by Update().

bool C64Display::quit_requested

Definition at line 113 of file Display.h.

C64* C64Display::TheC64

Definition at line 81 of file Display.h.

Referenced by BuildColorTable(), Window::RedrawAWindow(), ResetKeyboardState(), C64Screen::ScreenConnected(), and Update().

The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:11:36 2005 for E32frodo by doxygen 1.3.3