1 #ifndef OPENMW_COMPONENTS_SDLUTIL_SDLGRAPHICSWINDOW_H
2 #define OPENMW_COMPONENTS_SDLUTIL_SDLGRAPHICSWINDOW_H
6 #include <osgViewer/GraphicsWindow>
28 virtual const char*
libraryName()
const {
return "osgViewer"; }
29 virtual const char*
className()
const {
return "GraphicsWindowSDL2"; }
67 virtual void setCursor(MouseCursor cursor);
virtual ~GraphicsWindowSDL2()
Definition: sdlgraphicswindow.cpp:8
virtual void grabFocusIfPointerInWindow()
Definition: sdlgraphicswindow.hpp:73
bool mValid
Definition: sdlgraphicswindow.hpp:16
virtual void setWindowName(const std::string &name)
Definition: sdlgraphicswindow.cpp:58
virtual const char * className() const
Definition: sdlgraphicswindow.hpp:29
bool mRealized
Definition: sdlgraphicswindow.hpp:17
bool mOwnsWindow
Definition: sdlgraphicswindow.hpp:18
virtual const char * libraryName() const
Definition: sdlgraphicswindow.hpp:28
void init()
Definition: sdlgraphicswindow.cpp:72
virtual bool setWindowRectangleImplementation(int x, int y, int width, int height)
Definition: sdlgraphicswindow.cpp:49
virtual void raiseWindow()
Definition: sdlgraphicswindow.cpp:193
GraphicsWindowSDL2(osg::GraphicsContext::Traits *traits)
Definition: sdlgraphicswindow.cpp:13
virtual bool valid() const
Definition: sdlgraphicswindow.hpp:31
virtual bool isSameKindAs(const Object *object) const
Definition: sdlgraphicswindow.hpp:27
Definition: sdlgraphicswindow.hpp:11
virtual void grabFocus()
Definition: sdlgraphicswindow.hpp:70
virtual void closeImplementation()
Definition: sdlgraphicswindow.cpp:160
virtual void swapBuffersImplementation()
Definition: sdlgraphicswindow.cpp:174
virtual bool setWindowDecorationImplementation(bool flag)
Definition: sdlgraphicswindow.cpp:41
virtual bool makeCurrentImplementation()
Definition: sdlgraphicswindow.cpp:137
virtual bool realizeImplementation()
Definition: sdlgraphicswindow.cpp:117
SDL_Window * mWindow
Definition: sdlgraphicswindow.hpp:13
Definition: sdlgraphicswindow.hpp:76
SDL_Window * mWindow
Definition: sdlgraphicswindow.hpp:81
virtual bool isRealizedImplementation() const
Definition: sdlgraphicswindow.hpp:37
SDL_GLContext mContext
Definition: sdlgraphicswindow.hpp:14
virtual bool releaseContextImplementation()
Definition: sdlgraphicswindow.cpp:148
WindowData(SDL_Window *window)
Definition: sdlgraphicswindow.hpp:78
virtual void setCursor(MouseCursor cursor)
Definition: sdlgraphicswindow.cpp:66
virtual void setSyncToVBlank(bool on)
Definition: sdlgraphicswindow.cpp:181
const char * name
Definition: crashcatcher.cpp:59