#include <graphic.hpp>
Inheritance diagram for Graphic:


Public Member Functions | |
| Graphic () | |
| Constructor. | |
| ~Graphic () | |
| Destructor. | |
| bool | createWindow (int, int, bool) |
| Create a window for drawing. | |
| void | setBGColor (float, float, float) |
| Sets the background color. | |
| void | setFGColor (float, float, float) |
| Sets the foreground color, that is the color used for drawing things. | |
| void | drawFixationCross () |
| Draw fixation cross at screen center. | |
| void | drawFixationCross (int, int) |
| Draw fixation cross at screen center with given height and width. | |
| void | drawLine (Point, Point) |
| Draw a line between two points. | |
| void | drawTriangle (Point, Point, Point) |
| Draw a triangle defined by three points. | |
| void | drawRectangle (Point, Point, Point, Point) |
| Draw a rectangle defined by four points. | |
| void | drawUnfilledCircle (Point, float) |
| Draw an unfilled circle. | |
| void | drawCircle (Point, float) |
| Draw a circle. | |
| void | clear () |
| Clear the backbuffer. | |
| void | swap () |
| Swap the backbuffer. | |
| int | addTexture (char *) |
| Load a texture. | |
| void | drawTexturedRectangle (PointTex, PointTex, PointTex, PointTex, int) |
| Draw a textured rectangle defined by four points with texture coordinates. | |
Definition at line 59 of file graphic.hpp.
|
|
Constructor. Definition at line 27 of file graphic.cpp. |
|
|
Destructor. Definition at line 34 of file graphic.cpp. |
|
|
Load a texture. Supported are bitmap (.bmp) files.
References clear(), drawTexturedRectangle(), ERROR, PtfCore::getMessageLog(), Singleton< PtfCore >::getSingleton(), PointTex::u, PointTex::v, PointTex::x, and PointTex::y. Here is the call graph for this function: ![]() |
|
|
Clear the backbuffer. Definition at line 259 of file graphic.cpp. Referenced by addTexture(), and drawFixationCross(). |
|
||||||||||||||||
|
Create a window for drawing.
References ERROR, PtfCore::getMessageLog(), Singleton< PtfCore >::getSingleton(), and MESSAGE. Referenced by PtfCore::PtfCore(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Draw a circle.
|
|
||||||||||||
|
Draw fixation cross at screen center with given height and width.
References clear(), drawLine(), setFGColor(), Point::x, and Point::y. Here is the call graph for this function: ![]() |
|
|
Draw fixation cross at screen center. Definition at line 140 of file graphic.cpp. References clear(), drawLine(), setFGColor(), Point::x, and Point::y. Here is the call graph for this function: ![]() |
|
||||||||||||
|
Draw a line between two points.
References Point::x, and Point::y. Referenced by drawFixationCross(). |
|
||||||||||||||||||||
|
Draw a rectangle defined by four points.
|
|
||||||||||||||||||||||||
|
Draw a textured rectangle defined by four points with texture coordinates.
References ERROR, PtfCore::getMessageLog(), Singleton< PtfCore >::getSingleton(), PointTex::u, PointTex::v, PointTex::x, and PointTex::y. Referenced by addTexture(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Draw a triangle defined by three points.
|
|
||||||||||||
|
Draw an unfilled circle.
|
|
||||||||||||||||
|
Sets the background color. The background will have this color after the window was cleared.
|
|
||||||||||||||||
|
Sets the foreground color, that is the color used for drawing things.
Referenced by drawFixationCross(). |
|
|
Swap the backbuffer. Definition at line 266 of file graphic.cpp. |
1.3.8