aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/async__texture__manager_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/async__texture__manager_8h-source.html')
-rw-r--r--docs/doxygen/nel/async__texture__manager_8h-source.html282
1 files changed, 282 insertions, 0 deletions
diff --git a/docs/doxygen/nel/async__texture__manager_8h-source.html b/docs/doxygen/nel/async__texture__manager_8h-source.html
new file mode 100644
index 00000000..9ac79b92
--- /dev/null
+++ b/docs/doxygen/nel/async__texture__manager_8h-source.html
@@ -0,0 +1,282 @@
+<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
+<HTML>
+<HEAD>
+ <TITLE>nevrax.org : docs</TITLE>
+ <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css">
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
+</HEAD>
+<BODY MARGINHEIGHT="0" MARGINWIDTH="0">
+
+<!-- uplinks -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ </TR>
+</TABLE>
+
+<!-- banner Nevrax -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%>
+ <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR>
+</TABLE>
+
+<!-- main table -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+ <!------ Begin Box ------>
+ <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black>
+ <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF>
+ <TABLE cellspacing=0 cellpadding=1 border=0>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr>
+ </TABLE>
+ </TD></TR></TABLE></TD></TR></TABLE>
+ <!------ End Box ------>
+
+ </TD>
+ <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+<!-- title -->
+<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td>
+<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
+</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
+</td></tr></table>
+&nbsp;
+
+<!-- block -->
+<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD>
+ <TD><B>Documentation</B></TD>
+ <TD ALIGN=RIGHT>&nbsp;</td>
+</tr></table>
+<!-- Generated by Doxygen 1.2.14 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
+<hr><h1>async_texture_manager.h</h1><a href="async__texture__manager_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
+00007 <font class="comment">/* Copyright, 2000-2002 Nevrax Ltd.</font>
+00008 <font class="comment"> *</font>
+00009 <font class="comment"> * This file is part of NEVRAX NEL.</font>
+00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font>
+00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
+00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
+00013 <font class="comment"> * any later version.</font>
+00014 <font class="comment"></font>
+00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font>
+00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
+00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
+00018 <font class="comment"> * General Public License for more details.</font>
+00019 <font class="comment"></font>
+00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
+00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font>
+00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
+00023 <font class="comment"> * MA 02111-1307, USA.</font>
+00024 <font class="comment"> */</font>
+00025
+00026 <font class="preprocessor">#ifndef NL_ASYNC_TEXTURE_MANAGER_H</font>
+00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_ASYNC_TEXTURE_MANAGER_H</font>
+00028 <font class="preprocessor"></font>
+00029
+00030 <font class="preprocessor">#include "<a class="code" href="types__nl_8h.html">nel/misc/types_nl.h</a>"</font>
+00031 <font class="preprocessor">#include "<a class="code" href="texture__file_8h.html">3d/texture_file.h</a>"</font>
+00032 <font class="preprocessor">#include "<a class="code" href="hls__texture__manager_8h.html">3d/hls_texture_manager.h</a>"</font>
+00033 <font class="preprocessor">#include &lt;vector&gt;</font>
+00034 <font class="preprocessor">#include "<a class="code" href="bitmap_8h.html">nel/misc/bitmap.h</a>"</font>
+00035
+00036
+00037 <font class="keyword">namespace </font>NL3D
+00038 {
+00039
+00040
+00041 <font class="keyword">class </font>CMeshBaseInstance;
+00042
+00043
+00044 <font class="comment">// ***************************************************************************</font>
+<a name="l00053"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html">00053</a> <font class="comment"></font><font class="keyword">class </font>CAsyncTextureManager
+00054 {
+00055 <font class="keyword">public</font>:
+<a name="l00057"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#m0">00057</a> CHLSTextureManager <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#m0">HLSManager</a>;
+00058
+00059 <font class="keyword">public</font>:
+00060
+00062 <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a0">CAsyncTextureManager</a>();
+00063 <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a1">~CAsyncTextureManager</a>();
+00064
+00072 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a2">setupLod</a>(uint baseLevel, uint maxLevel);
+00074 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a3">setupMaxUploadPerFrame</a>(uint maxup);
+00076 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a4">setupMaxHLSColoringPerFrame</a>(uint maxCol);
+00078 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a5">setupMaxTotalTextureSize</a>(uint maxText);
+00079
+00091 uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a6">addTextureRef</a>(<font class="keyword">const</font> std::string &amp;textName, CMeshBaseInstance *instance);
+00092
+00094 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a7">releaseTexture</a>(uint <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, CMeshBaseInstance *instance);
+00095
+00097 <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a8">isTextureUpLoaded</a>(uint <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>) <font class="keyword">const</font>;
+00098
+00103 <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CBitmap.html">NLMISC::CBitmap</a> *<a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a9">getCoarseBitmap</a>(uint <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>) <font class="keyword">const</font>;
+00104
+00105
+00109 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a10">update</a>(IDriver *pDriver);
+00110
+00111
+<a name="l00113"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a11">00113</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a11">getTotalTextureSizeAsked</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o5">_TotalTextureSizeAsked</a>;}
+<a name="l00115"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a12">00115</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#a12">getLastTextureSizeGot</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o6">_LastTextureSizeGot</a>;}
+00116
+00117
+00118 <font class="comment">// ***************************************************************************</font>
+00119 <font class="keyword">private</font>:
+00120
+<a name="l00121"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#u0">00121</a> <font class="keyword">typedef</font> std::map&lt;std::string, uint&gt; <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#u0">TTextureEntryMap</a>;
+<a name="l00122"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#u1">00122</a> <font class="keyword">typedef</font> TTextureEntryMap::iterator <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#u1">ItTextureEntryMap</a>;
+00123
+00124
+00125 <font class="comment">// A base texture uploadable.</font>
+<a name="l00126"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureBase.html">00126</a> <font class="keyword">class </font>CTextureBase
+00127 {
+00128 <font class="keyword">public</font>:
+00129 <font class="comment">// the texture currently loaded / uploaded.</font>
+<a name="l00130"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureBase.html#m0">00130</a> <a class="code" href="classNLMISC_1_1CSmartPtr.html">NLMISC::CSmartPtr&lt;CTextureFile&gt;</a> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureBase.html#m0">Texture</a>;
+00131
+<a name="l00132"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureBase.html#a0">00132</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureBase.html#a0">isTextureEntry</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureBase.html#n0">IsTextureEntry</a>;}
+00133 <font class="keyword">protected</font>:
+<a name="l00134"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureBase.html#n0">00134</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureBase.html#n0">IsTextureEntry</a>;
+00135 };
+00136
+00137
+00138 <font class="keyword">class </font>CTextureEntry;
+00139
+00140
+00141 <font class="comment">// A Lod version of a texture entry.</font>
+<a name="l00142"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html">00142</a> <font class="keyword">class </font>CTextureLod : <font class="keyword">public</font> CTextureBase
+00143 {
+00144 <font class="keyword">public</font>:
+00145 <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#a0">CTextureLod</a>();
+00146
+00147 <font class="comment">// A Ptr on the real texture used.</font>
+<a name="l00148"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m0">00148</a> CTextureEntry *<a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m0">TextureEntry</a>;
+00149 <font class="comment">// Weight of the lod, according to distance and level.</font>
+<a name="l00150"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m1">00150</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m1">Weight</a>;
+00151 <font class="comment">// the level of this Lod. 0 means full original texture resolution.</font>
+<a name="l00152"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m2">00152</a> uint8 <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m2">Level</a>;
+00153 <font class="comment">// True if loading has ended</font>
+<a name="l00154"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m3">00154</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m3">Loaded</a>;
+00155 <font class="comment">// True if TextureEntry has at least this lod in VRAM</font>
+<a name="l00156"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m4">00156</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m4">UpLoaded</a>;
+00157 <font class="comment">// The size that this lod takes in VRAM (minus TextureEntry-&gt;BaseSize)</font>
+<a name="l00158"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m5">00158</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureLod.html#m5">ExtraSize</a>;
+00159 };
+00160
+00161
+<a name="l00162"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CPredTextLod.html">00162</a> <font class="keyword">class </font>CPredTextLod
+00163 {
+00164 <font class="keyword">public</font>:
+<a name="l00165"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CPredTextLod.html#a0">00165</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CPredTextLod.html#a0">operator()</a>(CTextureLod *lod0, CTextureLod *lod1)
+00166 {
+00167 <font class="keywordflow">return</font> lod0-&gt;Weight&lt;lod1-&gt;Weight;
+00168 }
+00169 };
+00170
+00171
+00172 <font class="comment">// A texture entry</font>
+<a name="l00173"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html">00173</a> <font class="keyword">class </font>CTextureEntry : <font class="keyword">public</font> CTextureBase
+00174 {
+00175 <font class="keyword">public</font>:
+00176 <font class="comment">// The it in the map.</font>
+<a name="l00177"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m0">00177</a> ItTextureEntryMap <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m0">ItMap</a>;
+00178 <font class="comment">// true if async loading has ended</font>
+<a name="l00179"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m1">00179</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m1">Loaded</a>;
+00180 <font class="comment">// true if the texture is loaded in the driver (at least the coarsest level).</font>
+<a name="l00181"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m2">00181</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m2">UpLoaded</a>;
+00182 <font class="comment">// true if first loading ended, and if DXTC with mipmap</font>
+<a name="l00183"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m3">00183</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m3">CanHaveLOD</a>;
+00184 <font class="comment">// true if this texture must be builded from the HLSManager (at first load)</font>
+<a name="l00185"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m4">00185</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m4">BuildFromHLSManager</a>;
+00186 <font class="comment">// if BuildFromHLSManager, gives the text id in the manager</font>
+<a name="l00187"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m5">00187</a> sint <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m5">HLSManagerTextId</a>;
+00188
+00189 <font class="comment">// Base Size of the texture, without HDLod</font>
+<a name="l00190"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m6">00190</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m6">BaseSize</a>;
+00191 <font class="comment">// list of instances currently using this texture.</font>
+<a name="l00192"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m7">00192</a> std::vector&lt;CMeshBaseInstance*&gt; <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m7">Instances</a>;
+00193 <font class="comment">// min distance of all Instances.</font>
+<a name="l00194"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m8">00194</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m8">MinDistance</a>;
+00195 <font class="comment">// with all mipmaps loaded, what place this takes.</font>
+<a name="l00196"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m9">00196</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m9">TotalTextureSizeAsked</a>;
+00197
+00198 <font class="comment">// The High Def Lod.</font>
+<a name="l00199"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m10">00199</a> CTextureLod <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m10">HDLod</a>;
+00200
+00201 <font class="comment">// The Coarse Bitmap stored in RAM for CLod</font>
+<a name="l00202"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m11">00202</a> <a class="code" href="classNLMISC_1_1CBitmap.html">NLMISC::CBitmap</a> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#m11">CoarseBitmap</a>;
+00203
+00204 <font class="keyword">public</font>:
+00205 <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#a0">CTextureEntry</a>();
+00206
+00207 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager_1_1CTextureEntry.html#a1">createCoarseBitmap</a>();
+00208 };
+00209
+00210
+00211 <font class="keyword">private</font>:
+<a name="l00212"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o1">00212</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o0">_BaseLodLevel</a>, <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o1">_MaxLodLevel</a>;
+<a name="l00213"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o2">00213</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o2">_MaxUploadPerFrame</a>;
+<a name="l00214"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o3">00214</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o3">_MaxHLSColoringPerFrame</a>;
+<a name="l00215"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o4">00215</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o4">_MaxTotalTextureSize</a>;
+<a name="l00216"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o5">00216</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o5">_TotalTextureSizeAsked</a>;
+<a name="l00217"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o6">00217</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o6">_LastTextureSizeGot</a>;
+00218
+00219 <font class="comment">// Textures Entries.</font>
+<a name="l00220"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o7">00220</a> std::vector&lt;CTextureEntry*&gt; <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o7">_TextureEntries</a>;
+<a name="l00221"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o8">00221</a> std::vector&lt;uint&gt; <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o8">_FreeTextureIds</a>;
+<a name="l00222"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o9">00222</a> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#u0">TTextureEntryMap</a> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o9">_TextureEntryMap</a>;
+<a name="l00223"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o10">00223</a> std::vector&lt;uint&gt; <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o10">_WaitingTextures</a>;
+00224
+00225 <font class="comment">// Upload of texture piece by piece.</font>
+<a name="l00226"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o11">00226</a> CTextureBase *<a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o11">_CurrentUploadTexture</a>;
+<a name="l00227"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o12">00227</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o12">_CurrentUploadTextureMipMap</a>;
+<a name="l00228"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o13">00228</a> uint <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o13">_CurrentUploadTextureLine</a>;
+00229
+00230 <font class="comment">// The current HDLod async loaded (NB: loaded / or upLoaded)</font>
+<a name="l00231"></a><a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o14">00231</a> CTextureLod *<a class="code" href="classNL3D_1_1CAsyncTextureManager.html#o14">_CurrentTextureLodLoaded</a>;
+00232
+00233 <font class="keyword">private</font>:
+00234
+00235 <font class="keyword">static</font> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#f0">validDXTCMipMap</a>(ITexture *pText);
+00236
+00237 <font class="comment">// delete the texture and all references in map/array, instance refcount etc...</font>
+00238 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#c0">deleteTexture</a>(uint <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>);
+00239
+00240 <font class="comment">// Fill _CurrentUploadTexture with next texture to upload, or set NULL if none</font>
+00241 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#c1">getNextTextureToUpLoad</a>(uint &amp;nTotalColored, IDriver *pDriver);
+00242 <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#c2">uploadTexturePart</a>(ITexture *pText, IDriver *pDriver, uint &amp;nTotalUpload);
+00243
+00244 <font class="comment">// update list of texture lods.</font>
+00245 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAsyncTextureManager.html#c3">updateTextureLodSystem</a>(IDriver *pDriver);
+00246
+00247 };
+00248
+00249
+00250 } <font class="comment">// NL3D</font>
+00251
+00252
+00253 <font class="preprocessor">#endif // NL_ASYNC_TEXTURE_MANAGER_H</font>
+00254 <font class="preprocessor"></font>
+00255 <font class="comment">/* End of async_texture_manager.h */</font>
+</pre></div>
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
+</TD>
+<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
+</TR>
+</TABLE>
+</BODY>
+</HTML>