ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
#include <videostd.h>
Public Member Functions | |
VideoStd (cpcx::Cpc *cpc) | |
virtual | ~VideoStd () |
virtual int | init () |
virtual int | init (uint width, uint height, uint depth, bool fullscreen, unsigned char scale) |
inits all More... | |
virtual Canvas * | getCanvas () |
virtual void | update () |
Updates the Screen (flip or something) More... | |
virtual void | quit () |
Free all resources. More... | |
virtual void | lock () |
Locks the screen-surface. More... | |
virtual void | unlock () |
Unlocks the screen-surface. More... | |
Public Member Functions inherited from Video | |
Video (cpcx::Cpc *cpc) | |
Constructs the video interface for the. More... | |
virtual | ~Video () ROLAND_DEFAULT virtual int init()=0 |
device dependant init for inheritance More... | |
virtual void | setup () |
Things that needs to be done before update. More... | |
uint | bpp () |
Things that needs to be done before update. More... | |
uint | depth () |
Returns the bytes per pixel inbetween (1 to 4) More... | |
Size | size () |
Returns the size of the video surface. More... | |
void | setFullscreen (bool value) |
Set to fullscreen or not. More... | |
void | setDoubling (bool value) |
Set line doubling on or off. More... | |
void | setFilter (bool value) |
En-/disable bilinear texture filter. More... | |
void | toggleFullscreen () |
Toggles fullscreen. More... | |
void | toggleDoubling () |
Toggle line doubling. More... | |
void | toggleFilter () |
Toggle bilinear texture filter. More... | |
uint * | bufferStart () |
Returns the start of the backbuffer. More... | |
uint * | bufferEnd () |
Returns the end of the backbuffer. More... | |
SDL_Surface * | buffer () |
Returns the SDL_Surface of the backbuffer. More... | |
SDL_Surface * | screen () |
Returns the SDL_Surface of the screen. More... | |
Private Member Functions | |
uint * | calcBufferStart () |
uint * | calcBufferEnd () |
Private Attributes | |
CanvasStd | mCanvas |
Additional Inherited Members | |
Static Public Member Functions inherited from Video | |
static void | setIcon (const String &icon) |
Sets an image as application icon. More... | |
static void | setCaption (const String &caption) |
Sets a caption for the application. More... | |
Protected Attributes inherited from Video | |
cpcx::Cpc * | mCpc |
unsigned int | mCpcWidth |
unsigned int | mCpcHeight |
unsigned char | mCpcScale |
unsigned int * | mBufferStart |
unsigned int * | mBufferEnd |
SDL_Surface * | mBuffer |
SDL_Surface * | mScreen |
SDL_Rect | mCanvasRect |
Static Protected Attributes inherited from Video | |
static unsigned int | mDesktopWidth = 0 |
static unsigned int | mDesktopHeight = 0 |
static bool | mFullscreen = false |
static bool | mDoubling = true |
static bool | mFilter = true |
References CPC_VISIBLE_SCR_HEIGHT, CPC_VISIBLE_SCR_WIDTH, Video::mCpcHeight, Video::mCpcScale, and Video::mCpcWidth.
|
virtual |
References VideoStd::quit().
|
private |
References Video::mBuffer.
Referenced by VideoStd::init(), and VideoStd::unlock().
|
private |
References Video::mBuffer, and Video::mCanvasRect.
Referenced by VideoStd::init(), and VideoStd::unlock().
|
inlinevirtual |
Implements Video.
References VideoStd::mCanvas, VideoStd::quit(), and VideoStd::update().
|
virtual |
References Video::mCpcScale, and Video::mFullscreen.
inits all
width | = width |
height | = height |
Implements Video.
References Vdu::Bpp16, Vdu::Bpp24, Vdu::Bpp32, VideoStd::calcBufferEnd(), VideoStd::calcBufferStart(), Cpc::colours(), CPC_VISIBLE_SCR_HEIGHT, CPC_VISIBLE_SCR_WIDTH, EOUT, IOUT, Video::mBuffer, Video::mBufferEnd, Video::mBufferStart, VideoStd::mCanvas, Video::mCanvasRect, Video::mCpc, Video::mCpcHeight, Video::mCpcScale, Video::mCpcWidth, Video::mFullscreen, Video::mScreen, VideoStd::quit(), Vdu::setBpp(), Colours::setDepth(), Vdu::setLineDoubling(), Vdu::setScrBase(), Vdu::setScrEnd(), Vdu::setScrLineOffset(), Canvas::setSurface(), and Cpc::vdu().
|
inlinevirtual |
Locks the screen-surface.
Reimplemented from Video.
|
virtual |
Free all resources.
Implements Video.
References IOUT, Video::mBuffer, and Video::mScreen.
Referenced by VideoStd::getCanvas(), VideoStd::init(), and VideoStd::~VideoStd().
|
inlinevirtual |
Unlocks the screen-surface.
Reimplemented from Video.
References VideoStd::calcBufferEnd(), and VideoStd::calcBufferStart().
|
virtual |
Updates the Screen (flip or something)
Implements Video.
References Video::mBuffer.
Referenced by VideoStd::getCanvas().
|
private |
Referenced by VideoStd::getCanvas(), and VideoStd::init().