#include <glut_display.hxx>
Inheritance diagram for GlutDisplay:
Public Member Functions | |
GlutDisplay (int w, int h) | |
virtual | ~GlutDisplay () |
void | draw_lines (std::vector< Line > &lines, Color color, int wide=0) |
void | draw_line (float x1, float y1, float x2, float y2, Color color, int wide=0) |
void | draw_rect (float x1, float y1, float x2, float y2, Color color) |
void | draw_fill_rect (float x1, float y1, float x2, float y2, Color color) |
void | draw_circle (float x, float y, float r, Color color) |
void | draw_circles (std::vector< Circle > &circles, Color color) |
void | draw_fill_circle (float x, float y, float r, Color color) |
void | draw_string (float x, float y, const std::string &str, Color color) |
void | draw_string_centered (float x, float y, const std::string &str, Color color) |
void | clear () |
void | flip () |
void | flip (int x1, int y1, int x2, int y2) |
void | set_fullscreen (bool fullscreen) |
bool | get_fullscreen () |
int | get_width () |
int | get_height () |
bool | get_key (int key) |
int | get_mouse_x () |
int | get_mouse_y () |
void | run () |
void | reshape_func (int w, int h) |
void | display_func () |
void | mouse_func (int button, int button_state, int x, int y) |
void | idle_func () |
void | keyboard_func (unsigned char key, int x, int y) |
void | mouse_motion_func (int x, int y) |
void | set_clip_rect (int x1, int y1, int x2, int y2) |
Static Public Member Functions | |
GlutDisplay * | instance () |
|
Definition at line 69 of file glut_display.cxx. References Settings::alphablending, Settings::antialiasing, Settings::screen_height, Settings::screen_width, and settings. |
|
Definition at line 123 of file glut_display.cxx. |
|
Implements GraphicContext. Definition at line 272 of file glut_display.cxx. |
|
Definition at line 299 of file glut_display.cxx. References ScreenManager::instance(), and ScreenManager::run_once(). Referenced by display_func(). |
|
Implements GraphicContext. Definition at line 189 of file glut_display.cxx. References Color::a, Color::b, Color::g, and Color::r. Referenced by draw_circles(). |
|
Implements GraphicContext. Definition at line 180 of file glut_display.cxx. References draw_circle(). |
|
Implements GraphicContext. Definition at line 206 of file glut_display.cxx. |
|
Implements GraphicContext. Definition at line 167 of file glut_display.cxx. |
|
Implements GraphicContext. Definition at line 142 of file glut_display.cxx. |
|
Implements GraphicContext. Definition at line 128 of file glut_display.cxx. |
|
Implements GraphicContext. Definition at line 153 of file glut_display.cxx. |
|
Implements GraphicContext. Definition at line 225 of file glut_display.cxx. References Color::a, Color::b, Color::g, and Color::r. Referenced by draw_string_centered(). |
|
Implements GraphicContext. Definition at line 247 of file glut_display.cxx. References draw_string(). |
|
Implements GraphicContext. Definition at line 284 of file glut_display.cxx. |
|
FIXME: flip should be handled outsite of GraphicContext Implements GraphicContext. Definition at line 278 of file glut_display.cxx. |
|
Definition at line 65 of file glut_display.hxx. |
|
Implements GraphicContext. Definition at line 68 of file glut_display.hxx. |
|
Implements InputContext. Definition at line 254 of file glut_display.cxx. |
|
Implements InputContext. Definition at line 260 of file glut_display.cxx. |
|
Implements InputContext. Definition at line 266 of file glut_display.cxx. |
|
Implements GraphicContext. Definition at line 67 of file glut_display.hxx. |
|
Definition at line 345 of file glut_display.cxx. References ScreenManager::instance(), ScreenManager::is_finished(), and ScreenManager::run_once(). Referenced by idle_func(). |
|
Definition at line 45 of file glut_display.hxx. Referenced by display_func(), idle_func(), keyboard_func(), mouse_func(), mouse_motion_func(), and reshape_func(). |
|
|
Definition at line 305 of file glut_display.cxx. References Event::button, BUTTON_EVENT, BUTTON_PRIMARY, BUTTON_SECONDARY, BUTTON_TERTIARY, BUTTON_ZOOM_IN, BUTTON_ZOOM_OUT, InputContext::events, ButtonEvent::id, ButtonEvent::pressed, and Event::type. Referenced by mouse_func(). |
|
Definition at line 513 of file glut_display.cxx. Referenced by mouse_motion_func(). |
|
Definition at line 291 of file glut_display.cxx. Referenced by reshape_func(). |
|
Definition at line 116 of file glut_display.cxx. |
|
Implements GraphicContext. Definition at line 539 of file glut_display.cxx. |
|
Definition at line 521 of file glut_display.cxx. |