Realtime Fractal Renderer Documentation
Window Class Reference

Class used for interacting with the display window window. More...

#include <Window.h>

Collaboration diagram for Window:
Collaboration graph

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...
 

Detailed Description

Class used for interacting with the display window window.

Definition at line 20 of file Window.h.

Constructor & Destructor Documentation

◆ Window()

Window ( uint32_t  width,
uint32_t  height,
std::ostream &  log 
)

Definition at line 13 of file Window.cpp.

◆ ~Window()

~Window ( )

Definition at line 5 of file Window.cpp.

Member Function Documentation

◆ get_events()

Events get_events ( )

Keyboard 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
Returns
Any window events that occured since the last time this method was called

Definition at line 69 of file Window.cpp.

◆ set_pixels()

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.

Parameters
pixels

Definition at line 210 of file Window.cpp.


The documentation for this class was generated from the following files: