⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geomdb.h

📁 使用stl技术,(还没看,是听说的)
💻 H
字号:
// ---------------------------------------------------------------------------------------------------------------------------------
//   _____                      _____  ____      _     
//  / ____|                    |  __ \|  _ \    | |    
// | |  __  ___  ___  _ __ ___ | |  | | |_) |   | |__  
// | | |_ |/ _ \/ _ \| '_ ` _ \| |  | |  _ <    | '_ \ 
// | |__| |  __/ (_) | | | | | | |__| | |_) | _ | | | |
//  \_____|\___|\___/|_| |_| |_|_____/|____/ (_)|_| |_|
//                                                     
//                                                     
//
// Description:
//
//   Geometry database manager
//
// Notes:
//
//   Best viewed with 8-character tabs and (at least) 132 columns
//
// History:
//
//   08/03/2001 by Paul Nettle: Original creation
//
// Restrictions & freedoms pertaining to usage and redistribution of this software:
//
//   This software is 100% free. If you use this software (in part or in whole) you must credit the author. This software may not be
//   re-distributed (in part or in whole) in a modified form without clear documentation on how to obtain a copy of the original
//   work. You may not use this software to directly or indirectly cause harm to others. This software is provided as-is and without
//   warrantee -- Use at your own risk. For more information, visit HTTP://www.FluidStudios.com/
//
// Copyright 2002, Fluid Studios, Inc., all rights reserved.
// ---------------------------------------------------------------------------------------------------------------------------------

#ifndef	_H_GEOMDB
#define _H_GEOMDB

// ---------------------------------------------------------------------------------------------------------------------------------
// Forward declarations & required modules
// ---------------------------------------------------------------------------------------------------------------------------------

#include "RadPrim.h"
#include "RadPatch.h"
#include "RadLMap.h"

class	ProgressDlg;

// ---------------------------------------------------------------------------------------------------------------------------------

#include "SK_OctreeTexture.h"

// ---------------------------------------------------------------------------------------------------------------------------------

class	GeomDB
{
public:
	// Construction/Destruction

					GeomDB();
virtual					~GeomDB();

	// Implementation		

		bool			readSCENE(const fstl::string & infile, const fstl::string & outfile, ProgressDlg & prog, const geom::Color3 & defaultReflectivity);
		bool			writeOCT(const fstl::string & filename, ProgressDlg & prog);
		bool			writeSCENE(const fstl::string & filename, ProgressDlg & prog);

	// Accessors			

inline		RadPrimList &		polys()			{return _polys;}
inline	const	RadPrimList &		polys() const		{return _polys;}
inline		RadPatchList &		lights()		{return _lights;}
inline	const	RadPatchList &		lights() const		{return _lights;}
inline		RadLMapArray &		lightmaps()		{return _lightmaps;}
inline	const	RadLMapArray &		lightmaps() const	{return _lightmaps;}
inline 		sOctTextureArray &	octTextures()		{return _octTextures;}
inline const	sOctTextureArray &	octTextures() const	{return _octTextures;}

private:
	// Data members

		RadPrimList		_polys;
		RadPatchList		_lights;
		RadLMapArray		_lightmaps;
		sOctTextureArray	_octTextures;
};

#endif // _H_GEOMDB
// ---------------------------------------------------------------------------------------------------------------------------------
// GeomDB.h - End of file
// ---------------------------------------------------------------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -