Callback for the drunk effect.
More...
#include <DrunkenInteractionCallback.h>
|
virtual void | interact (osg::Node *, osg::NodeVisitor *) |
| Drunk effect is simulated by changing the FOV of the projection matrix. More...
|
|
Callback for the drunk effect.
- Author
- Gleb Ostrowski
- Version
- 1.0
- Date
- 2014
- Copyright
- GNU Public License.
Definition at line 15 of file DrunkenInteractionCallback.h.
brtr::DrunkenInteractionCallback::DrunkenInteractionCallback |
( |
osg::Node * |
camera, |
|
|
osg::Camera * |
hudCam, |
|
|
osg::Switch * |
geometrySwitch, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Constructor.
- Parameters
-
camera | the camera, whichs projection matrix will be manipulated |
hudCam | |
geometrySwitch | switch containing the bottle, for removing it after the interaction |
width | screenwidth |
height | screenheight |
Definition at line 5 of file DrunkenInteractionCallback.cpp.
void brtr::DrunkenInteractionCallback::interact |
( |
osg::Node * |
node, |
|
|
osg::NodeVisitor * |
nv |
|
) |
| |
|
protectedvirtual |
void brtr::DrunkenInteractionCallback::setText |
( |
| ) |
|
|
virtual |
bool brtr::DrunkenInteractionCallback::_backwards |
|
private |
osg::ref_ptr<osg::Switch> brtr::DrunkenInteractionCallback::_geometrySwitch |
|
private |
osg::ref_ptr<osgAnimation::LinearMotion> brtr::DrunkenInteractionCallback::_motion |
|
private |
int brtr::DrunkenInteractionCallback::_startTime |
|
private |
The documentation for this class was generated from the following files: