mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Use settings values for Video settings
* Convert window mode, vsync mode into enums, screenshot type into a struct. * Add missing doc for screenshot type.
This commit is contained in:
parent
8380da2e1d
commit
dcd81d026f
31 changed files with 346 additions and 221 deletions
|
@ -5,14 +5,10 @@
|
|||
|
||||
#include <osgViewer/GraphicsWindow>
|
||||
|
||||
#include "vsyncmode.hpp"
|
||||
|
||||
namespace SDLUtil
|
||||
{
|
||||
enum VSyncMode
|
||||
{
|
||||
Disabled = 0,
|
||||
Enabled = 1,
|
||||
Adaptive = 2
|
||||
};
|
||||
|
||||
class GraphicsWindowSDL2 : public osgViewer::GraphicsWindow
|
||||
{
|
||||
|
@ -29,7 +25,7 @@ namespace SDLUtil
|
|||
virtual ~GraphicsWindowSDL2();
|
||||
|
||||
public:
|
||||
GraphicsWindowSDL2(osg::GraphicsContext::Traits* traits, int vsync);
|
||||
GraphicsWindowSDL2(osg::GraphicsContext::Traits* traits, VSyncMode vsyncMode);
|
||||
|
||||
bool isSameKindAs(const Object* object) const override
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue