|
Realtime Fractal Renderer Documentation
|
Class used for interacting with the display window window. More...
#include <Window.h>

Public Member Functions | |
| Window (uint32_t width, uint32_t height, std::ostream &log) | |
| ~Window () | |
| Events | get_events () |
| void | set_pixels (uint8_t *pixels) |
| Sets the pixels to be displayed for the current display window. Pixels are in the form RGBA 0-255 and the array has a capacity of width x height. More... | |
| Window | ( | uint32_t | width, |
| uint32_t | height, | ||
| std::ostream & | log | ||
| ) |
Definition at line 13 of file Window.cpp.
| ~Window | ( | ) |
Definition at line 5 of file Window.cpp.
| Events get_events | ( | ) |
| Key | Event |
|---|---|
| escape | Quit the application |
| w | Move camera forwards |
| s | Move camera backwards |
| a | Move camera left |
| d | Move camera right |
| q | Move camera up |
| e | Move camera down |
| lshift | |
| g | Take screenshot |
| r | debug camera information (position, view direction) to console |
Definition at line 69 of file Window.cpp.
| void set_pixels | ( | uint8_t * | pixels | ) |
Sets the pixels to be displayed for the current display window. Pixels are in the form RGBA 0-255 and the array has a capacity of width x height.
| pixels |
Definition at line 210 of file Window.cpp.