16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 05:49:19 +02:00

gfx renderers standardization, bug fixes

This commit is contained in:
tmj-fstate
2019-11-07 00:28:59 +01:00
parent d06fad3b89
commit a74402804d
13 changed files with 348 additions and 165 deletions

View File

@@ -71,7 +71,7 @@ public:
on_scroll( double const Xoffset, double const Yoffset );
// gives access to specified window, creates a new window if index == -1
GLFWwindow *
window( int const Windowindex = 0 );
window( int const Windowindex = 0, bool visible = false, int width = 1, int height = 1, GLFWmonitor *monitor = nullptr, bool keep_ownership = true, bool share_ctx = true );
private:
// types
@@ -88,6 +88,8 @@ private:
int init_audio();
int init_data();
int init_modes();
GLFWmonitor * find_monitor( const std::string &str ) const;
std::string describe_monitor( GLFWmonitor *monitor ) const;
// members
modeptr_array m_modes { nullptr }; // collection of available application behaviour modes
mode_stack m_modestack; // current behaviour mode