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

Added function to get shadernode from baseObjectData if available

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c051a99f
......@@ -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();
Supports Markdown
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