<ahref="a00593.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> </div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="preprocessor">#pragma once</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> </div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment">// Dependency:</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="preprocessor">#include "../glm.hpp"</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="preprocessor">#include "../gtc/integer.hpp"</span></div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="preprocessor">#include "../gtx/component_wise.hpp"</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> </div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#ifndef GLM_ENABLE_EXPERIMENTAL</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="preprocessor"># error "GLM: GLM_GTX_texture is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."</span></div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> </div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="preprocessor">#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)</span></div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="preprocessor"># pragma message("GLM: GLM_GTX_texture extension included")</span></div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> </div><divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="keyword">namespace </span><aclass="code"href="a00792.html">glm</a></div><divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> {</div><divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> </div><divclass="line"><aname="l00039"></a><spanclass="lineno"> 39</span> <spanclass="keyword">template</span><length_t L, <spanclass="keyword">typename</span> T, qualifier Q></div><divclass="line"><aname="l00040"></a><spanclass="lineno"> 40</span>  T <aclass="code"href="a00778.html#gaa8c377f4e63486db4fa872d77880da73">levels</a>(vec<L, T, Q><spanclass="keyword">const</span>& Extent);</div><divclass="line"><aname="l00041"></a><spanclass="lineno"> 41</span> </div><divclass="line"><aname="l00043"></a><spanclass="lineno"> 43</span> }<spanclass="comment">// namespace glm</span></div><divclass="line"><aname="l00044"></a><spanclass="lineno"> 44</span> </div><divclass="line"><aname="l00045"></a><spanclass="lineno"> 45</span> <spanclass="preprocessor">#include "texture.inl"</span></div><divclass="line"><aname="l00046"></a><spanclass="lineno"> 46</span> </div><divclass="ttc"id="a00778_html_gaa8c377f4e63486db4fa872d77880da73"><divclass="ttname"><ahref="a00778.html#gaa8c377f4e63486db4fa872d77880da73">glm::levels</a></div><divclass="ttdeci">T levels(vec< L, T, Q > const &Extent)</div><divclass="ttdoc">Compute the number of mipmaps levels necessary to create a mipmap complete texture. </div></div>