Set up scene graph objects required for managing light sources
--HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4033
This commit is contained in:
@@ -10,15 +10,27 @@
|
||||
#define KREngine_KRLight_h
|
||||
|
||||
#import "KRResource.h"
|
||||
#import "KRNode.h"
|
||||
|
||||
class KRLight : public KRResource {
|
||||
class KRLight : public KRNode {
|
||||
public:
|
||||
~KRLight();
|
||||
virtual ~KRLight();
|
||||
virtual std::string getElementName() = 0;
|
||||
virtual tinyxml2::XMLElement *saveXML( tinyxml2::XMLNode *parent);
|
||||
|
||||
void setIntensity(float intensity);
|
||||
float getIntensity();
|
||||
void setDecayStart(float decayStart);
|
||||
float getDecayStart();
|
||||
const KRVector3 &getColor();
|
||||
void setColor(const KRVector3 &color);
|
||||
|
||||
virtual std::string getExtension();
|
||||
virtual bool save(const std::string& path) = 0;
|
||||
protected:
|
||||
KRLight(std::string name);
|
||||
|
||||
float m_intensity;
|
||||
float m_decayStart;
|
||||
KRVector3 m_color;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user