ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
VideoStd Class Reference

#include <videostd.h>

Inheritance diagram for VideoStd:
Video

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 CanvasgetCanvas ()
 
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...
 
uintbufferStart ()
 Returns the start of the backbuffer. More...
 
uintbufferEnd ()
 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

uintcalcBufferStart ()
 
uintcalcBufferEnd ()
 

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::CpcmCpc
 
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
 

Detailed Description

Author
Fred Klaus devel.nosp@m.opme.nosp@m.nt@fk.nosp@m.web..nosp@m.de

Constructor & Destructor Documentation

VideoStd ( cpcx::Cpc cpc)
~VideoStd ( )
virtual

References VideoStd::quit().

Member Function Documentation

uint * calcBufferEnd ( )
private

References Video::mBuffer.

Referenced by VideoStd::init(), and VideoStd::unlock().

uint * calcBufferStart ( )
private
virtual Canvas* getCanvas ( )
inlinevirtual
int init ( )
virtual
int init ( uint  width,
uint  height,
uint  depth,
bool  fullscreen,
unsigned char  scale 
)
virtual
virtual void lock ( )
inlinevirtual

Locks the screen-surface.

Reimplemented from Video.

void quit ( )
virtual

Free all resources.

Implements Video.

References IOUT, Video::mBuffer, and Video::mScreen.

Referenced by VideoStd::getCanvas(), VideoStd::init(), and VideoStd::~VideoStd().

virtual void unlock ( )
inlinevirtual

Unlocks the screen-surface.

Reimplemented from Video.

References VideoStd::calcBufferEnd(), and VideoStd::calcBufferStart().

void update ( )
virtual

Updates the Screen (flip or something)

Implements Video.

References Video::mBuffer.

Referenced by VideoStd::getCanvas().

Member Data Documentation

CanvasStd mCanvas
private

The documentation for this class was generated from the following files: