My Project
rayPointLight.h
1 #ifndef POINT_LIGHT_INCLUDED
2 #define POINT_LIGHT_INCLUDED
3 #include "rayLight.h"
4 
8 class RayPointLight : public RayLight{
9 public:
13  double constAtten;
15  double linearAtten;
17  double quadAtten;
18 
20  int read(FILE* fp);
21 
22  void write(FILE* fp=stdout);
23 
25  // Ray-Tracing stuff //
27  Point3D getDiffuse(Point3D cameraPosition,struct RayIntersectionInfo& iInfo);
28 
29  Point3D getSpecular(Point3D cameraPosition,struct RayIntersectionInfo& iInfo);
30 
31  int isInShadow(struct RayIntersectionInfo& iInfo,class RayShape* shape);
32 
33  Point3D transparency(struct RayIntersectionInfo& iInfo,class RayShape* shape,Point3D cLimit);
34 
35 
37  // OpenGL stuff //
39  void drawOpenGL(int index);
40 };
41 
42 #endif // POINT_LIGHT_INCLUDED
43 
44 
double constAtten
Definition: rayPointLight.h:13
double quadAtten
Definition: rayPointLight.h:17
int read(FILE *fp)
Definition: rayPointLight.cpp:8
Point3D location
Definition: rayPointLight.h:11
Definition: rayScene.h:16
Definition: rayPointLight.h:8
Definition: geometry.h:81
Point3D getSpecular(Point3D cameraPosition, struct RayIntersectionInfo &iInfo)
Definition: rayPointLight.todo.cpp:13
Point3D transparency(struct RayIntersectionInfo &iInfo, class RayShape *shape, Point3D cLimit)
Definition: rayPointLight.todo.cpp:19
void drawOpenGL(int index)
Definition: rayPointLight.todo.cpp:27
Point3D getDiffuse(Point3D cameraPosition, struct RayIntersectionInfo &iInfo)
Definition: rayPointLight.todo.cpp:10
double linearAtten
Definition: rayPointLight.h:15
Definition: rayShape.h:9
void write(FILE *fp=stdout)
Definition: rayPointLight.cpp:15
Definition: rayLight.h:7
int isInShadow(struct RayIntersectionInfo &iInfo, class RayShape *shape)
Definition: rayPointLight.todo.cpp:16