Organized project to be more portable and require fewer steps to integrate into application projects in Xcode.

Moved standard assets into bundles
This commit is contained in:
2013-01-31 02:16:47 -08:00
parent 291461d912
commit ff63061722
199 changed files with 937 additions and 457 deletions

View File

@@ -0,0 +1,35 @@
//
// KRSpotLight.h
// KREngine
//
// Created by Kearwood Gilbert on 12-04-05.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#ifndef KREngine_KRSpotLight_h
#define KREngine_KRSpotLight_h
#include "KRLight.h"
class KRSpotLight : public KRLight {
public:
KRSpotLight(KRScene &scene, std::string name);
virtual ~KRSpotLight();
virtual std::string getElementName();
virtual tinyxml2::XMLElement *saveXML( tinyxml2::XMLNode *parent);
virtual void loadXML(tinyxml2::XMLElement *e);
float getInnerAngle();
float getOuterAngle();
void setInnerAngle(float innerAngle);
void setOuterAngle(float outerAngle);
private:
float m_innerAngle; // Inner angle of the cone, in radians. Inside this radius, the light will be at full brightness
float m_outerAngle; // Outer angle of the cone, in radians. Outside this radius, the light will be completely attenuated
};
#endif