Files
kraken/KREngine/KREngine/Classes/KRSkyBox.h
kearwood 2fd05171b7 Fixed colour temperature and intensity engine parameters, which were not calculating r,g,b correctly
Refactoring in preparation for LOD and geometric reflections

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40116
2012-10-04 22:29:01 +00:00

53 lines
1.1 KiB
Objective-C

//
// KRSkyBox.h
// KREngine
//
// Created by Michael Ilich on 2012-08-23.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#ifndef __KREngine__KRSkyBox__
#define __KREngine__KRSkyBox__
#include <iostream>
#import "KRMat4.h"
#import "KRNode.h"
#import "KRTexture.h"
class KRSkyBox : public KRNode {
public:
KRSkyBox(KRScene &scene, std::string name);
virtual ~KRSkyBox();
virtual std::string getElementName();
virtual void loadXML(tinyxml2::XMLElement *e);
#if TARGET_OS_IPHONE
virtual void render(KRCamera *pCamera, KRContext *pContext, KRMat4 &viewMatrix, KRNode::RenderPass renderPass);
#endif
private:
KRMat4 m_modelMatrix;
protected:
std::string m_frontTexture;
std::string m_backTexture;
std::string m_topTexture;
std::string m_bottomTexture;
std::string m_leftTexture;
std::string m_rightTexture;
KRTexture *m_pFrontTexture;
KRTexture *m_pBackTexture;
KRTexture *m_pTopTexture;
KRTexture *m_pBottomTexture;
KRTexture *m_pLeftTexture;
KRTexture *m_pRightTexture;
};
#endif