From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/class_NL3D__CTextureNear.html | 455 +++++++++++++++++++++++++ 1 file changed, 455 insertions(+) create mode 100644 docs/doxygen/nel/class_NL3D__CTextureNear.html (limited to 'docs/doxygen/nel/class_NL3D__CTextureNear.html') diff --git a/docs/doxygen/nel/class_NL3D__CTextureNear.html b/docs/doxygen/nel/class_NL3D__CTextureNear.html new file mode 100644 index 00000000..75cdbab3 --- /dev/null +++ b/docs/doxygen/nel/class_NL3D__CTextureNear.html @@ -0,0 +1,455 @@ + + + + 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::CTextureNear Class Reference

A texture container for lot of little lightmap. +More... +

+#include <texture_near.h> +

+Inheritance diagram for NL3D::CTextureNear

Inheritance graph
+ + + + + + + +
[legend]
Collaboration diagram for NL3D::CTextureNear:

Collaboration graph
+ + + + + + + + + + +
[legend]
List of all members. + + + + + + + + + + + + + + + + + + + +

Public Methods

 CTextureNear (sint size)
 Constructor. More...

void doGenerate ()
 Since texture is always in memory... More...

sint getNbAvailableTiles ()
uint getTileAndFillRect (CRGBA map[NL_TILE_LIGHTMAP_SIZE*NL_TILE_LIGHTMAP_SIZE])
 return the id of the tile, locally in the texture. More...

void releaseTile (uint id)
 Set a tile lightmap as free for use. It is an error to free a not allocated tile. (nlassert!!). More...

 CTextureNear ()
 TextureNear are system. Do not need to serialize them... More...

virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 NLMISC_DECLARE_CLASS (CTextureNear)

Private Attributes

std::vector<uint_FreeTiles
 The list of available tiles. More...

std::vector<bool> _AvailableTiles
 For check, Availability of tiles. More...

+

Detailed Description

+A texture container for lot of little lightmap. +

+

+Author(s):
+ Lionel Berenguier , Nevrax France
+Date:
+ 2000
+

+ +

+Definition at line 51 of file texture_near.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + +
+NL3D::CTextureNear::CTextureNear ( + +sint size ) +
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 35 of file texture_near.cpp.

+

+ + + + +
+ + + + + + +
+NL3D::CTextureNear::CTextureNear ( + +) [inline] +
+
+ + + + + +
+   + + +

+TextureNear are system. Do not need to serialize them... +

+ +

+Definition at line 82 of file texture_near.h.

+


Member Function Documentation

+

+ + + + +
+ + + + + + +
+NL3D::CTextureNear::NLMISC_DECLARE_CLASS ( + +CTextureNear ) +
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + +
+void NL3D::CTextureNear::doGenerate ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+Since texture is always in memory... +

+ +

+Reimplemented from NL3D::ITexture. +

+Definition at line 59 of file texture_near.h.

+

+ + + + +
+ + + + + + +
+sint NL3D::CTextureNear::getNbAvailableTiles ( + +) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 63 of file texture_near.cpp.

+

+ + + + +
+ + + + + + +
+uint NL3D::CTextureNear::getTileAndFillRect ( + +CRGBA map[NL_TILE_LIGHTMAP_SIZE *NL_TILE_LIGHTMAP_SIZE] ) +
+
+ + + + + +
+   + + +

+return the id of the tile, locally in the texture. +

+nlassert() if no free tiles (use getNbAvailableTiles()). Tile coordinate in the texture can be get with: s= id% nbTilesByLine; t= id/ nbTilesByLine; where nbTilesByLine== sizeOfTextureNear/NL_TILE_LIGHTMAP_SIZE. The texture is invalidate (on this part only...) +

+Definition at line 68 of file texture_near.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CTextureNear::releaseTile ( + +uint id ) +
+
+ + + + + +
+   + + +

+Set a tile lightmap as free for use. It is an error to free a not allocated tile. (nlassert!!). +

+ +

+Definition at line 96 of file texture_near.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CTextureNear::serial ( + +NLMISC::IStream & f ) throw (NLMISC::EStream) [inline, virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NLMISC::IStreamable. +

+Definition at line 83 of file texture_near.h.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+std::vector< bool > NL3D::CTextureNear::_AvailableTiles [private] +
+
+ + + + + +
+   + + +

+For check, Availability of tiles. +

+ +

+Definition at line 90 of file texture_near.h.

+

+ + + + +
+ + + + + +
+std::vector< uint > NL3D::CTextureNear::_FreeTiles [private] +
+
+ + + + + +
+   + + +

+The list of available tiles. +

+ +

+Definition at line 88 of file texture_near.h.

+


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