Files
kraken/KREngine/KREngine/Classes/KRLight.h

37 lines
773 B
C
Raw Normal View History

//
// KRLight.h
// KREngine
//
// Created by Kearwood Gilbert on 12-04-05.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#ifndef KREngine_KRLight_h
#define KREngine_KRLight_h
#import "KRResource.h"
#import "KRNode.h"
class KRLight : public KRNode {
public:
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);
protected:
KRLight(std::string name);
float m_intensity;
float m_decayStart;
KRVector3 m_color;
};
#endif