Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

skydome.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           skydome.h  -  Skydome class
00003                              -------------------
00004     begin                : Sat Dec 14 2002
00005     copyright            : (C) 2002 by Reality Rift Studios
00006     email                : mattias@realityrift.com
00007  ***************************************************************************
00008 
00009  The contents of this file are subject to the Mozilla Public License Version
00010  1.1 (the "License"); you may not use this file except in compliance with
00011  the License. You may obtain a copy of the License at 
00012  http://www.mozilla.org/MPL/
00013 
00014  Software distributed under the License is distributed on an "AS IS" basis,
00015  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00016  for the specific language governing rights and limitations under the
00017  License.
00018 
00019  The Original Code is the NeoEngine, skydome.h
00020 
00021  The Initial Developer of the Original Code is Mattias Jansson.
00022  Portions created by Mattias Jansson are Copyright (C) 2002
00023  Reality Rift Studios. All Rights Reserved.
00024 
00025  ***************************************************************************/
00026 
00027 #ifndef __NESKYDOME_H
00028 #define __NESKYDOME_H
00029 
00030 
00037 #include "base.h"
00038 #include "sceneentity.h"
00039 #include "material.h"
00040 #include "vertexbuffer.h"
00041 #include "polygonbuffer.h"
00042 #include "nemath.h"
00043 
00044 
00045 namespace NeoEngine
00046 {
00047 
00048 
00049 //External classes
00050 class Quaternion;
00051 
00052 
00057 class NEOENGINE_API SkyDome : public SceneEntity
00058 {
00059     public:
00060         DefineVisitable()
00061 
00062     public:
00063 
00067         enum SKYDOMEPLANE
00068         {
00070           FRONT        = 0,
00071 
00073           BACK         = 1,
00074 
00076           LEFT         = 2,
00077 
00079           RIGHT        = 3,
00080 
00082           UP           = 4,
00083 
00085           NUMPLANES    = 5
00086         };
00087 
00088 
00089     protected:
00090 
00092         MaterialPtr                   m_apkMaterial[NUMPLANES];
00093 
00095         VertexBufferPtr               m_apkVertexBuffer[NUMPLANES];
00096 
00098         PolygonBufferPtr              m_pkPolygonBuffer;
00099 
00101         Matrix                        m_kOrientation;
00102 
00103 
00104 
00105     public:
00106 
00107 
00110                                         SkyDome();
00111 
00114         virtual                        ~SkyDome();
00115 
00124         void                            Set( const Quaternion &rkOrientation, float fDistance, float fCurvature, int iSegments = 16, float fTiles = 1.0f );
00125 
00131         void                            SetMaterial( SKYDOMEPLANE ePlane, MaterialPtr &pkMaterial );
00132 
00138         virtual bool                    Render( Frustum *pkFrustum = 0, bool bForce = false );
00139 };
00140 
00141 
00142 };
00143 
00144 
00145 #endif

Generated on Wed Jan 21 14:21:07 2004 for NeoEngine by doxygen 1.3.5