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

#include <canvasgl.h>

Inheritance diagram for CanvasGL:
Canvas

Public Member Functions

 CanvasGL () ROLAND_DEFAULT virtual ~CanvasGL() ROLAND_DEFAULT virtual void begin()
 
virtual void end ()
 
virtual void point (const Point &pos)
 
virtual void rect (const Rect &rect)
 
virtual void fill (const Rect &rect)
 
virtual void line (const Point &pos1, const Point &pos2)
 
virtual void image (const Image &image, const Rect &src, const Rect &dest)
 
virtual void setColor (const Color &color)
 
virtual void setClipRect (const Rect &rect)
 
virtual void clearClipRect ()
 
- Public Member Functions inherited from Canvas
 Canvas () ROLAND_DEFAULT virtual ~Canvas() ROLAND_DEFAULT virtual void begin()
 
void setFont (const String &fname, const String &glyphs, uchar alpha=255)
 
void setSurface (SDL_Surface *const surface)
 
void point (Point *const pos)
 
void line (Point *const pos1, Point *const pos2)
 
void rect (Rect *const rec)
 
void fill (Rect *const rec)
 
void image (Image *const img, const Point &pos)
 
void image (const Image &img, const Point &pos)
 
void write (const Point &pos, const String &text)
 
const SizetextSize (const String &text)
 
Uint16 textHeight () const
 
const ImageFontfont () const
 
const Colorcolor () const
 
uint width ()
 
const RectclipRect () const
 

Additional Inherited Members

- Protected Attributes inherited from Canvas
SDL_Surface * mSurface
 
Size mTextSize
 
Color mColor
 
ImageFont mFont
 
String mNumber
 
Rect mClipRect
 

Detailed Description

Author
Fred Klaus devel.nosp@m.opme.nosp@m.nt@fk.nosp@m.web..nosp@m.de

Constructor & Destructor Documentation

CanvasGL ( )

Member Function Documentation

void clearClipRect ( )
virtual

Reimplemented from Canvas.

References Canvas::mClipRect, Canvas::mSurface, and Rect::set().

void end ( )
virtual

Reimplemented from Canvas.

void fill ( const Rect rect)
virtual

Implements Canvas.

References Rect::height(), Rect::width(), Rect::x(), and Rect::y.

void image ( const Image image,
const Rect src,
const Rect dest 
)
virtual
void line ( const Point pos1,
const Point pos2 
)
virtual
Todo:
+1 is OK ????

Implements Canvas.

References Point::y.

void point ( const Point pos)
virtual

Implements Canvas.

References Point::y.

void rect ( const Rect rect)
virtual

Implements Canvas.

References Rect::height(), Rect::width(), Rect::x(), and Rect::y.

Referenced by CanvasGL::setClipRect().

void setClipRect ( const Rect rect)
virtual
void setColor ( const Color color)
virtual

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