This abstract class defines a event for the application.
More...
#include <event.hpp>
This abstract class defines a event for the application.
Definition at line 42 of file event.hpp.
Creates a new event.
- Parameters
-
type | The event type of this event. |
Definition at line 28 of file event.cpp.
sgl::Event::~Event |
( |
void |
| ) |
|
|
virtual |
Deletes a event.
Definition at line 33 of file event.cpp.
void sgl::Event::addEvent |
( |
Event * |
event | ) |
|
|
static |
Adds an event to the list.
- Parameters
-
Definition at line 17 of file event.cpp.
void sgl::Event::clearEvents |
( |
| ) |
|
|
static |
Clears the event list, this should be called after every loop.
Definition at line 23 of file event.cpp.
std::vector< Event * > sgl::Event::getEvents |
( |
| ) |
|
|
static |
Returns the list of events.
- Returns
- The list of events.
Definition at line 13 of file event.cpp.
Returns the event type.
- Returns
- The event type.
Definition at line 37 of file event.cpp.
std::vector< Event * > sgl::Event::events |
|
staticprotected |
Stores the events that got received.
Definition at line 46 of file event.hpp.
Stores the event type.
Definition at line 49 of file event.hpp.
The documentation for this class was generated from the following files:
- /home/heiko/Projekte/Studium/SimpleGL/Core/include/SimpleGL/event.hpp
- /home/heiko/Projekte/Studium/SimpleGL/Core/src/event.cpp