2012-08-23 23:18:45 +00:00
|
|
|
//
|
|
|
|
|
// 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"
|
2012-08-24 00:37:01 +00:00
|
|
|
#import "KRTexture.h"
|
2012-08-23 23:18:45 +00:00
|
|
|
|
|
|
|
|
class KRSkyBox : public KRNode {
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
2012-08-29 21:43:11 +00:00
|
|
|
KRSkyBox(KRScene &scene, std::string name);
|
2012-08-23 23:18:45 +00:00
|
|
|
virtual ~KRSkyBox();
|
|
|
|
|
|
|
|
|
|
virtual std::string getElementName();
|
2012-08-24 00:37:01 +00:00
|
|
|
virtual void loadXML(tinyxml2::XMLElement *e);
|
2012-08-23 23:18:45 +00:00
|
|
|
|
|
|
|
|
#if TARGET_OS_IPHONE
|
|
|
|
|
|
2012-10-04 22:29:01 +00:00
|
|
|
virtual void render(KRCamera *pCamera, KRContext *pContext, KRMat4 &viewMatrix, KRNode::RenderPass renderPass);
|
2012-08-23 23:18:45 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
KRMat4 m_modelMatrix;
|
2012-08-24 00:37:01 +00:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
2012-08-23 23:18:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|