ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
Baseclass for all SDL Video drivers. More...
#include <video.h>
Public Member Functions | |
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 int | init (uint width, uint height, uint depth, bool fullscreen, unsigned char scale)=0 |
inits all More... | |
virtual Canvas * | getCanvas ()=0 |
virtual void | setup () |
Things that needs to be done before update. More... | |
virtual void | update ()=0 |
Updates the Screen (flip or something) More... | |
virtual void | quit ()=0 |
Free all resources. More... | |
virtual void | lock () |
Locks the screen-surface. More... | |
virtual void | unlock () |
Unlocks the screen-surface. 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... | |
Static Public Member Functions | |
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 | |
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 | |
static unsigned int | mDesktopWidth = 0 |
static unsigned int | mDesktopHeight = 0 |
static bool | mFullscreen = false |
static bool | mDoubling = true |
static bool | mFilter = true |
Baseclass for all SDL Video drivers.
Constructs the video interface for the.
Cpc |
References cpc, IOUT, Video::mBuffer, Video::mCanvasRect, Video::mCpc, Video::mDesktopHeight, Video::mDesktopWidth, and Video::mScreen.
|
pure virtual |
device dependant init for inheritance
|
inline |
Things that needs to be done before update.
Returns the bits per pixel (8 to 32)
References Video::mBuffer.
|
inline |
Returns the SDL_Surface of the backbuffer.
References Video::mBuffer.
|
inline |
Returns the end of the backbuffer.
References Video::mBufferEnd.
|
inline |
|
inline |
Returns the bytes per pixel inbetween (1 to 4)
References Video::mBuffer.
|
pure virtual |
Implemented in VideoGL, and VideoStd.
Referenced by Gui::add(), and initGui().
|
pure virtual |
inits all
width | = width |
height | = height |
Implemented in VideoGL, and VideoStd.
Referenced by init(), mainloop(), Video::setFilter(), Video::setFullscreen(), Video::toggleDoubling(), Video::toggleFilter(), and Video::toggleFullscreen().
|
inlinevirtual |
|
pure virtual |
|
inline |
Returns the SDL_Surface of the screen.
References Video::mScreen, and Video::setIcon().
Referenced by initGui().
|
inlinestatic |
Sets a caption for the application.
Referenced by main().
|
inline |
Set line doubling on or off.
References Video::mDoubling.
|
inline |
En-/disable bilinear texture filter.
References Video::init(), and Video::mFilter.
|
inline |
Set to fullscreen or not.
References Video::init(), and Video::mFullscreen.
|
static |
|
inlinevirtual |
Things that needs to be done before update.
Reimplemented in VideoGL.
References Video::quit(), and Video::update().
Referenced by display().
|
inline |
Returns the size of the video surface.
References Video::mScreen.
Referenced by FileList::FileList().
|
inline |
|
inline |
Toggle bilinear texture filter.
References Video::init(), and Video::mFilter.
Referenced by mainloop().
|
inline |
|
inlinevirtual |
|
pure virtual |
Updates the Screen (flip or something)
Implemented in VideoGL, and VideoStd.
Referenced by display(), and Video::setup().
|
protected |
|
protected |
Referenced by Video::bufferEnd(), VideoStd::init(), and VideoGL::init().
|
protected |
Referenced by Video::bufferStart(), VideoStd::init(), and VideoGL::init().
|
protected |
Referenced by VideoStd::calcBufferStart(), VideoGL::calcScreenStart(), VideoStd::init(), VideoGL::init(), and Video::Video().
|
protected |
Referenced by VideoStd::init(), VideoGL::init(), and Video::Video().
|
protected |
Referenced by VideoStd::init(), VideoGL::init(), VideoGL::VideoGL(), and VideoStd::VideoStd().
|
protected |
Referenced by VideoStd::init(), VideoGL::init(), VideoGL::VideoGL(), and VideoStd::VideoStd().
|
protected |
Referenced by VideoStd::init(), VideoGL::init(), VideoGL::VideoGL(), and VideoStd::VideoStd().
|
staticprotected |
Referenced by Video::Video().
|
staticprotected |
Referenced by Video::Video().
|
staticprotected |
Referenced by Video::setDoubling(), and Video::toggleDoubling().
|
staticprotected |
Referenced by VideoGL::init(), Video::setFilter(), and Video::toggleFilter().
|
staticprotected |
Referenced by VideoStd::init(), VideoGL::init(), Video::setFullscreen(), and Video::toggleFullscreen().
|
protected |
Referenced by VideoStd::init(), VideoGL::init(), VideoStd::quit(), VideoGL::quit(), Video::screen(), VideoGL::setup(), Video::size(), Video::Video(), and VideoGL::VideoGL().