Subclass of viewers for setting up the OpenGL render context for Win32 applications. More...
Public Member Functions | |
ViewerWin32 () | |
Constructs a ViewerWin32. More... | |
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. More... | |
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. More... | |
bool | createSharedOpenGLContext (vis::OpenGLContextGroup *contextGroup, ViewerWin32 *shareWithViewer, HWND hWnd) |
Create a shared OpenGL context. More... | |
bool | createSharedOpenGLContext (vis::OpenGLContextGroup *contextGroup, ViewerWin32 *shareWithViewer, int windowHandleAsInt) |
Create a shared OpenGL context. More... | |
bool | createSoftwareOpenGLContext (vis::OpenGLContextGroup *contextGroup, HWND hWnd) |
Creates a software openGL render context. More... | |
bool | createSoftwareOpenGLContext (vis::OpenGLContextGroup *contextGroup, int windowHandleAsInt) |
Creates a software OpenGL render context. More... | |
void | deleteOpenGLContext () |
Deletes the OpenGL render context. More... | |
void | swapBuffers () |
Swaps buffers. More... | |
![]() | |
Viewer () | |
Constructs an empty viewer. More... | |
Static Public Member Functions | |
static bool | supportsHardwareOpenGL (HWND hWnd) |
Returns true if OpenGL has hardware support. More... | |
static bool | supportsHardwareOpenGL (int windowHandleAsInt) |
Returns true if OpenGL has hardware support. More... | |
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.
cee::win::ViewerWin32::ViewerWin32 | ( | ) |
Constructs a ViewerWin32.
bool cee::win::ViewerWin32::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 cee::win::ViewerWin32::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.
bool cee::win::ViewerWin32::createSharedOpenGLContext | ( | vis::OpenGLContextGroup * | contextGroup, |
ViewerWin32 * | shareWithViewer, | ||
HWND | hWnd | ||
) |
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 cee::win::ViewerWin32::createSharedOpenGLContext | ( | vis::OpenGLContextGroup * | contextGroup, |
ViewerWin32 * | shareWithViewer, | ||
int | windowHandleAsInt | ||
) |
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 cee::win::ViewerWin32::createSoftwareOpenGLContext | ( | vis::OpenGLContextGroup * | contextGroup, |
HWND | hWnd | ||
) |
Creates a software openGL render context.
bool cee::win::ViewerWin32::createSoftwareOpenGLContext | ( | vis::OpenGLContextGroup * | contextGroup, |
int | windowHandleAsInt | ||
) |
Creates a software OpenGL render context.
void cee::win::ViewerWin32::deleteOpenGLContext | ( | ) |
Deletes the OpenGL render context.
|
static |
Returns true if OpenGL has hardware support.
|
static |
Returns true if OpenGL has hardware support.
void cee::win::ViewerWin32::swapBuffers | ( | ) |
Swaps buffers.