|
ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
#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::Video * | video = nullptr |
| sdltk::Gui * | gui = nullptr |
| sdltk::Label * | lblFps = nullptr |
| sdltk::Label * | lblJoy = nullptr |
| sdltk::Label * | lblDisk = nullptr |
| sdltk::Label * | lblMenu = nullptr |
| sdltk::Label * | lblTitle = nullptr |
| sdltk::Button * | btnMenu = nullptr |
| sdltk::Button * | btnTest = nullptr |
| sdltk::Button * | btnTest2 = nullptr |
| sdltk::Button * | btnDiskA = nullptr |
| sdltk::Button * | btnDiskB = nullptr |
| sdltk::List * | lstDirectory = nullptr |
| sdltk::FileList * | lstFile = nullptr |
| sdltk::Clock | mainClock |
| sdltk::Clock | displayClock |
| void clearKeyBuffer | ( | ) |
References cpc, and Audio::init().
Referenced by init(), and mainloop().
|
inline |
References cpc, Clock::elapsed(), framecount, framecountsum, Widget::setEnabled(), Label::setText(), Video::setup(), showfps, Gui::update(), and Video::update().
Referenced by mainloop().
| void init | ( | ) |
References clearKeyBuffer(), cpc, EOUT, Prefs::getBool(), Prefs::getPath(), Audio::init(), Video::init(), initGui(), quit(), showfps, and video.
Referenced by Colours::Colours(), Crtc::Crtc(), Drive::Drive(), FileList::FileList(), GateArray::GateArray(), ImageFont::ImageFont(), Keyboard::Keyboard(), List::List(), ImageFont::load(), main(), FileList::onKeyboard(), List::onKeyboard(), Ppi::Ppi(), Psg::Psg(), Register::Register(), Colours::setDepth(), Colours::setIntensity(), and Colours::setMonitor().
| void initGui | ( | ) |
References Gui::add(), datadir(), Video::getCanvas(), Prefs::getPath(), gui, Size::height(), Widget::height(), joystick, Video::screen(), Label::setBorder(), Widget::setColor(), Gui::setEnabled(), Widget::setEnabled(), Gui::setFocus(), Canvas::setFont(), Label::setImage(), Label::setPos(), Widget::setSize(), Label::setText(), Widget::setWantEvents(), Canvas::textSize(), Size::width(), and Widget::width().
Referenced by init(), and mainloop().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References datadir(), init(), IOUT, mainloop(), PACKAGE_STRING, quit(), Video::setCaption(), and Video::setIcon().
| void mainloop | ( | ) |
References bit_values, Video::bufferStart(), Gui::checkEvent(), clearKeyBuffer(), cpc, CYCLE_COUNT_INIT, Prefs::delim(), display(), KeyTrans::SeqPair::down, Clock::elapsed(), Gui::enabled(), Widget::enabled(), EOUT, framecount, KeyTrans::get(), Prefs::getPath(), KeyTrans::hasSequence(), Audio::init(), Video::init(), initGui(), IOUT, Button::isDown(), joystick, KeyTrans::SeqPair::keyval, sdltk::ListItemDoubleClicked, Audio::pause(), quit(), running, FileList::selected(), KeyTrans::sequenceVal(), Prefs::set(), Widget::setEnabled(), Gui::setFocus(), Video::toggleDoubling(), Gui::toggleEnabled(), Video::toggleFilter(), Video::toggleFullscreen(), KeyTrans::toggleJoystick(), video, and Audio::waitCopied().
Referenced by main().
| void quit | ( | ) |
References IOUT.
Referenced by init(), main(), and mainloop().
| sdltk::Button* btnDiskA = nullptr |
| sdltk::Button* btnDiskB = nullptr |
| sdltk::Button* btnMenu = nullptr |
| sdltk::Button* btnTest = nullptr |
| sdltk::Button* btnTest2 = nullptr |
| sdltk::Audio audio& cpc |
Referenced by Audio::Audio(), clearKeyBuffer(), display(), Z80::execute(), include_directories(), init(), mainloop(), and Video::Video().
| sdltk::Clock displayClock |
| uint framecount = 0 |
Referenced by display(), and mainloop().
| 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().
| sdltk::Video* video = nullptr |
Referenced by init(), and mainloop().
1.8.11