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

This is a list of banks of colorisable textures. +More... +

+#include <hls_texture_manager.h> +

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

Public Methods

 CHLSTextureManager ()
 Constructor. More...

 ~CHLSTextureManager ()
void reset ()
void addBank (CHLSTextureBank *bank)
 Add a compiled bank. Ptr is owned and deleted by the manager. More...

sint findTexture (const std::string &name) const
 search a texture name in the banks (case insensitive), and return its id. More...

bool buildTexture (sint textId, NLMISC::CBitmap &out) const
 build the colored version bitmap of a texture. More...

uint getNumTextures () const
 Texture name access. More...

const char * getTextureName (uint i) const

Private Attributes

std::vector< CHLSTextureBank * > _Banks
std::vector< CHLSTextureBank::CTextureInstanceHandle_Instances
+


Detailed Description

+This is a list of banks of colorisable textures. +

+

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

+ +

+Definition at line 45 of file hls_texture_manager.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NL3D::CHLSTextureManager::CHLSTextureManager  
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 38 of file hls_texture_manager.cpp.

+

+ + + + +
+ + + + + + + + + +
NL3D::CHLSTextureManager::~CHLSTextureManager  
+
+ + + + + +
+   + + +

+ +

+Definition at line 43 of file hls_texture_manager.cpp. +

+References reset.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CHLSTextureManager::addBank CHLSTextureBank  bank
+
+ + + + + +
+   + + +

+Add a compiled bank. Ptr is owned and deleted by the manager. +

+ +

+Definition at line 63 of file hls_texture_manager.cpp. +

+References _Banks, and _Instances.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool NL3D::CHLSTextureManager::buildTexture sint   textId,
NLMISC::CBitmap  out
const
+
+ + + + + +
+   + + +

+build the colored version bitmap of a texture. +

+

+Parameters:
+ + +
textId  +a texture id returned by findTexture()
+
+Returns:
+false if not found
+

+Definition at line 101 of file hls_texture_manager.cpp. +

+References _Instances.

+

+ + + + +
+ + + + + + + + + + +
sint NL3D::CHLSTextureManager::findTexture const std::string &   name const
+
+ + + + + +
+   + + +

+search a texture name in the banks (case insensitive), and return its id. +

+

+Parameters:
+ + +
name  +a texture file name. NB: name is case-lowered first. (case-insensitive)
+
+Returns:
+-1 if not found, else return the id.
+

+Definition at line 77 of file hls_texture_manager.cpp. +

+References _Instances, and id.

+

+ + + + +
+ + + + + + + + + +
uint NL3D::CHLSTextureManager::getNumTextures   const [inline]
+
+ + + + + +
+   + + +

+Texture name access. +

+ +

+Definition at line 71 of file hls_texture_manager.h. +

+References _Instances.

+

+ + + + +
+ + + + + + + + + + +
const char * NL3D::CHLSTextureManager::getTextureName uint   i const
+
+ + + + + +
+   + + +

+ +

+Definition at line 116 of file hls_texture_manager.cpp. +

+References _Instances, and nlassert.

+

+ + + + +
+ + + + + + + + + +
void NL3D::CHLSTextureManager::reset  
+
+ + + + + +
+   + + +

+ +

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

+References _Banks, _Instances, and NLMISC::contReset. +

+Referenced by ~CHLSTextureManager.

+


Member Data Documentation

+

+ + + + +
+ + +
std::vector<CHLSTextureBank *> NL3D::CHLSTextureManager::_Banks [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 77 of file hls_texture_manager.h. +

+Referenced by addBank, and reset.

+

+ + + + +
+ + +
std::vector<CHLSTextureBank::CTextureInstanceHandle> NL3D::CHLSTextureManager::_Instances [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 80 of file hls_texture_manager.h. +

+Referenced by addBank, buildTexture, findTexture, getNumTextures, getTextureName, and reset.

+


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