My Project
rayDirectionalLight.h
1 #ifndef DIRECTIONAL_LIGHT_INCLUDED
2 #define DIRECTIONAL_LIGHT_INCLUDED
3 #include "rayLight.h"
4 
8 public:
11 
13  int read(FILE* fp);
14 
15  void write(FILE* fp=stdout);
16 
18  // Ray-Tracing stuff //
20  Point3D getDiffuse(Point3D cameraPosition,struct RayIntersectionInfo& iInfo);
21  Point3D getSpecular(Point3D cameraPosition,struct RayIntersectionInfo& iInfo);
22  int isInShadow(struct RayIntersectionInfo& iInfo,class RayShape* shape);
23  Point3D transparency(struct RayIntersectionInfo& iInfo,class RayShape* shape,Point3D cLimit);
24 
25 
27  // OpenGL stuff //
29  void drawOpenGL(int index);
30 };
31 
32 #endif // DIRECTIONAL_LIGHT_INCLUDED
33 
34 
Definition: rayDirectionalLight.h:7
Point3D transparency(struct RayIntersectionInfo &iInfo, class RayShape *shape, Point3D cLimit)
Definition: rayDirectionalLight.todo.cpp:19
Definition: rayScene.h:16
Definition: geometry.h:81
Point3D getSpecular(Point3D cameraPosition, struct RayIntersectionInfo &iInfo)
Definition: rayDirectionalLight.todo.cpp:13
void drawOpenGL(int index)
Definition: rayDirectionalLight.todo.cpp:26
Point3D getDiffuse(Point3D cameraPosition, struct RayIntersectionInfo &iInfo)
Definition: rayDirectionalLight.todo.cpp:10
void write(FILE *fp=stdout)
Definition: rayDirectionalLight.cpp:16
int isInShadow(struct RayIntersectionInfo &iInfo, class RayShape *shape)
Definition: rayDirectionalLight.todo.cpp:16
int read(FILE *fp)
Definition: rayDirectionalLight.cpp:8
Definition: rayShape.h:9
Point3D direction
Definition: rayDirectionalLight.h:10
Definition: rayLight.h:7