Scene-load.cc handling material definitions
git-svn-id: svn://anubis/fart/trunk@178 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
fce4d82a73
commit
31e2604f98
3 files changed
+45
-5
No files matched your search
@@ -22,6 +22,7 @@ class Node
|
||||
return refptr<Vector>(NULL);
|
||||
}
|
||||
virtual bool isShape() { return false; }
|
||||
virtual bool isMaterial() { return false; }
|
||||
virtual std::string getString() { return ""; }
|
||||
|
||||
protected:
|
||||
@@ -135,6 +136,8 @@ class LookAtNode : public VectorNode
|
||||
|
||||
class MaterialNode : public Node
|
||||
{
|
||||
public:
|
||||
bool isMaterial() { return true; }
|
||||
};
|
||||
|
||||
class MaterialDefinitionNode : public IdentifierNode
|
||||
@@ -147,6 +150,7 @@ class MaterialRefNode : public IdentifierNode
|
||||
{
|
||||
public:
|
||||
MaterialRefNode(const std::string & str) : IdentifierNode(str) {}
|
||||
bool isMaterial() { return true; }
|
||||
};
|
||||
|
||||
class MultisampleNode : public IntegerNode
|
||||
|
||||
Reference in new issue
Block a user