ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
videostd.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) by Fred Klaus *
3  * development@fkweb.de *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 #ifndef SDLTK_VIDEOSTD_H
21 #define SDLTK_VIDEOSTD_H
22 
23 #include "def.h"
24 #include "video.h"
25 #include "canvasstd.h"
26 #include "cpc.h"
27 #include "SDL.h"
28 
29 namespace sdltk
30 {
31 
33  class VideoStd : public Video
34  {
35  public:
37  virtual ~VideoStd();
38 
39  virtual int init();
40  virtual int init(uint width, uint height, uint depth, bool fullscreen, unsigned char scale);
41 
42  virtual Canvas * getCanvas() {return &mCanvas;}
43 
44  virtual void update();
45  virtual void quit();
46  virtual void lock() {}
47  virtual void unlock() {}
48 
49  private:
52 
54  };
55 
56 } // sdltk
57 
58 #endif // SDLTK_VIDEOSTD_H
uint * calcBufferStart()
Definition: videostd.cpp:142
virtual Canvas * getCanvas()
Definition: videostd.h:42
virtual void unlock()
Unlocks the screen-surface.
Definition: videostd.h:47
virtual void quit()
Free all resources.
Definition: videostd.cpp:37
Definition: canvasstd.h:29
Definition: videostd.h:33
uint depth()
Returns the bytes per pixel inbetween (1 to 4)
Definition: video.h:66
virtual int init()
Definition: videostd.cpp:51
virtual void update()
Updates the Screen (flip or something)
Definition: videostd.cpp:137
Definition: canvas.h:40
virtual ~VideoStd()
Definition: videostd.cpp:32
CanvasStd mCanvas
Definition: videostd.h:53
virtual void lock()
Locks the screen-surface.
Definition: videostd.h:46
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
Definition: cpc.h:61
uint * calcBufferEnd()
Definition: videostd.cpp:154
Baseclass for all SDL Video drivers.
Definition: video.h:35
sdltk::Audio audio & cpc
Definition: roland.cpp:76
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
VideoStd(cpcx::Cpc *cpc)
Definition: videostd.cpp:25