Midnight Graphics
Create Fast and Simple Graphics in C++
mn::Graphics::Window Struct Reference

Public Member Functions

MN_SYMBOL Window (const Math::Vec2u &size, const std::string &name)
 
MN_SYMBOL Window (const std::string &config_file="")
 
 Window (const Window &)=delete
 
 Window (Window &&)
 
MN_SYMBOL void close ()
 
MN_SYMBOL bool pollEvent (Event &event) const
 
auto size () const
 
MN_SYMBOL RenderFrame startFrame () const
 
MN_SYMBOL void endFrame (RenderFrame &rf) const
 
MN_SYMBOL void runFrame (const std::function< void(RenderFrame &rf)> &func) const
 
MN_SYMBOL void setTitle (const std::string &title) const
 
bool shouldClose () const
 
MN_SYMBOL void finishWork () const
 
MN_SYMBOL void showMouse (bool show)
 
MN_SYMBOL void setMousePos (Math::Vec2f position)
 
float aspectRatio () const
 

Static Public Member Functions

static MN_SYMBOL Window fromLuaScript (const std::string &config_file)
 

Public Attributes

bool process_imgui_events = true
 

Static Public Attributes

static bool ImGui_Initialized = false
 

The documentation for this struct was generated from the following file: