Code Search for Developers
 
 
  

skybox.h from NeoEngineNG at Krugle


Show skybox.h syntax highlighted

/***************************************************************************
                          skybox.h  -  Skybox chunk
                             -------------------
    begin                : Thu Feb 27 2003
    copyright            : (C) 2003 by Reality Rift Studios
    email                : mattias@realityrift.com
 ***************************************************************************

 The contents of this file are subject to the Mozilla Public License Version
 1.1 (the "License"); you may not use this file except in compliance with
 the License. You may obtain a copy of the License at 
 http://www.mozilla.org/MPL/

 Software distributed under the License is distributed on an "AS IS" basis,
 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 for the specific language governing rights and limitations under the
 License.

 The Original Code is the NeoEngine, NeoChunkIO, skybox.h

 The Initial Developer of the Original Code is Mattias Jansson.
 Portions created by Mattias Jansson are Copyright (C) 2003
 Reality Rift Studios. All Rights Reserved.

 ***************************************************************************/

#ifndef _NECHUNKIO_SKYBOX_H_
#define _NECHUNKIO_SKYBOX_H_


/**
  * \file neochunkio/skybox.h
  * Skybox chunk
  */


#include "base.h"
#include "sceneentity.h"


namespace NeoChunkIO
{


/**
  * \brief Skybox chunk
  * \author Mattias Jansson (mattias@realityrift.com)
  **/
class NEOCHUNKIO_API SkyBoxChunk : public SceneEntityChunk
{
	public:

		/**
		* Initialize chunk
		* \param usType                               Chunk type
		* \param rstrType                             Chunk type as string
		* \param rstrID                               Chunk ID string
		*/ 
		                                              SkyBoxChunk( unsigned short usType, const NeoEngine::HashString &rstrType, const NeoEngine::HashString &rstrID = "" ) : SceneEntityChunk( usType, rstrType, rstrID ) {}
		
		/**
		* Setup chunk with default values
		* \param rstrID                               Chunk ID string, default empty
		*/
		                                              SkyBoxChunk( const NeoEngine::HashString &rstrID = "" ) : SceneEntityChunk( ChunkType::SKYBOX, "skybox", rstrID ) {}
		
		/**
		* Deallocate data and subchunks
		*/
		virtual                                      ~SkyBoxChunk() {}

		/**
		* Parse chunk data
		* \param uiFlags                              Parse flags
		* \param pkFileManager                        File manager
		* \return                                     <0 if error, >0 if successful (0 reserved)
		*/
		virtual int                                   ParseData( unsigned int uiFlags, NeoEngine::FileManager *pkFileManager );

		/**
		* Allocate new chunk
		* \param usType                               Type identifier
		* \param rstrType                             Type identifier as string
		* \param rstrID                               ID string
		* \return                                     New chunk
		*/
		static Chunk                                 *Allocator( unsigned short usType, const NeoEngine::HashString &rstrType, const NeoEngine::HashString &rstrID ) { return new SkyBoxChunk( usType, rstrType, rstrID ); }
};


};


#endif





See more files for this project here

NeoEngineNG

NeoenEngine NG (Next Generation) is the evolution of neoengine one,it\'s a different development from NeoEngine2, it\'s a direct inherits from NeoEngine one.\n

Project homepage: http://sourceforge.net/projects/neoengineng
Programming language(s): C,C++
License: other

  Makefile.am
  SConscript
  animlib.cpp
  animlib.h
  base.cpp
  base.h
  bone.cpp
  bone.h
  bool.cpp
  bool.h
  boundingvolume.cpp
  boundingvolume.h
  chunk.cpp
  chunk.h
  chunkio.cpp
  chunkio.h
  chunktype.h
  color.cpp
  color.h
  complex.cpp
  complex.h
  core.cpp
  core.h
  core_inl.h
  dll.cpp
  factory.cpp
  factory.h
  float.cpp
  float.h
  integer.cpp
  integer.h
  light.cpp
  light.h
  material.cpp
  material.h
  materiallib.cpp
  materiallib.h
  matrix.cpp
  matrix.h
  mesh.cpp
  mesh.h
  meshentity.cpp
  meshentity.h
  neochunkio-static.dev
  neochunkio.cbp
  neochunkio.depend
  neochunkio.dev
  neochunkio.dsp
  neochunkio.layout
  neochunkio.vcproj
  nodeanimation.cpp
  nodeanimation.h
  nodekeyframe.cpp
  nodekeyframe.h
  notify.cpp
  notify.h
  polygonbuffer.cpp
  polygonbuffer.h
  polygonstrip.cpp
  polygonstrip.h
  primitive.cpp
  primitive.h
  quaternion.cpp
  quaternion.h
  room.cpp
  room.h
  scene.cpp
  scene.h
  sceneentity.cpp
  sceneentity.h
  scenenode.cpp
  scenenode.h
  shader.cpp
  shader.h
  shaderprogram.cpp
  shaderprogram.h
  short.cpp
  short.h
  skeleton.cpp
  skeleton.h
  skeletonanimation.cpp
  skeletonanimation.h
  skin.cpp
  skin.h
  skinvertexbuffer.cpp
  skinvertexbuffer.h
  skybox.cpp
  skybox.h
  skydome.cpp
  skydome.h
  stdstring.cpp
  stdstring.h
  submesh.cpp
  submesh.h
  submeshanimation.cpp
  submeshanimation.h
  submeshkeyframe.cpp
  submeshkeyframe.h
  technique.cpp
  technique.h
  texlayer.cpp
  texlayer.h
  texmatrixgen.cpp
  texmatrixgen.h
  vector3d.cpp
  vector3d.h
  vertexbuffer.cpp
  vertexbuffer.h