Create a Win32 viewer with its own OpenGL (sub) window. More...
Public Member Functions | |
ViewerWindowed () | |
Constructs the viewer. More... | |
bool | create (vis::OpenGLContextGroup *contextGroup, HWND parentWnd) |
Creates the sub window with a new render context. More... | |
bool | create (vis::OpenGLContextGroup *contextGroup, int parentWndHandleAsInt) |
Creates the sub window with a new render context. More... | |
bool | createShared (vis::OpenGLContextGroup *contextGroup, ViewerWindowed *shareWithViewer, HWND parentWnd) |
Creates the sub window with a shared OpenGL context. More... | |
bool | createSoftware (vis::OpenGLContextGroup *contextGroup, HWND parentWnd) |
Creates the sub window with a shared OpenGL context. More... | |
void | destroy () |
Destroys the OpenGL context and the sub window. More... | |
HWND | windowHandle () |
Returns the window handle of the sub window. More... | |
void | setView (vis::View *view) |
Sets the view to show in the viewer. More... | |
void | setPosition (int x, int y, int width, int height) |
Sets the position of the window. More... | |
![]() | |
Viewer () | |
Constructs an empty viewer. More... | |
Create a Win32 viewer with its own OpenGL (sub) window.
This viewer will create a sub-window which will be used for OpenGL rendering The sub-window and the render context etc. will be managed by the viewer.
cee::win::ViewerWindowed::ViewerWindowed | ( | ) |
Constructs the viewer.
bool cee::win::ViewerWindowed::create | ( | vis::OpenGLContextGroup * | contextGroup, |
HWND | parentWnd | ||
) |
Creates the sub window with a new render context.
Use this method for the first or only viewer in the App
bool cee::win::ViewerWindowed::create | ( | vis::OpenGLContextGroup * | contextGroup, |
int | parentWndHandleAsInt | ||
) |
Creates the sub window with a new render context.
Use this method for the first or only viewer in the App
bool cee::win::ViewerWindowed::createShared | ( | vis::OpenGLContextGroup * | contextGroup, |
ViewerWindowed * | shareWithViewer, | ||
HWND | parentWnd | ||
) |
Creates the sub window with 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::ViewerWindowed::createSoftware | ( | vis::OpenGLContextGroup * | contextGroup, |
HWND | parentWnd | ||
) |
Creates the sub window with 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.
void cee::win::ViewerWindowed::destroy | ( | ) |
Destroys the OpenGL context and the sub window.
void cee::win::ViewerWindowed::setPosition | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Sets the position of the window.
void cee::win::ViewerWindowed::setView | ( | vis::View * | view | ) |
Sets the view to show in the viewer.
HWND cee::win::ViewerWindowed::windowHandle | ( | ) |
Returns the window handle of the sub window.