My Project
rayShape.h
1 #ifndef SHAPE_INCLUDED
2 #define SHAPE_INCLUDED
3 #include <stdio.h>
4 #include <Util/geometry.h>
5 
6 
9 class RayShape{
10 public:
13 
17  virtual void write(int indent,FILE* fp=stdout)=0;
18 
19 
21  // Ray-Tracing stuff //
23 
29  virtual double intersect(Ray3D ray,struct RayIntersectionInfo& iInfo,double mx=-1)=0;
30 
32  virtual BoundingBox3D setBoundingBox(void)=0;
33 
34 
36  // OpenGL stuff //
38 
40 
43  virtual void setUpOpenGL(int cplx)=0;
44 
46  virtual int drawOpenGL(int materialIndex)=0;
47 
49  virtual int isStatic(void){return 1;}
50 
51 };
52 #endif // SHAPE_INCLUDED
int openGLComplexity
Definition: rayShape.h:39
Definition: geometry.h:421
virtual void write(int indent, FILE *fp=stdout)=0
virtual int drawOpenGL(int materialIndex)=0
virtual BoundingBox3D setBoundingBox(void)=0
virtual int isStatic(void)
Definition: rayShape.h:49
Definition: rayScene.h:16
Definition: geometry.h:182
Definition: rayShape.h:9
virtual double intersect(Ray3D ray, struct RayIntersectionInfo &iInfo, double mx=-1)=0
virtual void setUpOpenGL(int cplx)=0
BoundingBox3D bBox
Definition: rayShape.h:12