cee::win::ViewerWin32
-
class
ViewerWin32
: public Viewer Subclass of viewers for setting up the OpenGL render context for Win32 applications.
The viewers are thin wrapper layers between the View class and the native system and enables rendering in for instance Qt based application. Use the correct subclassed viewer.
Public Functions
-
ViewerWin32
() Constructs a ViewerWin32.
-
bool
createOpenGLContext
(vis::OpenGLContextGroup *contextGroup, HWND hWnd, const OpenGLContextSpecWin &spec = OpenGLContextSpecWin()) Creates an OpenGL render context. Use this method for the first or only Viewer in the app.
-
bool
createOpenGLContext
(vis::OpenGLContextGroup *contextGroup, int windowHandleAsInt, const OpenGLContextSpecWin &spec = OpenGLContextSpecWin()) Creates an OpenGL render context. Use this method for the first or only Viewer in the app.
Create a shared OpenGL context.
Use this method for the second, third, etc. Viewer in the app. This will allow the OpenGL context to share OpenGL resources, and thus a model can be shown in multiple views.
Create a shared OpenGL context.
Use this method for the second, third, etc. Viewer in the app. This will allow the OpenGL context to share OpenGL resources, and thus a model can be shown in multiple views.
-
bool
createSoftwareOpenGLContext
(vis::OpenGLContextGroup *contextGroup, HWND hWnd) Creates a software openGL render context.
-
bool
createSoftwareOpenGLContext
(vis::OpenGLContextGroup *contextGroup, int windowHandleAsInt) Creates a software OpenGL render context.
-
void
deleteOpenGLContext
() Deletes the OpenGL render context.
-
void
swapBuffers
() Swaps buffers.
-