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

#include <videogl.h>

Inheritance diagram for VideoGL:
Video

Public Member Functions

 VideoGL (cpcx::Cpc *cpc)
 
virtual ~VideoGL ()
 
virtual int init ()
 
virtual int init (uint width, uint height, uint depth, bool fullscreen, unsigned char scale)
 inits all More...
 
virtual CanvasgetCanvas ()
 
virtual void setup ()
 Things that needs to be done before update. More...
 
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...
 
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

uintcalcScreenStart ()
 
uintcalcScreenEnd ()
 

Private Attributes

GLuint mTexWidth
 
GLuint mTexHeight
 
GLuint mTexnum
 
CanvasGL mCanvas
 

Static Private Attributes

static volatile bool mIsLoaded =false
 

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

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

References VideoGL::quit().

Member Function Documentation

uint * calcScreenEnd ( )
private

References Video::mBuffer.

Referenced by VideoGL::init().

uint * calcScreenStart ( )
private

References Video::mBuffer, and Video::mCanvasRect.

Referenced by VideoGL::init().

virtual Canvas* getCanvas ( )
inlinevirtual

Implements Video.

References VideoGL::mCanvas, and VideoGL::setup().

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, Video::mScreen, and VideoGL::mTexnum.

Referenced by VideoGL::init(), VideoGL::update(), and VideoGL::~VideoGL().

void setup ( )
virtual

Things that needs to be done before update.

Reimplemented from Video.

References Video::mBuffer, Video::mScreen, VideoGL::mTexHeight, VideoGL::mTexnum, and VideoGL::mTexWidth.

Referenced by VideoGL::getCanvas().

virtual void unlock ( )
inlinevirtual

Unlocks the screen-surface.

Reimplemented from Video.

virtual void update ( )
inlinevirtual

Updates the Screen (flip or something)

Implements Video.

References VideoGL::quit().

Member Data Documentation

CanvasGL mCanvas
private
volatile bool mIsLoaded =false
staticprivate

Referenced by VideoGL::init().

GLuint mTexHeight
private
GLuint mTexnum
private
GLuint mTexWidth
private

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