ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
canvasgl.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_GL_H
21 #define SDLTK_CANVAS_GL_H
22 
23 #include "canvas.h"
24 #include "glfuncs.h"
25 
26 namespace sdltk
27 {
28 
30  class CanvasGL : public Canvas
31  {
32  public:
34  virtual ~CanvasGL() ROLAND_DEFAULT
35 
36  virtual void begin();
37  virtual void end();
38 
39  virtual void point(const Point & pos);
40  virtual void rect (const Rect & rect);
41  virtual void fill (const Rect & rect);
42  virtual void line (const Point & pos1, const Point & pos2);
43  virtual void image(const Image & image, const Rect & src, const Rect & dest);
44 
45  virtual void setColor(const Color & color);
46 
47  virtual void setClipRect(const Rect & rect);
48  virtual void clearClipRect();
49 
50  };
51 
52 } // sdltk
53 
54 #endif // SDLTK_CANVAS_GL_H
virtual void image(const Image &image, const Rect &src, const Rect &dest)
Definition: canvasgl.cpp:140
virtual void end()
Definition: canvasgl.cpp:90
virtual void line(const Point &pos1, const Point &pos2)
Definition: canvasgl.cpp:132
Image to display either on an OpenGL- or plain SDL-Surface.
Definition: image.h:39
virtual void rect(const Rect &rect)
Definition: canvasgl.cpp:112
Definition: canvasgl.h:30
const Color & color() const
Definition: canvas.h:75
Definition: canvas.h:40
virtual void fill(const Rect &rect)
Definition: canvasgl.cpp:122
virtual void setColor(const Color &color)
Definition: canvasgl.cpp:177
virtual void point(const Point &pos)
Definition: canvasgl.cpp:105
CanvasGL() ROLAND_DEFAULT virtual ~CanvasGL() ROLAND_DEFAULT virtual void begin()
#define ROLAND_DEFAULT
Definition: compspec.h:46
Defines a 2D point (x, y)
Definition: point.h:28
virtual void setClipRect(const Rect &rect)
Definition: canvasgl.cpp:31
RGBA Color Type.
Definition: color.h:30
Definition: rect.h:32
virtual void clearClipRect()
Definition: canvasgl.cpp:25
the SDL based Stuff
Definition: audio.cpp:22