#include <hls_texture_bank.h>
Public Member Functions | |
| void | buildAsKey (const char *ptr) |
| void | buildColorVersion (NLMISC::CBitmap &out) |
| Build a colored version of this texture. | |
| const char * | getName () const |
| bool | operator< (const CTextureInstance &t) const |
| bool | operator<= (const CTextureInstance &t) const |
| bool | sameName (const char *str) |
| void | serial (NLMISC::IStream &f) |
Private Attributes | |
| uint32 | _ColorTextureId |
| CHLSColorTexture * | _ColorTexturePtr |
| uint32 | _DataIndex |
| uint8 * | _DataPtr |
Friends | |
| class | CHLSTextureBank |
|
|
Definition at line 70 of file hls_texture_bank.h. References _DataPtr, and uint8. Referenced by NL3D::CHLSTextureManager::findTexture().
|
|
|
Build a colored version of this texture.
Definition at line 185 of file hls_texture_bank.cpp. References _ColorTexturePtr, _DataPtr, NL3D::CHLSColorTexture::buildColorVersion(), and uint. Referenced by NL3D::CHLSTextureManager::buildTexture().
00186 {
00187 // get ptr to color deltas.
00188 uint nameSize= strlen((const char*)_DataPtr)+1;
00189 CHLSColorDelta *colDeltas= (CHLSColorDelta*)(_DataPtr + nameSize);
00190
00191 // build the texture.
00192 _ColorTexturePtr->buildColorVersion(colDeltas, out);
00193 }
|
|
|
Definition at line 75 of file hls_texture_bank.h. References _DataPtr.
00075 {return (const char*)_DataPtr;}
|
|
|
Definition at line 164 of file hls_texture_bank.cpp.
00165 {
00166 // compare the 2 strings.
00167 return (strcmp((const char*)_DataPtr, (const char*)t._DataPtr)<0);
00168 }
|
|
|
Definition at line 170 of file hls_texture_bank.cpp.
00171 {
00172 // compare the 2 strings.
00173 return (strcmp((const char*)_DataPtr, (const char*)t._DataPtr)<=0);
00174 }
|
|
|
Definition at line 178 of file hls_texture_bank.cpp. References _DataPtr. Referenced by NL3D::CHLSTextureManager::findTexture().
00179 {
00180 return (strcmp((const char*)_DataPtr, str)==0);
00181 }
|
|
|
Definition at line 154 of file hls_texture_bank.cpp. References _ColorTextureId, _DataIndex, NLMISC::IStream::serial(), NLMISC::IStream::serialVersion(), and sint.
00155 {
00156 sint ver= f.serialVersion(0);
00157
00158 f.serial(_DataIndex);
00159 f.serial(_ColorTextureId);
00160 }
|
|
|
Definition at line 56 of file hls_texture_bank.h. |
|
|
Definition at line 60 of file hls_texture_bank.h. Referenced by NL3D::CHLSTextureBank::addTextureInstance(), NL3D::CHLSTextureBank::compilePtrs(), and serial(). |
|
|
Definition at line 64 of file hls_texture_bank.h. Referenced by NL3D::CHLSTextureBank::addTextureInstance(), buildColorVersion(), and NL3D::CHLSTextureBank::compilePtrs(). |
|
|
Definition at line 58 of file hls_texture_bank.h. Referenced by NL3D::CHLSTextureBank::addTextureInstance(), NL3D::CHLSTextureBank::compilePtrs(), and serial(). |
|
|
Definition at line 62 of file hls_texture_bank.h. Referenced by NL3D::CHLSTextureBank::addTextureInstance(), buildAsKey(), buildColorVersion(), NL3D::CHLSTextureBank::compilePtrs(), getName(), operator<(), operator<=(), and sameName(). |
1.3.6