class EE::Window::ContextSettings

ContextSettings Small class that contains the renderer context information.

#include <window.hpp>

class ContextSettings {
public:
    // fields

    static constexpr Int32 FrameRateLimitScreenRefreshRate =(std::numeric_limits<Int32>::max)() - 1;
    GraphicsLibraryVersion Version { GLv_default };
    Uint32 DepthBufferSize { 24 };
    Uint32 StencilBufferSize { 1 };
    Uint32 Multisamples { 0 };
    Int32 FrameRateLimit { ContextSettings::FrameRateLimitScreenRefreshRate };
    bool VSync { false };
    bool DoubleBuffering { true };
    bool SharedGLContext { true };

    // construction

    ContextSettings(
        bool vsync,
        Int32 frameRateLimit = FrameRateLimitScreenRefreshRate,
        Uint32 multisamples = 0,
        GraphicsLibraryVersion version = GLv_default,
        bool sharedGLContext = true,
        bool doubleBuffering = true,
        Uint32 depthBufferSize = 24,
        Uint32 stencilBufferSize = 1
    );

    ContextSettings();
};