Logo Search packages:      
Sourcecode: rgl version File versions  Download package

SceneNode.hpp

#ifndef SCENENODE_HPP
#define SCENENODE_HPP

//
// ABSTRACT BASE CLASS
//   SceneNode
//

#include "types.h"

/*
enum TypeID { 
  SHAPE=1, 
  LIGHT, 
  BBOXDECO, 
  VIEWPOINT, 
  BACKGROUND 
};
*/

#define SHAPE 1
#define LIGHT 2
#define BBOXDECO 3
#define VIEWPOINT 4
#define BACKGROUND 5

typedef unsigned int TypeID;

class SceneNode : public Node
{
public:
  inline const TypeID getTypeID() const { return typeID; }
  virtual ~SceneNode() { };
protected:
  SceneNode(const TypeID in_typeID) : typeID(in_typeID) 
  { };
private:
  const TypeID typeID;
};

#endif // SCENENODE_HPP
 

Generated by  Doxygen 1.6.0   Back to index