|
GrooveStomp's 3D Software Renderer
0.1.0
|

Classes | |
| struct | input |
| Keypress state. Unexported. More... | |
Functions | |
| struct input * | InputInit () |
| Creates and initializes a new input object. More... | |
| void | InputDeinit (struct input *i) |
| De-initializes and frees memory for the given input object. More... | |
| int | InputIsQuitPressed (SDL_Event *event) |
| Check if the user has tried to quit the program. More... | |
| void | InputProcess (struct input *i) |
| Handle input. More... | |
Variables | |
| struct vec3 | camera |
| global camera state | |
| struct vec3 | lookDir |
| global look direction state | |
| struct vec3 | up |
| global up vector state | |
| float | yaw |
| global view direction state | |
| double | elapsedTime |
| global time state | |
| void InputDeinit | ( | struct input * | input | ) |
De-initializes and frees memory for the given input object.
| [in,out] | input | The initialized input object to be cleaned and reclaimed |
| struct input* InputInit | ( | ) |
Creates and initializes a new input object.
| int InputIsQuitPressed | ( | SDL_Event * | event | ) |
Check if the user has tried to quit the program.
| [in] | event | the event object to query |
| void InputProcess | ( | struct input * | input | ) |
Handle input.
This function reaches into global state and changes it based on user input, doing things like changing the view direction.
This interface is a prime candidate to be reworked into something far less intrusive, like a callback mechanism.
| [in,out] | input | Input state to be updated |
1.8.13