2012-04-05 23:09:41 +00:00
|
|
|
//
|
|
|
|
|
// KRPointLight.h
|
|
|
|
|
// KREngine
|
|
|
|
|
//
|
|
|
|
|
// Created by Kearwood Gilbert on 12-04-05.
|
|
|
|
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
2013-01-09 22:37:23 +00:00
|
|
|
#ifndef KRPOINTLIGHT_H
|
|
|
|
|
#define KRPOINTLIGHT_H
|
2012-04-05 23:09:41 +00:00
|
|
|
|
2013-01-11 03:21:19 +00:00
|
|
|
#include "KRLight.h"
|
|
|
|
|
#include "KRMat4.h"
|
2012-04-05 23:09:41 +00:00
|
|
|
|
|
|
|
|
class KRPointLight : public KRLight {
|
|
|
|
|
|
|
|
|
|
public:
|
2012-04-26 09:06:45 +00:00
|
|
|
|
2012-08-29 21:43:11 +00:00
|
|
|
KRPointLight(KRScene &scene, std::string name);
|
2012-04-12 00:43:53 +00:00
|
|
|
virtual ~KRPointLight();
|
2012-04-05 23:09:41 +00:00
|
|
|
|
2012-04-12 00:43:53 +00:00
|
|
|
virtual std::string getElementName();
|
2012-11-03 02:57:35 +00:00
|
|
|
virtual KRAABB getBounds();
|
2012-12-28 06:25:57 +00:00
|
|
|
|
2012-11-16 02:58:23 +00:00
|
|
|
virtual void render(KRCamera *pCamera, std::vector<KRLight *> &lights, const KRViewport &viewport, KRNode::RenderPass renderPass);
|
2012-04-26 09:06:45 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void generateMesh();
|
|
|
|
|
|
|
|
|
|
GLfloat *m_sphereVertices;
|
|
|
|
|
int m_cVertices;
|
2012-04-05 23:09:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|