Commit 9119d2e0 authored by Ellen Dekkers's avatar Ellen Dekkers

OpneFlipper/BasePlugin/PluginFunctions: setMainGLContext

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4545 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 831130a1
......@@ -380,6 +380,10 @@ void allowRotation(bool _mode) {
examiner_widget_->allowRotation(_mode);
}
void setMainGLContext() {
examiner_widget_->makeCurrent();
}
void viewingDirection(const ACG::Vec3d &_dir, const ACG::Vec3d &_up) {
examiner_widget_->viewingDirection(_dir,_up);
}
......
......@@ -294,6 +294,12 @@ void allowRotation(bool _mode);
* @{ */
//=======================================
/** \brief Set current GL Context to main context
*/
DLLEXPORT
void setMainGLContext();
/** \brief Set the viewing direction
* @param _dir direction
* @param _up up vector
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment