MVE - Multi-View Environment mve-devel
|
Wrappers and helpers for the OpenGL graphics API. More...
Classes | |
class | Cam2D |
class | Camera |
A camera class that manages viewing and projection matrices. More... | |
class | CameraContext |
A simple context that does some of the common annoying work. More... | |
class | CamTrackball |
A trackball camera control that consumes mouse events and delivers viewing parameters for the camera. More... | |
class | Context |
Abstraction of a rendering context/viewport that displays renderings. More... | |
struct | KeyboardEvent |
Keyboard event. More... | |
class | MeshRenderer |
OpenGL renderer that takes a mesh and automatically creates the appropriate VBOs and a vertex array object. More... | |
struct | MouseEvent |
Mouse event. More... | |
class | ShaderProgram |
Abstraction for OpenGL Shader Programs. More... | |
class | Texture |
OpenGL texture abstraction. More... | |
class | VertexArray |
OpenGL vertex array object abstraction. More... | |
class | VertexBuffer |
OpenGL vertex buffer object (VBO) abstraction. More... | |
Typedefs | |
typedef CameraContext< Cam2D > | CameraPlanarContext |
typedef CameraContext< CamTrackball > | CameraTrackballContext |
Enumerations | |
enum | KeyboardEventType { KEYBOARD_EVENT_PRESS , KEYBOARD_EVENT_RELEASE } |
Keyboard event type. More... | |
enum | MouseButton { MOUSE_BUTTON_NONE = 0 , MOUSE_BUTTON_LEFT = 1 << 0 , MOUSE_BUTTON_RIGHT = 1 << 1 , MOUSE_BUTTON_MIDDLE = 1 << 2 , MOUSE_BUTTON_X1 = 1 << 3 , MOUSE_BUTTON_X2 = 1 << 4 } |
Mouse button types. More... | |
enum | MouseEventType { MOUSE_EVENT_PRESS , MOUSE_EVENT_RELEASE , MOUSE_EVENT_MOVE , MOUSE_EVENT_WHEEL_UP , MOUSE_EVENT_WHEEL_DOWN } |
Mouse event types. More... | |
Functions | |
void | check_gl_error () |
VertexArray::Ptr | create_axis_renderer (ShaderProgram::Ptr shader) |
Generates a vertex array for visualizing the three world coordinate axis. | |
VertexArray::Ptr | create_fullscreen_quad (ShaderProgram::Ptr shader) |
Generates a full screen quad renderer in OpenGL unit coordinates. | |
void | event_debug_print (KeyboardEvent const &e) |
Prints debug information for keyboard event 'e' to STDOUT. | |
void | event_debug_print (MouseEvent const &e) |
Prints debug information for mouse event 'e' to STDOUT. | |
Wrappers and helpers for the OpenGL graphics API.
typedef CameraContext<Cam2D> ogl::CameraPlanarContext |
enum ogl::MouseButton |
enum ogl::MouseEventType |
|
inline |
Definition at line 22 of file check_gl_error.h.
VertexArray::Ptr ogl::create_axis_renderer | ( | ShaderProgram::Ptr | shader | ) |
Generates a vertex array for visualizing the three world coordinate axis.
You need to specify your own shader, where you can also apply additional transformations, for example to visualize local coordinate system.
Definition at line 17 of file render_tools.cc.
VertexArray::Ptr ogl::create_fullscreen_quad | ( | ShaderProgram::Ptr | shader | ) |
Generates a full screen quad renderer in OpenGL unit coordinates.
The quad vertices have coordiantes (+-1, +-1, 0) with normals (0, 0, 1) and texture coordiantes (0/1, 0/1).
Definition at line 91 of file render_tools.cc.
void ogl::event_debug_print | ( | ogl::KeyboardEvent const & | event | ) |
void ogl::event_debug_print | ( | ogl::MouseEvent const & | event | ) |