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/classNL3D_1_1CHLSTextureBank.html | 502 +++++++++++++++++++++ 1 file changed, 502 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CHLSTextureBank.html (limited to 'docs/doxygen/nel/classNL3D_1_1CHLSTextureBank.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CHLSTextureBank.html b/docs/doxygen/nel/classNL3D_1_1CHLSTextureBank.html new file mode 100644 index 00000000..31879088 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CHLSTextureBank.html @@ -0,0 +1,502 @@ + + + + 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::CHLSTextureBank Class Reference

A bank of HLS colorisable textures. +More... +

+#include <hls_texture_bank.h> +

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

Public Methods

 CHLSTextureBank ()
 Constructor. More...

Build
void reset ()
 clear the bank. More...

uint32 addColorTexture (const CHLSColorTexture &tex)
 Add a colorisable texture to the bank. More...

void addTextureInstance (const std::string &name, uint32 colorTextureId, const std::vector< CHLSColorDelta > &cols)
 Add an instance texture (ie colorised) to the bank. More...

void compile ()
 compile the bank. More...

void serial (NLMISC::IStream &f)
 serial. if loading, ptrs are correclty setuped => no compile() needed. More...

Usage
void fillHandleArray (std::vector< CTextureInstanceHandle > &array)
 Append handle into the array (build of the manager). More...


Private Methods

void compilePtrs ()

Private Attributes

std::vector< CHLSColorTexture_ColorTextures
 Array of colorisable texture. More...

std::vector< uint8_TextureInstanceData
 Raw Array of Name+HLS color delta. More...

std::vector< CTextureInstance_TextureInstances
 Array of textureInstances. More...

+


Detailed Description

+A bank of HLS colorisable textures. +

+

+Author:
+Lionel Berenguier , Nevrax France
+Date:
+2002
+

+ +

+Definition at line 50 of file hls_texture_bank.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NL3D::CHLSTextureBank::CHLSTextureBank  
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 45 of file hls_texture_bank.cpp.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
uint32 NL3D::CHLSTextureBank::addColorTexture const CHLSColorTexture  tex
+
+ + + + + +
+   + + +

+Add a colorisable texture to the bank. +

+ +

+Definition at line 56 of file hls_texture_bank.cpp. +

+References _ColorTextures.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NL3D::CHLSTextureBank::addTextureInstance const std::string &   name,
uint32   colorTextureId,
const std::vector< CHLSColorDelta > &   cols
+
+ + + + + +
+   + + +

+Add an instance texture (ie colorised) to the bank. +

+

+Parameters:
+ + + + +
name  +name of the colored texture. NB: it is lowered in this method
colorTextureId  +index returned by addColorTexture()
cols  +must be same size of number of mask of the colorTextureId pointed (nlassert)
+
+

+ + + + +
+ + + + + + + + + +
void NL3D::CHLSTextureBank::compile  
+
+ + + + + +
+   + + +

+compile the bank. +

+ +

+Definition at line 107 of file hls_texture_bank.cpp. +

+References compilePtrs.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CHLSTextureBank::compilePtrs   [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 92 of file hls_texture_bank.cpp. +

+References _ColorTextures, _TextureInstanceData, _TextureInstances, and data. +

+Referenced by compile, and serial.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CHLSTextureBank::fillHandleArray std::vector< CTextureInstanceHandle > &   array
+
+ + + + + +
+   + + +

+Append handle into the array (build of the manager). +

+ +

+Definition at line 135 of file hls_texture_bank.cpp. +

+References _TextureInstances.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CHLSTextureBank::reset  
+
+ + + + + +
+   + + +

+clear the bank. +

+ +

+Definition at line 49 of file hls_texture_bank.cpp. +

+References _ColorTextures, _TextureInstanceData, _TextureInstances, and NLMISC::contReset.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CHLSTextureBank::serial NLMISC::IStream  f
+
+ + + + + +
+   + + +

+serial. if loading, ptrs are correclty setuped => no compile() needed. +

+ +

+Definition at line 117 of file hls_texture_bank.cpp. +

+References _ColorTextures, _TextureInstanceData, _TextureInstances, compilePtrs, NLMISC::IStream::isReading, NLMISC::IStream::serialCont, and NLMISC::IStream::serialVersion.

+


Member Data Documentation

+

+ + + + +
+ + +
std::vector<CHLSColorTexture> NL3D::CHLSTextureBank::_ColorTextures [private] +
+
+ + + + + +
+   + + +

+Array of colorisable texture. +

+ +

+Definition at line 147 of file hls_texture_bank.h. +

+Referenced by addColorTexture, compilePtrs, reset, and serial.

+

+ + + + +
+ + +
std::vector<uint8> NL3D::CHLSTextureBank::_TextureInstanceData [private] +
+
+ + + + + +
+   + + +

+Raw Array of Name+HLS color delta. +

+ +

+Definition at line 150 of file hls_texture_bank.h. +

+Referenced by compilePtrs, reset, and serial.

+

+ + + + +
+ + +
std::vector<CTextureInstance> NL3D::CHLSTextureBank::_TextureInstances [private] +
+
+ + + + + +
+   + + +

+Array of textureInstances. +

+ +

+Definition at line 153 of file hls_texture_bank.h. +

+Referenced by compilePtrs, fillHandleArray, reset, and serial.

+


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