OpenWalnut
1.5.0dev
|
Callback which aligns and renders the textures. More...
Public Member Functions | |
SafeUpdateCallback (WGETextureHud *hud) | |
Constructor. More... | |
virtual void | operator() (osg::Node *node, osg::NodeVisitor *nv) |
operator () - called during the update traversal. More... | |
Public Attributes | |
WGETextureHud * | m_hud |
Pointer used to access members of the hud. More... | |
Callback which aligns and renders the textures.
Definition at line 237 of file WGETextureHud.h.
|
inlineexplicit |
Constructor.
hud | just set the creating HUD as pointer for later reference. |
Definition at line 245 of file WGETextureHud.h.
|
virtual |
operator () - called during the update traversal.
node | the osg node |
nv | the node visitor |
Definition at line 59 of file WGETextureHud.cpp.
References WGETextureHud::getMaxElementWidth(), WGETextureHud::WGETextureHudEntry::getRealHeight(), WGETextureHud::WGETextureHudEntry::getRealWidth(), WGETextureHud::WGETextureHudEntry::getTextureMatrix(), WGETextureHud::m_coupleTexViewport, m_hud, WGETextureHud::m_viewport, and WGETextureHud::WGETextureHudEntry::setMaxTextWidth().
WGETextureHud* WGETextureHud::SafeUpdateCallback::m_hud |
Pointer used to access members of the hud.
This is faster than casting the first parameter of operator() to WGETextureHud.
Definition at line 260 of file WGETextureHud.h.
Referenced by operator()().