My Project
raySpotLight.h
1 #ifndef SPOT_LIGHT_INCLUDED
2 #define SPOT_LIGHT_INCLUDED
3 #include "rayLight.h"
4 
12 class RaySpotLight : public RayLight{
13 public:
18 
20  double constAtten;
22  double linearAtten;
24  double quadAtten;
25 
27  double cutOffAngle;
29  double dropOffRate;
30 
32  int read(FILE* fp);
33 
34  void write(FILE* fp=stdout);
35 
37  // Ray-Tracing stuff //
39  Point3D getDiffuse(Point3D cameraPosition,struct RayIntersectionInfo& iInfo);
40 
41  Point3D getSpecular(Point3D cameraPosition,struct RayIntersectionInfo& iInfo);
42 
43  int isInShadow(struct RayIntersectionInfo& iInfo,RayShape* shape);
44 
45  Point3D transparency(struct RayIntersectionInfo& iInfo,class RayShape* shape,Point3D cLimit);
46 
48  // OpenGL stuff //
50  void drawOpenGL(int index);
51 };
52 
53 #endif // SPOT_LIGHT_INCLUDED
54 
55 
void write(FILE *fp=stdout)
Definition: raySpotLight.cpp:18
double linearAtten
Definition: raySpotLight.h:22
Point3D direction
Definition: raySpotLight.h:17
Point3D getDiffuse(Point3D cameraPosition, struct RayIntersectionInfo &iInfo)
Definition: raySpotLight.todo.cpp:11
void drawOpenGL(int index)
Definition: raySpotLight.todo.cpp:27
int read(FILE *fp)
Definition: raySpotLight.cpp:8
int isInShadow(struct RayIntersectionInfo &iInfo, RayShape *shape)
Definition: raySpotLight.todo.cpp:17
double cutOffAngle
Definition: raySpotLight.h:27
Definition: rayScene.h:16
Definition: geometry.h:81
double constAtten
Definition: raySpotLight.h:20
Point3D location
Definition: raySpotLight.h:15
double dropOffRate
Definition: raySpotLight.h:29
Point3D getSpecular(Point3D cameraPosition, struct RayIntersectionInfo &iInfo)
Definition: raySpotLight.todo.cpp:14
Definition: rayShape.h:9
Definition: rayLight.h:7
double quadAtten
Definition: raySpotLight.h:24
Definition: raySpotLight.h:12
Point3D transparency(struct RayIntersectionInfo &iInfo, class RayShape *shape, Point3D cLimit)
Definition: raySpotLight.todo.cpp:20