ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Functions | Variables
roland.cpp File Reference
#include <memory>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "videogl.h"
#include "videostd.h"
#include "gui.h"
#include "label.h"
#include "button.h"
#include "list.h"
#include "listitem.h"
#include "filelist.h"
#include "filelistitem.h"
#include "size.h"
#include "audio.h"
#include "clock.h"
#include "keytrans.h"
#include "color.h"
#include "events.h"
#include "cpc.h"
#include "prefs.h"

Functions

void init ()
 
void initGui ()
 
void quit ()
 
void clearKeyBuffer ()
 
void mainloop ()
 
void display ()
 
static const string datadir (prefs.getPath("datadir"))
 
int main (int argc, char *argv[])
 

Variables

uint framecount = 0
 
uint framecountsum = 0
 
bool showfps = false
 
bool running = true
 
bool joystick = false
 
Prefs prefs
 
sdltk::Audio audio & cpc
 
sdltk::KeyTrans keytrans
 
sdltk::Videovideo = nullptr
 
sdltk::Guigui = nullptr
 
sdltk::LabellblFps = nullptr
 
sdltk::LabellblJoy = nullptr
 
sdltk::LabellblDisk = nullptr
 
sdltk::LabellblMenu = nullptr
 
sdltk::LabellblTitle = nullptr
 
sdltk::ButtonbtnMenu = nullptr
 
sdltk::ButtonbtnTest = nullptr
 
sdltk::ButtonbtnTest2 = nullptr
 
sdltk::ButtonbtnDiskA = nullptr
 
sdltk::ButtonbtnDiskB = nullptr
 
sdltk::ListlstDirectory = nullptr
 
sdltk::FileListlstFile = nullptr
 
sdltk::Clock mainClock
 
sdltk::Clock displayClock
 

Function Documentation

void clearKeyBuffer ( )

References cpc, and Audio::init().

Referenced by init(), and mainloop().

static const string datadir ( prefs.  getPath"datadir")
static

Referenced by initGui(), and main().

void display ( )
inline
void init ( )
void initGui ( )
int main ( int  argc,
char *  argv[] 
)
void mainloop ( )
void quit ( )

References IOUT.

Referenced by init(), main(), and mainloop().

Variable Documentation

sdltk::Button* btnDiskA = nullptr
sdltk::Button* btnDiskB = nullptr
sdltk::Button* btnMenu = nullptr
sdltk::Button* btnTest = nullptr
sdltk::Button* btnTest2 = nullptr
sdltk::Audio audio& cpc
sdltk::Clock displayClock
uint framecount = 0

Referenced by display(), and mainloop().

uint framecountsum = 0

Referenced by display().

sdltk::Gui* gui = nullptr

Referenced by initGui().

bool joystick = false

Referenced by initGui(), and mainloop().

sdltk::KeyTrans keytrans
sdltk::Label* lblDisk = nullptr
sdltk::Label* lblFps = nullptr
sdltk::Label* lblJoy = nullptr
sdltk::Label* lblMenu = nullptr
sdltk::Label* lblTitle = nullptr
sdltk::List* lstDirectory = nullptr
sdltk::FileList* lstFile = nullptr
sdltk::Clock mainClock
Prefs prefs

Referenced by add_subdirectory().

bool running = true

Referenced by mainloop().

bool showfps = false

Referenced by display(), and init().

sdltk::Video* video = nullptr

Referenced by init(), and mainloop().