00001 00005 /* Copyright, 2001 Nevrax Ltd. 00006 * 00007 * This file is part of NEVRAX NEL. 00008 * NEVRAX NEL is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2, or (at your option) 00011 * any later version. 00012 00013 * NEVRAX NEL is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * General Public License for more details. 00017 00018 * You should have received a copy of the GNU General Public License 00019 * along with NEVRAX NEL; see the file COPYING. If not, write to the 00020 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 00021 * MA 02111-1307, USA. 00022 */ 00023 00024 #ifndef NL_LANDSCAPE_FACE_VECTOR_MANAGER_H 00025 #define NL_LANDSCAPE_FACE_VECTOR_MANAGER_H 00026 00027 #include "nel/misc/types_nl.h" 00028 #include <vector> 00029 #include "nel/3d/index_buffer.h" 00030 00031 00032 namespace NL3D { 00033 00034 // *************************************************************************** 00041 class CLandscapeFaceVectorManager 00042 { 00043 public: 00044 00046 CLandscapeFaceVectorManager(); 00047 ~CLandscapeFaceVectorManager(); 00048 00049 00050 // Empty the Free List. All FaceVector must be deleted. 00051 void purge(); 00055 TLandscapeIndexType *createFaceVector(uint numTri); 00057 void deleteFaceVector(TLandscapeIndexType *fv); 00058 00059 00060 private: 00061 // Array of Free Blocks List. NB: actually, in place of a TLandscapeIndexType, it is a TLandscapeIndexType* we point here (for next!!) 00062 std::vector<TLandscapeIndexType*> _Blocks; 00063 00064 uint getBlockIdFromNumTri(uint numTris); 00065 00066 }; 00067 00068 00069 } // NL3D 00070 00071 00072 #endif // NL_LANDSCAPE_FACE_VECTOR_MANAGER_H 00073 00074 /* End of landscape_face_vector_manager.h */
1.6.1