ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
canvasstd.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_CANVAS_STD_H
21 #define SDLTK_CANVAS_STD_H
22 
23 #include "canvas.h"
24 
25 namespace sdltk
26 {
27 
29  class CanvasStd : public Canvas
30  {
31  public:
33  virtual ~CanvasStd() ROLAND_DEFAULT
34 
35  virtual void point(const Point & pos);
36  virtual void rect (const Rect & rect);
37  virtual void fill (const Rect & rect);
38  virtual void line (const Point & pos1, const Point & pos2);
39  virtual void image(const Image & image, const Rect & src, const Rect & dest);
40  //virtual void write(Point & pos, String & text);
41 
42  virtual void setClipRect(const Rect & rect);
43  virtual void clearClipRect();
44 
45  private:
46  void hLine(Sint32 x, Sint32 y, Sint32 x2);
47  void vLine(Sint32 x, Sint32 y, Sint32 y2);
48 
49  inline void putglyph(char *p, int Bpp, int pitch, int which);
50  };
51 
52 } // sdltk
53 
54 #endif // SDLTK_CANVAS_STD_H
Image to display either on an OpenGL- or plain SDL-Surface.
Definition: image.h:39
Definition: canvasstd.h:29
GLuint GLfloat GLenum cap GLsizei GLuint *textures GLenum GLint *params void GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid *pixels GLenum GLint GLint GLint GLsizei GLsizei GLenum GLenum const GLvoid *pixels GLfloat x
Definition: glfunclist.h:25
virtual void clearClipRect()
Definition: canvasstd.cpp:37
Definition: canvas.h:40
CanvasStd() ROLAND_DEFAULT virtual ~CanvasStd() ROLAND_DEFAULT virtual void point(const Point &pos)
void hLine(Sint32 x, Sint32 y, Sint32 x2)
Definition: canvasstd.cpp:275
#define ROLAND_DEFAULT
Definition: compspec.h:46
Defines a 2D point (x, y)
Definition: point.h:28
void vLine(Sint32 x, Sint32 y, Sint32 y2)
Definition: canvasstd.cpp:388
virtual void setClipRect(const Rect &rect)
Definition: canvasstd.cpp:31
GLuint GLfloat GLenum cap GLsizei GLuint *textures GLenum GLint *params void GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid *pixels GLenum GLint GLint GLint GLsizei GLsizei GLenum GLenum const GLvoid *pixels GLfloat GLfloat y GLubyte GLubyte GLubyte GLubyte a GLfloat GLbitfield mask void GLfloat size GLint GLint y
Definition: glfunclist.h:37
virtual void image(const Image &image, const Rect &src, const Rect &dest)
Definition: canvasstd.cpp:267
Definition: rect.h:32
virtual void point(const Point &pos)=0
virtual void rect(const Rect &rect)
Definition: canvasstd.cpp:55
virtual void line(const Point &pos1, const Point &pos2)
Definition: canvasstd.cpp:92
void putglyph(char *p, int Bpp, int pitch, int which)
the SDL based Stuff
Definition: audio.cpp:22
virtual void fill(const Rect &rect)
Definition: canvasstd.cpp:69