From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../doxygen/nel/classNL3D_1_1CCoarseMeshBuild.html | 347 +++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CCoarseMeshBuild.html (limited to 'docs/doxygen/nel/classNL3D_1_1CCoarseMeshBuild.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CCoarseMeshBuild.html b/docs/doxygen/nel/classNL3D_1_1CCoarseMeshBuild.html new file mode 100644 index 00000000..c60c9928 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CCoarseMeshBuild.html @@ -0,0 +1,347 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NL3D::CCoarseMeshBuild Class Reference

Class used to build the coarse meshes. +More... +

+#include <coarse_mesh_build.h> +

+List of all members. + + + + + + + + + +

Public Methods

bool build (const std::vector< CCoarseMeshDesc > &coarseMeshes, NLMISC::CBitmap &bitmap, CStats &stats, float mulArea)
 The build method. More...


Private Types

typedef std::map< std::string,
+ CBitmapDesc
MapBitmapDesc

Private Methods

void expand (NLMISC::CBitmap &bitmap)
bool buildBitmap (const std::vector< CCoarseMeshDesc > &coarseMeshes, NLMISC::CBitmap &bitmap, CStats &stats, MapBitmapDesc &desc, float mulArea)
void remapCoordinates (const std::vector< CCoarseMeshDesc > &coarseMeshes, const MapBitmapDesc &desc)
+


Detailed Description

+Class used to build the coarse meshes. +

+The build method take an array of CMeshGeom an a bitmap. This class will compute a single texture used to map every coarse mesh passed in the array. +

+Each mesh geom should be a coarse mesh. +

+The uv texture coodinates of those coarse meshes will be adjusted to fit in a single texture. +

+

+Author:
+Cyril 'Hulud' Corvazier , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 62 of file coarse_mesh_build.h.


Member Typedef Documentation

+

+ + + + +
+ + +
typedef std::map<std::string, CBitmapDesc> NL3D::CCoarseMeshBuild::MapBitmapDesc [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 132 of file coarse_mesh_build.h. +

+Referenced by build.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool NL3D::CCoarseMeshBuild::build const std::vector< CCoarseMeshDesc > &   coarseMeshes,
NLMISC::CBitmap  bitmap,
CStats  stats,
float   mulArea
+
+ + + + + +
+   + + +

+The build method. +

+This method will build a single texture and adjuste the UV texture coordinates of each mesh geom.

+Parameters:
+ + + + + +
coarseMeshes  +is a vector of coarse mesh to compute.
bitmap  +will receive the final bitmap.
start  +will receive various statistics about the build process.
mulArea  +is the mul factor used to increase to theorical global texture size.
+
+

+Definition at line 39 of file coarse_mesh_build.cpp. +

+References buildBitmap, MapBitmapDesc, and remapCoordinates.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool NL3D::CCoarseMeshBuild::buildBitmap const std::vector< CCoarseMeshDesc > &   coarseMeshes,
NLMISC::CBitmap  bitmap,
CStats  stats,
MapBitmapDesc  desc,
float   mulArea
[private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 70 of file coarse_mesh_build.cpp. +

+References expand, NLMISC::getPowerOf2, height, nlassert, NLMISC::raiseToNextPowerOf2, v, and width. +

+Referenced by build.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CCoarseMeshBuild::expand NLMISC::CBitmap  bitmap [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 319 of file coarse_mesh_build.cpp. +

+References height, and width. +

+Referenced by buildBitmap.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NL3D::CCoarseMeshBuild::remapCoordinates const std::vector< CCoarseMeshDesc > &   coarseMeshes,
const MapBitmapDesc  desc
[private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 382 of file coarse_mesh_build.cpp. +

+References index, and nlassert. +

+Referenced by build.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1