DeferredRenderer 1.0

PointLight.h

Go to the documentation of this file.
00001 #ifndef POINTLIGHT_H
00002 #define POINTLIGHT_H
00003 
00004 #include <string>
00005 #include "ngl/Vector.h"
00006 
00013 class PointLight
00014 {
00015 public:
00017     PointLight();
00018     
00023     PointLight(const ngl::Vector &_centre, const float &_radius, const ngl::Vector &_intensity);
00024     
00026     ~PointLight();
00027 
00031     void draw(unsigned int &_vao, const std::string &_shaderName);
00032 
00036     bool collidesWithSphere(const ngl::Vector &_pos, const float &_radius);
00037 
00039     ngl::Vector m_pos;
00040 private:
00042     float m_radius;
00043     
00045     ngl::Vector m_intensity;
00046 };
00047 
00048 #endif // POINTLIGHT_H
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines