Creation of Switch Node, Fixed Primitives inheritance, and added

Blending to Shader.
This commit is contained in:
brunoherbelin
2020-04-02 00:06:55 +02:00
parent 37a6754de2
commit fc256693dc
13 changed files with 229 additions and 55 deletions

View File

@@ -6,6 +6,7 @@
// Forward declare different kind of Node
class Node;
class Group;
class Switch;
class Primitive;
class Scene;
class TexturedRectangle;
@@ -22,6 +23,7 @@ public:
// Declare overloads for each kind of Node to visit
virtual void visit(Node& n) = 0;
virtual void visit(Group& n) = 0;
virtual void visit(Switch& n) = 0;
virtual void visit(Primitive& n) = 0;
virtual void visit(Scene& n) = 0;
virtual void visit(TexturedRectangle& n) = 0;