X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fglcontext.h;h=8c8b49968b91090809b2e746cabe2716707468d4;hb=8725353877bf558cca2cccef0acdbb5153c4553e;hp=a2480909416e29d9e1aa96c49ae410ad66d8382b;hpb=1aca77b93853ee127ac3bbf6886f7f04920542ef;p=libs%2Fgui.git diff --git a/source/graphics/glcontext.h b/source/graphics/glcontext.h index a248090..8c8b499 100644 --- a/source/graphics/glcontext.h +++ b/source/graphics/glcontext.h @@ -15,6 +15,9 @@ struct GLOptions bool stencil; bool doublebuffer; unsigned multisample; + bool forward_compatible; + unsigned gl_version_major; + unsigned gl_version_minor; GLOptions(); }; @@ -44,6 +47,8 @@ private: public: ~GLContext(); + void set_swap_interval(unsigned); + void swap_buffers(); private: void window_resized(unsigned, unsigned);