Commit 575129eb authored by Jan Möbius's avatar Jan Möbius
Browse files

Added function to get shadernode from baseObjectData if available

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2994 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 55106a3d
......@@ -161,6 +161,10 @@ ManipulatorNode* BaseObjectData::manipulatorNode() {
return manipulatorNode_;
}
ACG::SceneGraph::ShaderNode* BaseObjectData::shaderNode() {
return 0;
}
MaterialNode* BaseObjectData::materialNode() {
return materialNode_;
}
......
......@@ -61,6 +61,7 @@
#include <vector>
#include <ACG/Scenegraph/MaterialNode.hh>
#include <ACG/Scenegraph/SeparatorNode.hh>
#include <ACG/Scenegraph/ShaderNode.hh>
#include <ACG/Scenegraph/BaseNode.hh>
#include <ACG/Scenegraph/ManipulatorNode.hh>
......@@ -164,6 +165,13 @@ class DLLEXPORT BaseObjectData : public BaseObject
*/
ManipulatorNode* manipulatorNode();
/** Return pointer to the shader node
* If you want to support shaders, you have to add a shader node into your scenegraph structure
* above your object to be rendered. If you do not have a shader, just ignore this function
* and it will return a 0 pointer.
*/
virtual ACG::SceneGraph::ShaderNode* shaderNode();
/// get a pointer to the materialnode
MaterialNode* materialNode();
......
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