Class Window

Class Documentation

class nyx::Window

TODO: Document

Public Functions

Window(Engine *parent, const std::string &title, int width, int height, bool vsync = true)

TODO: Document.

~Window()

TODO: Document.

Context *create_context()

TODO: Document.

void set_current()

TODO: Document.

void clear(Color color = Color(0x000000ff))

TODO: Document.

void imgui_newframe()

TODO: Document.

void imgui_window(std::string const &title, std::function<void()> f)

TODO: Document.

void imgui_window(std::string const &title, ImGuiWindowFlags flags, std::function<void()> f)

TODO: Document.

void imgui_window(std::string const &title, ImGuiWindowFlags flags, ImVec2 pos, std::function<void()> f)

TODO: Document.

void save(std::string const &path)

Public Members

int w

The width of this window, will change on resize.

int h

The height of this window, will change on resize.

bool show_fps

If true, draw an fps counter in the top left.

EventMgr *events

Used to keep track of events for this Window.