mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-27 08:27:30 +01:00
2ae2a551a6
GLES drivers adapted, but only did make compile-tests. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6038 dfc29bdd-3216-0410-991c-e03cc46cb475
51 lines
1.6 KiB
C++
51 lines
1.6 KiB
C++
// Copyright (C) 2002-2012 Nikolaus Gebhardt
|
|
// This file is part of the "Irrlicht Engine".
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
// Code for this scene node has been contributed by Anders la Cour-Harbo (alc)
|
|
|
|
#ifndef __C_SKY_DOME_SCENE_NODE_H_INCLUDED__
|
|
#define __C_SKY_DOME_SCENE_NODE_H_INCLUDED__
|
|
|
|
#include "ISceneNode.h"
|
|
#include "SMeshBuffer.h"
|
|
|
|
namespace irr
|
|
{
|
|
namespace scene
|
|
{
|
|
|
|
class CSkyDomeSceneNode : public ISceneNode
|
|
{
|
|
public:
|
|
CSkyDomeSceneNode(video::ITexture* texture, u32 horiRes, u32 vertRes,
|
|
f32 texturePercentage, f32 spherePercentage, f32 radius,
|
|
ISceneNode* parent, ISceneManager* smgr, s32 id);
|
|
virtual ~CSkyDomeSceneNode();
|
|
virtual void OnRegisterSceneNode() _IRR_OVERRIDE_;
|
|
virtual void render() _IRR_OVERRIDE_;
|
|
virtual const core::aabbox3d<f32>& getBoundingBox() const _IRR_OVERRIDE_;
|
|
virtual video::SMaterial& getMaterial(u32 i) _IRR_OVERRIDE_;
|
|
virtual u32 getMaterialCount() const _IRR_OVERRIDE_;
|
|
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_SKY_DOME; }
|
|
|
|
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const _IRR_OVERRIDE_;
|
|
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options) _IRR_OVERRIDE_;
|
|
virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) _IRR_OVERRIDE_;
|
|
|
|
private:
|
|
|
|
void generateMesh();
|
|
|
|
SMeshBuffer* Buffer;
|
|
|
|
u32 HorizontalResolution, VerticalResolution;
|
|
f32 TexturePercentage, SpherePercentage, Radius;
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|
|
|