44 virtual int init() = 0;
47 bool fullscreen,
unsigned char scale) = 0;
56 virtual void quit() = 0;
96 static void setCaption(
const String & caption) {SDL_WM_SetCaption(caption.c_str(), caption.c_str());}
124 #endif // SDLTK_VIDEO_H void setFullscreen(bool value)
Set to fullscreen or not.
Definition: video.h:71
void setDoubling(bool value)
Set line doubling on or off.
Definition: video.h:73
static bool mFilter
Definition: video.h:107
void setFilter(bool value)
En-/disable bilinear texture filter.
Definition: video.h:75
unsigned int * mBufferEnd
Definition: video.h:114
static unsigned int mDesktopHeight
Definition: video.h:103
void toggleFilter()
Toggle bilinear texture filter.
Definition: video.h:81
void toggleDoubling()
Toggle line doubling.
Definition: video.h:79
Video(cpcx::Cpc *cpc)
Constructs the video interface for the.
Definition: video.cpp:31
SDL_Surface * mBuffer
Definition: video.h:116
uint depth()
Returns the bytes per pixel inbetween (1 to 4)
Definition: video.h:66
SDL_Surface * screen()
Returns the SDL_Surface of the screen.
Definition: video.h:91
SDL_Surface * mScreen
Definition: video.h:117
virtual Canvas * getCanvas()=0
uint * bufferStart()
Returns the start of the backbuffer.
Definition: video.h:84
SDL_Surface * buffer()
Returns the SDL_Surface of the backbuffer.
Definition: video.h:89
unsigned int mCpcWidth
Definition: video.h:109
static void setCaption(const String &caption)
Sets a caption for the application.
Definition: video.h:96
virtual void setup()
Things that needs to be done before update.
Definition: video.h:52
virtual void quit()=0
Free all resources.
virtual void lock()
Locks the screen-surface.
Definition: video.h:58
SDL_Rect mCanvasRect
Definition: video.h:118
unsigned int * mBufferStart
Definition: video.h:113
static bool mDoubling
Definition: video.h:106
uint * bufferEnd()
Returns the end of the backbuffer.
Definition: video.h:86
static void setIcon(const String &icon)
Sets an image as application icon.
Definition: video.cpp:51
#define ROLAND_DEFAULT
Definition: compspec.h:46
Size size()
Returns the size of the video surface.
Definition: video.h:68
unsigned int uint
Definition: types.h:121
GLuint GLfloat GLenum cap GLsizei GLuint *textures GLenum GLint *params void GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar GLenum GLint GLint GLsizei GLsizei height
Definition: glfunclist.h:21
static bool mFullscreen
Definition: video.h:105
virtual void unlock()
Unlocks the screen-surface.
Definition: video.h:60
defines a planar size (width, height)
Definition: size.h:30
uint bpp()
Things that needs to be done before update.
Definition: video.h:64
static unsigned int mDesktopWidth
Definition: video.h:102
cpcx::Cpc * mCpc
Definition: video.h:100
Baseclass for all SDL Video drivers.
Definition: video.h:35
unsigned char mCpcScale
Definition: video.h:111
sdltk::Audio audio & cpc
Definition: roland.cpp:76
std::string String
Definition: types.h:29
virtual void update()=0
Updates the Screen (flip or something)
unsigned int mCpcHeight
Definition: video.h:110
GLuint GLfloat GLenum cap GLsizei GLuint *textures GLenum GLint *params void GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar GLenum GLint GLint GLsizei width
Definition: glfunclist.h:21
the SDL based Stuff
Definition: audio.cpp:22
virtual int init(uint width, uint height, uint depth, bool fullscreen, unsigned char scale)=0
inits all
void toggleFullscreen()
Toggles fullscreen.
Definition: video.h:77
virtual ~Video() ROLAND_DEFAULT virtual int init()=0
device dependant init for inheritance