The GLWidget for updating the drawing of our scene.
More...
#include <GLWindow.h>
List of all members.
Detailed Description
The GLWidget for updating the drawing of our scene.
Constructor & Destructor Documentation
GLWindow::GLWindow |
( |
QWidget * |
_parent | ) |
|
Constructor for GLWindow.
- Parameters:
-
[in] | _parent | the parent window to create the GL context in |
Member Function Documentation
void GLWindow::genShader |
( |
const std::string & |
_name, |
|
|
const std::string & |
_VSname, |
|
|
const std::string & |
_FSname, |
|
|
const std::vector< std::string > & |
_attributes |
|
) |
| [protected] |
a helper function for generating ngl shaders
- Parameters:
-
[in] | _name | the shaders desired name |
[in] | _VSname | the vertex shader name |
[in] | _FSname | the frag sjader name |
[in] | _attributes | a vector of strings for the shaders attributes |
void GLWindow::initializeGL |
( |
| ) |
[protected] |
called upon creating GLWindow, setup for Glew and other scene elements
void GLWindow::paintGL |
( |
| ) |
[protected] |
this is the main gl drawing routine
void GLWindow::processKeyPress |
( |
QKeyEvent * |
_event | ) |
|
GL key events processing.
- Parameters:
-
[in] | _event | the event infomation |
void GLWindow::reset |
( |
| ) |
[slot] |
void GLWindow::resizeGL |
( |
const int |
_w, |
|
|
const int |
_h |
|
) |
| [protected] |
Re-size method, disabled in this application.
void GLWindow::setBendDamping |
( |
double |
_value | ) |
[slot] |
void GLWindow::setBendStiffness |
( |
double |
_value | ) |
[slot] |
void GLWindow::setGrav |
( |
double |
_value | ) |
[slot] |
void GLWindow::setShearDamping |
( |
double |
_value | ) |
[slot] |
void GLWindow::setShearStiffness |
( |
double |
_value | ) |
[slot] |
void GLWindow::setStructDamping |
( |
double |
_value | ) |
[slot] |
void GLWindow::setStructStiffness |
( |
double |
_value | ) |
[slot] |
void GLWindow::setTimeStep |
( |
double |
_value | ) |
[inline, slot] |
void GLWindow::setWindX |
( |
double |
_value | ) |
[slot] |
void GLWindow::setWindY |
( |
double |
_value | ) |
[slot] |
void GLWindow::setWindZ |
( |
double |
_value | ) |
[slot] |
void GLWindow::timerEvent |
( |
QTimerEvent * |
_event | ) |
[protected] |
timer event for updating the demo scene
- Parameters:
-
void GLWindow::toggleWireframe |
( |
bool |
_mode | ) |
[inline, slot] |
a slot to toggle wireframe mode
- Parameters:
-
[in] | _mode | the mode to wireframe to |
Member Data Documentation
The documentation for this class was generated from the following files: