Updated doxygen documentation
This commit is contained in:
@@ -2,22 +2,36 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
|
||||
<title>_detail.hpp Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!-- Generated by Doxygen 1.7.3 -->
|
||||
<div id="top">
|
||||
<div id="top"><!-- do not remove this div! -->
|
||||
|
||||
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectlogo"><img alt="Logo" src="logo-mini.png"></td>
|
||||
|
||||
<td id="projectlogo"><img alt="Logo" src="logo-mini.png"/></td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Generated by Doxygen 1.7.5 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
@@ -34,7 +48,7 @@
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<h1>_detail.hpp</h1> </div>
|
||||
<div class="title">_detail.hpp</div> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<a href="a00019.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
@@ -77,24 +91,24 @@
|
||||
<a name="l00038"></a>00038 <span class="keyword">namespace </span>glm{
|
||||
<a name="l00039"></a>00039 <span class="keyword">namespace </span>detail
|
||||
<a name="l00040"></a>00040 {
|
||||
<a name="l00041"></a>00041 <span class="keyword">class </span>thalf;
|
||||
<a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="a00158.html#ga09cefb48e7a630c2e3bfb3d23cd88e44" title="Type for half-precision floating-point numbers.">half</a>;
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="preprocessor">#if(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) // C99 detected, 64 bit types available</span>
|
||||
<a name="l00044"></a>00044 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00167.html#ga322a7d7d2c2c68994dc872a33de63c61" title="64bit signed integer. (from GLM_GTC_type_precision extension)">int64_t</a> sint64;
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00167.html#ga3999d3e7ff22025c16ddb601e14dfdee" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64_t</a> <a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00044"></a>00044 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="a00167.html#ga322a7d7d2c2c68994dc872a33de63c61" title="64 bit signed integer type.">int64_t</a> sint64;
|
||||
<a name="l00045"></a>00045 <span class="keyword">typedef</span> <a class="code" href="a00167.html#ga3999d3e7ff22025c16ddb601e14dfdee" title="64 bit unsigned integer type.">uint64_t</a> uint64;
|
||||
<a name="l00046"></a>00046 <span class="preprocessor">#elif(GLM_COMPILER & GLM_COMPILER_VC)</span>
|
||||
<a name="l00047"></a>00047 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">signed</span> __int64 sint64;
|
||||
<a name="l00048"></a>00048 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> __int64 <a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00048"></a>00048 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> __int64 uint64;
|
||||
<a name="l00049"></a>00049 <span class="preprocessor">#elif(GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_LLVM_GCC | GLM_COMPILER_CLANG))</span>
|
||||
<a name="l00050"></a>00050 <span class="preprocessor"></span> __extension__ <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> sint64;
|
||||
<a name="l00051"></a>00051 __extension__ <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00051"></a>00051 __extension__ <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> uint64;
|
||||
<a name="l00052"></a>00052 <span class="preprocessor">#elif(GLM_COMPILER & GLM_COMPILER_BC)</span>
|
||||
<a name="l00053"></a>00053 <span class="preprocessor"></span> <span class="keyword">typedef</span> Int64 sint64;
|
||||
<a name="l00054"></a>00054 <span class="keyword">typedef</span> Uint64 <a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00054"></a>00054 <span class="keyword">typedef</span> Uint64 uint64;
|
||||
<a name="l00055"></a>00055 <span class="preprocessor">#else//unknown compiler</span>
|
||||
<a name="l00056"></a>00056 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> sint64;
|
||||
<a name="l00057"></a>00057 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00058"></a><a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c">00058</a> <span class="preprocessor">#endif//GLM_COMPILER</span>
|
||||
<a name="l00057"></a>00057 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> uint64;
|
||||
<a name="l00058"></a>00058 <span class="preprocessor">#endif//GLM_COMPILER</span>
|
||||
<a name="l00059"></a>00059 <span class="preprocessor"></span>
|
||||
<a name="l00060"></a>00060 <span class="keyword">template</span><<span class="keywordtype">bool</span> C>
|
||||
<a name="l00061"></a>00061 <span class="keyword">struct </span>If
|
||||
@@ -197,12 +211,12 @@
|
||||
<a name="l00158"></a>00158 f(f)
|
||||
<a name="l00159"></a>00159 {}
|
||||
<a name="l00160"></a>00160
|
||||
<a name="l00161"></a>00161 GLM_FUNC_QUALIFIER uif64(<a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a> i) :
|
||||
<a name="l00161"></a>00161 GLM_FUNC_QUALIFIER uif64(uint64 i) :
|
||||
<a name="l00162"></a>00162 i(i)
|
||||
<a name="l00163"></a>00163 {}
|
||||
<a name="l00164"></a>00164
|
||||
<a name="l00165"></a>00165 <span class="keywordtype">double</span> f;
|
||||
<a name="l00166"></a>00166 <a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a> i;
|
||||
<a name="l00166"></a>00166 uint64 i;
|
||||
<a name="l00167"></a>00167 };
|
||||
<a name="l00168"></a>00168
|
||||
<a name="l00169"></a>00169 <span class="keyword">typedef</span> uif32 uif;
|
||||
@@ -278,223 +292,233 @@
|
||||
<a name="l00242"></a>00242 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00243"></a>00243 <span class="preprocessor"> }</span>
|
||||
<a name="l00244"></a>00244 <span class="preprocessor"></span>
|
||||
<a name="l00246"></a>00246 <span class="comment">// bool</span>
|
||||
<a name="l00247"></a>00247
|
||||
<a name="l00248"></a>00248 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00249"></a>00249 <span class="keyword">struct </span>is_bool
|
||||
<a name="l00250"></a>00250 {
|
||||
<a name="l00251"></a>00251 <span class="keyword">enum</span> is_bool_enum
|
||||
<a name="l00252"></a>00252 {
|
||||
<a name="l00253"></a>00253 _YES = 0,
|
||||
<a name="l00254"></a>00254 _NO = 1
|
||||
<a name="l00255"></a>00255 };
|
||||
<a name="l00256"></a>00256 };
|
||||
<a name="l00257"></a>00257
|
||||
<a name="l00258"></a>00258 <span class="keyword">template</span> <>
|
||||
<a name="l00259"></a>00259 <span class="keyword">struct </span>is_bool<bool>
|
||||
<a name="l00260"></a>00260 {
|
||||
<a name="l00261"></a>00261 <span class="keyword">enum</span> is_bool_enum
|
||||
<a name="l00262"></a>00262 {
|
||||
<a name="l00263"></a>00263 _YES = 1,
|
||||
<a name="l00264"></a>00264 _NO = 0
|
||||
<a name="l00265"></a>00265 };
|
||||
<a name="l00266"></a>00266 };
|
||||
<a name="l00267"></a>00267
|
||||
<a name="l00269"></a>00269 <span class="comment">// vector</span>
|
||||
<a name="l00270"></a>00270
|
||||
<a name="l00271"></a>00271 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00272"></a>00272 <span class="keyword">struct </span>is_vector
|
||||
<a name="l00273"></a>00273 {
|
||||
<a name="l00274"></a>00274 <span class="keyword">enum</span> is_vector_enum
|
||||
<a name="l00275"></a>00275 {
|
||||
<a name="l00276"></a>00276 _YES = 0,
|
||||
<a name="l00277"></a>00277 _NO = 1
|
||||
<a name="l00278"></a>00278 };
|
||||
<a name="l00279"></a>00279 };
|
||||
<a name="l00280"></a>00280
|
||||
<a name="l00281"></a>00281 <span class="preprocessor"># define GLM_DETAIL_IS_VECTOR(TYPE) \</span>
|
||||
<a name="l00282"></a>00282 <span class="preprocessor"> template <typename T> \</span>
|
||||
<a name="l00283"></a>00283 <span class="preprocessor"> struct is_vector<TYPE<T> > \</span>
|
||||
<a name="l00284"></a>00284 <span class="preprocessor"> { \</span>
|
||||
<a name="l00285"></a>00285 <span class="preprocessor"> enum is_vector_enum \</span>
|
||||
<a name="l00286"></a>00286 <span class="preprocessor"> { \</span>
|
||||
<a name="l00287"></a>00287 <span class="preprocessor"> _YES = 1, \</span>
|
||||
<a name="l00288"></a>00288 <span class="preprocessor"> _NO = 0 \</span>
|
||||
<a name="l00289"></a>00289 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00290"></a>00290 <span class="preprocessor"> }</span>
|
||||
<a name="l00291"></a>00291 <span class="preprocessor"></span>
|
||||
<a name="l00293"></a>00293 <span class="comment">// matrix</span>
|
||||
<a name="l00294"></a>00294
|
||||
<a name="l00295"></a>00295 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00296"></a>00296 <span class="keyword">struct </span>is_matrix
|
||||
<a name="l00297"></a>00297 {
|
||||
<a name="l00298"></a>00298 <span class="keyword">enum</span> is_matrix_enum
|
||||
<a name="l00299"></a>00299 {
|
||||
<a name="l00300"></a>00300 _YES = 0,
|
||||
<a name="l00301"></a>00301 _NO = 1
|
||||
<a name="l00302"></a>00302 };
|
||||
<a name="l00303"></a>00303 };
|
||||
<a name="l00304"></a>00304
|
||||
<a name="l00305"></a>00305 <span class="preprocessor">#define GLM_DETAIL_IS_MATRIX(T) \</span>
|
||||
<a name="l00306"></a>00306 <span class="preprocessor"> template <> \</span>
|
||||
<a name="l00307"></a>00307 <span class="preprocessor"> struct is_matrix \</span>
|
||||
<a name="l00308"></a>00308 <span class="preprocessor"> { \</span>
|
||||
<a name="l00309"></a>00309 <span class="preprocessor"> enum is_matrix_enum \</span>
|
||||
<a name="l00310"></a>00310 <span class="preprocessor"> { \</span>
|
||||
<a name="l00311"></a>00311 <span class="preprocessor"> _YES = 1, \</span>
|
||||
<a name="l00312"></a>00312 <span class="preprocessor"> _NO = 0 \</span>
|
||||
<a name="l00313"></a>00313 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00314"></a>00314 <span class="preprocessor"> }</span>
|
||||
<a name="l00315"></a>00315 <span class="preprocessor"></span>
|
||||
<a name="l00317"></a>00317 <span class="comment">// type</span>
|
||||
<a name="l00318"></a>00318
|
||||
<a name="l00319"></a>00319 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00320"></a>00320 <span class="keyword">struct </span>type
|
||||
<a name="l00321"></a>00321 {
|
||||
<a name="l00322"></a>00322 <span class="keyword">enum</span> type_enum
|
||||
<a name="l00323"></a>00323 {
|
||||
<a name="l00324"></a>00324 is_float = is_float<T>::_YES,
|
||||
<a name="l00325"></a>00325 is_int = is_int<T>::_YES,
|
||||
<a name="l00326"></a>00326 is_uint = is_uint<T>::_YES,
|
||||
<a name="l00327"></a>00327 is_bool = is_bool<T>::_YES
|
||||
<a name="l00328"></a>00328 };
|
||||
<a name="l00329"></a>00329 };
|
||||
<a name="l00330"></a>00330
|
||||
<a name="l00332"></a>00332 <span class="comment">// type</span>
|
||||
<a name="l00333"></a>00333
|
||||
<a name="l00334"></a>00334 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">char</span> <a class="code" href="a00167.html#ga41c6189f6485c2825d60fdc835b3a2b0" title="8bit signed integer. (from GLM_GTC_type_precision extension)">int8</a>;
|
||||
<a name="l00335"></a><a class="code" href="a00167.html#ga41c6189f6485c2825d60fdc835b3a2b0">00335</a> <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">short</span> <a class="code" href="a00167.html#ga302041c186d0d028bea31b711fe16759" title="16bit signed integer. (from GLM_GTC_type_precision extension)">int16</a>;
|
||||
<a name="l00336"></a><a class="code" href="a00167.html#ga302041c186d0d028bea31b711fe16759">00336</a> <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">int</span> <a class="code" href="a00167.html#ga8df669f4e7698dfe0c0354d92578d74f" title="32bit signed integer. (from GLM_GTC_type_precision extension)">int32</a>;
|
||||
<a name="l00337"></a><a class="code" href="a00167.html#ga8df669f4e7698dfe0c0354d92578d74f">00337</a> <span class="keyword">typedef</span> detail::sint64 <a class="code" href="a00167.html#gaff5189f97f9e842d9636a0f240001b2e" title="64bit signed integer. (from GLM_GTC_type_precision extension)">int64</a>;
|
||||
<a name="l00338"></a><a class="code" href="a00167.html#gaff5189f97f9e842d9636a0f240001b2e">00338</a>
|
||||
<a name="l00339"></a>00339 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="a00167.html#ga36475e31b1992cfde54c1a6f5a148865" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">uint8</a>;
|
||||
<a name="l00340"></a><a class="code" href="a00167.html#ga36475e31b1992cfde54c1a6f5a148865">00340</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="a00167.html#ga13471cbbe74e4303a57f3743d007b74d" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">uint16</a>;
|
||||
<a name="l00341"></a><a class="code" href="a00167.html#ga13471cbbe74e4303a57f3743d007b74d">00341</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="a00167.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">uint32</a>;
|
||||
<a name="l00342"></a><a class="code" href="a00167.html#ga5fa3ddcab56c789bc272ff5651faa12d">00342</a> <span class="keyword">typedef</span> <a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">detail::uint64</a> <a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>;
|
||||
<a name="l00245"></a>00245 GLM_DETAIL_IS_FLOAT(<a class="code" href="a00158.html#ga09cefb48e7a630c2e3bfb3d23cd88e44" title="Type for half-precision floating-point numbers.">detail::half</a>);
|
||||
<a name="l00246"></a>00246 GLM_DETAIL_IS_FLOAT(<span class="keywordtype">float</span>);
|
||||
<a name="l00247"></a>00247 GLM_DETAIL_IS_FLOAT(<span class="keywordtype">double</span>);
|
||||
<a name="l00248"></a>00248 GLM_DETAIL_IS_FLOAT(<span class="keywordtype">long</span> <span class="keywordtype">double</span>);
|
||||
<a name="l00249"></a>00249
|
||||
<a name="l00251"></a>00251 <span class="comment">// bool</span>
|
||||
<a name="l00252"></a>00252
|
||||
<a name="l00253"></a>00253 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00254"></a>00254 <span class="keyword">struct </span>is_bool
|
||||
<a name="l00255"></a>00255 {
|
||||
<a name="l00256"></a>00256 <span class="keyword">enum</span> is_bool_enum
|
||||
<a name="l00257"></a>00257 {
|
||||
<a name="l00258"></a>00258 _YES = 0,
|
||||
<a name="l00259"></a>00259 _NO = 1
|
||||
<a name="l00260"></a>00260 };
|
||||
<a name="l00261"></a>00261 };
|
||||
<a name="l00262"></a>00262
|
||||
<a name="l00263"></a>00263 <span class="keyword">template</span> <>
|
||||
<a name="l00264"></a>00264 <span class="keyword">struct </span>is_bool<bool>
|
||||
<a name="l00265"></a>00265 {
|
||||
<a name="l00266"></a>00266 <span class="keyword">enum</span> is_bool_enum
|
||||
<a name="l00267"></a>00267 {
|
||||
<a name="l00268"></a>00268 _YES = 1,
|
||||
<a name="l00269"></a>00269 _NO = 0
|
||||
<a name="l00270"></a>00270 };
|
||||
<a name="l00271"></a>00271 };
|
||||
<a name="l00272"></a>00272
|
||||
<a name="l00274"></a>00274 <span class="comment">// vector</span>
|
||||
<a name="l00275"></a>00275
|
||||
<a name="l00276"></a>00276 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00277"></a>00277 <span class="keyword">struct </span>is_vector
|
||||
<a name="l00278"></a>00278 {
|
||||
<a name="l00279"></a>00279 <span class="keyword">enum</span> is_vector_enum
|
||||
<a name="l00280"></a>00280 {
|
||||
<a name="l00281"></a>00281 _YES = 0,
|
||||
<a name="l00282"></a>00282 _NO = 1
|
||||
<a name="l00283"></a>00283 };
|
||||
<a name="l00284"></a>00284 };
|
||||
<a name="l00285"></a>00285
|
||||
<a name="l00286"></a>00286 <span class="preprocessor"># define GLM_DETAIL_IS_VECTOR(TYPE) \</span>
|
||||
<a name="l00287"></a>00287 <span class="preprocessor"> template <typename T> \</span>
|
||||
<a name="l00288"></a>00288 <span class="preprocessor"> struct is_vector<TYPE<T> > \</span>
|
||||
<a name="l00289"></a>00289 <span class="preprocessor"> { \</span>
|
||||
<a name="l00290"></a>00290 <span class="preprocessor"> enum is_vector_enum \</span>
|
||||
<a name="l00291"></a>00291 <span class="preprocessor"> { \</span>
|
||||
<a name="l00292"></a>00292 <span class="preprocessor"> _YES = 1, \</span>
|
||||
<a name="l00293"></a>00293 <span class="preprocessor"> _NO = 0 \</span>
|
||||
<a name="l00294"></a>00294 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00295"></a>00295 <span class="preprocessor"> }</span>
|
||||
<a name="l00296"></a>00296 <span class="preprocessor"></span>
|
||||
<a name="l00298"></a>00298 <span class="comment">// matrix</span>
|
||||
<a name="l00299"></a>00299
|
||||
<a name="l00300"></a>00300 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00301"></a>00301 <span class="keyword">struct </span>is_matrix
|
||||
<a name="l00302"></a>00302 {
|
||||
<a name="l00303"></a>00303 <span class="keyword">enum</span> is_matrix_enum
|
||||
<a name="l00304"></a>00304 {
|
||||
<a name="l00305"></a>00305 _YES = 0,
|
||||
<a name="l00306"></a>00306 _NO = 1
|
||||
<a name="l00307"></a>00307 };
|
||||
<a name="l00308"></a>00308 };
|
||||
<a name="l00309"></a>00309
|
||||
<a name="l00310"></a>00310 <span class="preprocessor">#define GLM_DETAIL_IS_MATRIX(T) \</span>
|
||||
<a name="l00311"></a>00311 <span class="preprocessor"> template <> \</span>
|
||||
<a name="l00312"></a>00312 <span class="preprocessor"> struct is_matrix \</span>
|
||||
<a name="l00313"></a>00313 <span class="preprocessor"> { \</span>
|
||||
<a name="l00314"></a>00314 <span class="preprocessor"> enum is_matrix_enum \</span>
|
||||
<a name="l00315"></a>00315 <span class="preprocessor"> { \</span>
|
||||
<a name="l00316"></a>00316 <span class="preprocessor"> _YES = 1, \</span>
|
||||
<a name="l00317"></a>00317 <span class="preprocessor"> _NO = 0 \</span>
|
||||
<a name="l00318"></a>00318 <span class="preprocessor"> }; \</span>
|
||||
<a name="l00319"></a>00319 <span class="preprocessor"> }</span>
|
||||
<a name="l00320"></a>00320 <span class="preprocessor"></span>
|
||||
<a name="l00322"></a>00322 <span class="comment">// type</span>
|
||||
<a name="l00323"></a>00323
|
||||
<a name="l00324"></a>00324 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00325"></a>00325 <span class="keyword">struct </span>type
|
||||
<a name="l00326"></a>00326 {
|
||||
<a name="l00327"></a>00327 <span class="keyword">enum</span> type_enum
|
||||
<a name="l00328"></a>00328 {
|
||||
<a name="l00329"></a>00329 is_float = is_float<T>::_YES,
|
||||
<a name="l00330"></a>00330 is_int = is_int<T>::_YES,
|
||||
<a name="l00331"></a>00331 is_uint = is_uint<T>::_YES,
|
||||
<a name="l00332"></a>00332 is_bool = is_bool<T>::_YES
|
||||
<a name="l00333"></a>00333 };
|
||||
<a name="l00334"></a>00334 };
|
||||
<a name="l00335"></a>00335
|
||||
<a name="l00337"></a>00337 <span class="comment">// type</span>
|
||||
<a name="l00338"></a>00338
|
||||
<a name="l00339"></a>00339 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">char</span> int8;
|
||||
<a name="l00340"></a>00340 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">short</span> int16;
|
||||
<a name="l00341"></a>00341 <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">int</span> int32;
|
||||
<a name="l00342"></a>00342 <span class="keyword">typedef</span> detail::sint64 int64;
|
||||
<a name="l00343"></a>00343
|
||||
<a name="l00344"></a>00344 <span class="keyword">typedef</span> <a class="code" href="a00005.html" title="16-bit floating point type.">detail::thalf</a> <a class="code" href="a00167.html#ga19287ee46bd37d1459731d7191bc2f66" title="Half-precision floating-point scalar. (from GLM_GTC_type_precision extension)">float16</a>;
|
||||
<a name="l00345"></a><a class="code" href="a00167.html#ga19287ee46bd37d1459731d7191bc2f66">00345</a> <span class="keyword">typedef</span> <span class="keywordtype">float</span> <a class="code" href="a00167.html#gad3c127f8bf8d7d4e738037c257abb5b1" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">float32</a>;
|
||||
<a name="l00346"></a><a class="code" href="a00167.html#gad3c127f8bf8d7d4e738037c257abb5b1">00346</a> <span class="keyword">typedef</span> <span class="keywordtype">double</span> <a class="code" href="a00167.html#gab5596d48586414c91ccb270962dc14d3" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">float64</a>;
|
||||
<a name="l00347"></a><a class="code" href="a00167.html#gab5596d48586414c91ccb270962dc14d3">00347</a>
|
||||
<a name="l00349"></a>00349 <span class="comment">// float_or_int_trait </span>
|
||||
<a name="l00350"></a>00350
|
||||
<a name="l00351"></a>00351 <span class="keyword">struct </span>float_or_int_value
|
||||
<a name="l00352"></a>00352 {
|
||||
<a name="l00353"></a>00353 <span class="keyword">enum</span>
|
||||
<a name="l00354"></a>00354 {
|
||||
<a name="l00355"></a>00355 ERROR,
|
||||
<a name="l00356"></a>00356 FLOAT,
|
||||
<a name="l00357"></a>00357 INT
|
||||
<a name="l00358"></a>00358 };
|
||||
<a name="l00359"></a>00359 };
|
||||
<a name="l00360"></a>00360
|
||||
<a name="l00361"></a>00361 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00362"></a>00362 <span class="keyword">struct </span>float_or_int_trait
|
||||
<a name="l00363"></a>00363 {
|
||||
<a name="l00364"></a>00364 <span class="keyword">enum</span>{ID = float_or_int_value::ERROR};
|
||||
<a name="l00365"></a>00365 };
|
||||
<a name="l00366"></a>00366
|
||||
<a name="l00367"></a>00367 <span class="keyword">template</span> <>
|
||||
<a name="l00368"></a>00368 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#ga41c6189f6485c2825d60fdc835b3a2b0" title="8bit signed integer. (from GLM_GTC_type_precision extension)">int8</a>>
|
||||
<a name="l00369"></a>00369 {
|
||||
<a name="l00370"></a>00370 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00371"></a>00371 };
|
||||
<a name="l00372"></a>00372
|
||||
<a name="l00373"></a>00373 <span class="keyword">template</span> <>
|
||||
<a name="l00374"></a>00374 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#ga302041c186d0d028bea31b711fe16759" title="16bit signed integer. (from GLM_GTC_type_precision extension)">int16</a>>
|
||||
<a name="l00375"></a>00375 {
|
||||
<a name="l00376"></a>00376 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00377"></a>00377 };
|
||||
<a name="l00378"></a>00378
|
||||
<a name="l00379"></a>00379 <span class="keyword">template</span> <>
|
||||
<a name="l00380"></a>00380 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#ga8df669f4e7698dfe0c0354d92578d74f" title="32bit signed integer. (from GLM_GTC_type_precision extension)">int32</a>>
|
||||
<a name="l00381"></a>00381 {
|
||||
<a name="l00382"></a>00382 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00383"></a>00383 };
|
||||
<a name="l00384"></a>00384
|
||||
<a name="l00385"></a>00385 <span class="keyword">template</span> <>
|
||||
<a name="l00386"></a>00386 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#gaff5189f97f9e842d9636a0f240001b2e" title="64bit signed integer. (from GLM_GTC_type_precision extension)">int64</a>>
|
||||
<a name="l00387"></a>00387 {
|
||||
<a name="l00388"></a>00388 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00389"></a>00389 };
|
||||
<a name="l00390"></a>00390
|
||||
<a name="l00391"></a>00391 <span class="keyword">template</span> <>
|
||||
<a name="l00392"></a>00392 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#ga36475e31b1992cfde54c1a6f5a148865" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">uint8</a>>
|
||||
<a name="l00393"></a>00393 {
|
||||
<a name="l00394"></a>00394 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00395"></a>00395 };
|
||||
<a name="l00396"></a>00396
|
||||
<a name="l00397"></a>00397 <span class="keyword">template</span> <>
|
||||
<a name="l00398"></a>00398 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#ga13471cbbe74e4303a57f3743d007b74d" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">uint16</a>>
|
||||
<a name="l00399"></a>00399 {
|
||||
<a name="l00400"></a>00400 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00401"></a>00401 };
|
||||
<a name="l00402"></a>00402
|
||||
<a name="l00403"></a>00403 <span class="keyword">template</span> <>
|
||||
<a name="l00404"></a>00404 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">uint32</a>>
|
||||
<a name="l00405"></a>00405 {
|
||||
<a name="l00406"></a>00406 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00407"></a>00407 };
|
||||
<a name="l00408"></a>00408
|
||||
<a name="l00409"></a>00409 <span class="keyword">template</span> <>
|
||||
<a name="l00410"></a>00410 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#gab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">uint64</a>>
|
||||
<a name="l00411"></a>00411 {
|
||||
<a name="l00412"></a>00412 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00413"></a>00413 };
|
||||
<a name="l00414"></a>00414
|
||||
<a name="l00415"></a>00415 <span class="keyword">template</span> <>
|
||||
<a name="l00416"></a>00416 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#ga19287ee46bd37d1459731d7191bc2f66" title="Half-precision floating-point scalar. (from GLM_GTC_type_precision extension)">float16</a>>
|
||||
<a name="l00417"></a>00417 {
|
||||
<a name="l00418"></a>00418 <span class="keyword">enum</span>{ID = float_or_int_value::FLOAT};
|
||||
<a name="l00419"></a>00419 };
|
||||
<a name="l00420"></a>00420
|
||||
<a name="l00421"></a>00421 <span class="keyword">template</span> <>
|
||||
<a name="l00422"></a>00422 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#gad3c127f8bf8d7d4e738037c257abb5b1" title="Single-precision floating-point scalar. (from GLM_GTC_type_precision extension)">float32</a>>
|
||||
<a name="l00423"></a>00423 {
|
||||
<a name="l00424"></a>00424 <span class="keyword">enum</span>{ID = float_or_int_value::FLOAT};
|
||||
<a name="l00425"></a>00425 };
|
||||
<a name="l00426"></a>00426
|
||||
<a name="l00427"></a>00427 <span class="keyword">template</span> <>
|
||||
<a name="l00428"></a>00428 <span class="keyword">struct </span>float_or_int_trait<<a class="code" href="a00167.html#gab5596d48586414c91ccb270962dc14d3" title="Double-precision floating-point scalar. (from GLM_GTC_type_precision extension)">float64</a>>
|
||||
<a name="l00429"></a>00429 {
|
||||
<a name="l00430"></a>00430 <span class="keyword">enum</span>{ID = float_or_int_value::FLOAT};
|
||||
<a name="l00431"></a>00431 };
|
||||
<a name="l00432"></a>00432
|
||||
<a name="l00433"></a>00433 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00434"></a>00434 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00435"></a>00435
|
||||
<a name="l00436"></a>00436 <span class="preprocessor">#if((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2005))</span>
|
||||
<a name="l00437"></a>00437 <span class="preprocessor"></span><span class="preprocessor"># define GLM_DEPRECATED __declspec(deprecated)</span>
|
||||
<a name="l00438"></a>00438 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGN(x) __declspec(align(x)) </span>
|
||||
<a name="l00439"></a>00439 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGNED_STRUCT(x) __declspec(align(x)) struct </span>
|
||||
<a name="l00440"></a>00440 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT __declspec(restrict)</span>
|
||||
<a name="l00441"></a>00441 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR __restrict</span>
|
||||
<a name="l00442"></a>00442 <span class="preprocessor"></span><span class="preprocessor">#elif((GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_LLVM_GCC)) && (GLM_COMPILER >= GLM_COMPILER_GCC31))</span>
|
||||
<a name="l00443"></a>00443 <span class="preprocessor"></span><span class="preprocessor"># define GLM_DEPRECATED __attribute__((__deprecated__))</span>
|
||||
<a name="l00444"></a>00444 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGN(x) __attribute__((aligned(x)))</span>
|
||||
<a name="l00445"></a>00445 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGNED_STRUCT(x) struct __attribute__((aligned(x)))</span>
|
||||
<a name="l00446"></a>00446 <span class="preprocessor"></span><span class="preprocessor"># if(GLM_COMPILER >= GLM_COMPILER_GCC33)</span>
|
||||
<a name="l00447"></a>00447 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT __restrict__</span>
|
||||
<a name="l00448"></a>00448 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR __restrict__</span>
|
||||
<a name="l00449"></a>00449 <span class="preprocessor"></span><span class="preprocessor"># else</span>
|
||||
<a name="l00450"></a>00450 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT</span>
|
||||
<a name="l00451"></a>00451 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR</span>
|
||||
<a name="l00452"></a>00452 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
||||
<a name="l00453"></a>00453 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT __restrict__</span>
|
||||
<a name="l00454"></a>00454 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR __restrict__</span>
|
||||
<a name="l00455"></a>00455 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
||||
<a name="l00456"></a>00456 <span class="preprocessor"></span><span class="preprocessor"># define GLM_DEPRECATED</span>
|
||||
<a name="l00457"></a>00457 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGN</span>
|
||||
<a name="l00458"></a>00458 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGNED_STRUCT(x) </span>
|
||||
<a name="l00459"></a>00459 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT</span>
|
||||
<a name="l00460"></a>00460 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR</span>
|
||||
<a name="l00461"></a>00461 <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_COMPILER</span>
|
||||
<a name="l00462"></a>00462 <span class="preprocessor"></span>
|
||||
<a name="l00463"></a>00463 <span class="preprocessor">#endif//glm_core_detail</span>
|
||||
<a name="l00344"></a>00344 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> uint8;
|
||||
<a name="l00345"></a>00345 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> uint16;
|
||||
<a name="l00346"></a>00346 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint32;
|
||||
<a name="l00347"></a>00347 <span class="keyword">typedef</span> detail::uint64 uint64;
|
||||
<a name="l00348"></a>00348
|
||||
<a name="l00349"></a>00349 <span class="keyword">typedef</span> detail<a class="code" href="a00158.html#ga09cefb48e7a630c2e3bfb3d23cd88e44" title="Type for half-precision floating-point numbers.">::half</a> float16;
|
||||
<a name="l00350"></a>00350 <span class="keyword">typedef</span> <span class="keywordtype">float</span> float32;
|
||||
<a name="l00351"></a>00351 <span class="keyword">typedef</span> <span class="keywordtype">double</span> float64;
|
||||
<a name="l00352"></a>00352
|
||||
<a name="l00354"></a>00354 <span class="comment">// float_or_int_trait </span>
|
||||
<a name="l00355"></a>00355
|
||||
<a name="l00356"></a>00356 <span class="keyword">struct </span>float_or_int_value
|
||||
<a name="l00357"></a>00357 {
|
||||
<a name="l00358"></a>00358 <span class="keyword">enum</span>
|
||||
<a name="l00359"></a>00359 {
|
||||
<a name="l00360"></a>00360 ERROR,
|
||||
<a name="l00361"></a>00361 FLOAT,
|
||||
<a name="l00362"></a>00362 INT
|
||||
<a name="l00363"></a>00363 };
|
||||
<a name="l00364"></a>00364 };
|
||||
<a name="l00365"></a>00365
|
||||
<a name="l00366"></a>00366 <span class="keyword">template</span> <<span class="keyword">typename</span> T>
|
||||
<a name="l00367"></a>00367 <span class="keyword">struct </span>float_or_int_trait
|
||||
<a name="l00368"></a>00368 {
|
||||
<a name="l00369"></a>00369 <span class="keyword">enum</span>{ID = float_or_int_value::ERROR};
|
||||
<a name="l00370"></a>00370 };
|
||||
<a name="l00371"></a>00371
|
||||
<a name="l00372"></a>00372 <span class="keyword">template</span> <>
|
||||
<a name="l00373"></a>00373 <span class="keyword">struct </span>float_or_int_trait<int8>
|
||||
<a name="l00374"></a>00374 {
|
||||
<a name="l00375"></a>00375 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00376"></a>00376 };
|
||||
<a name="l00377"></a>00377
|
||||
<a name="l00378"></a>00378 <span class="keyword">template</span> <>
|
||||
<a name="l00379"></a>00379 <span class="keyword">struct </span>float_or_int_trait<int16>
|
||||
<a name="l00380"></a>00380 {
|
||||
<a name="l00381"></a>00381 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00382"></a>00382 };
|
||||
<a name="l00383"></a>00383
|
||||
<a name="l00384"></a>00384 <span class="keyword">template</span> <>
|
||||
<a name="l00385"></a>00385 <span class="keyword">struct </span>float_or_int_trait<int32>
|
||||
<a name="l00386"></a>00386 {
|
||||
<a name="l00387"></a>00387 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00388"></a>00388 };
|
||||
<a name="l00389"></a>00389
|
||||
<a name="l00390"></a>00390 <span class="keyword">template</span> <>
|
||||
<a name="l00391"></a>00391 <span class="keyword">struct </span>float_or_int_trait<int64>
|
||||
<a name="l00392"></a>00392 {
|
||||
<a name="l00393"></a>00393 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00394"></a>00394 };
|
||||
<a name="l00395"></a>00395
|
||||
<a name="l00396"></a>00396 <span class="keyword">template</span> <>
|
||||
<a name="l00397"></a>00397 <span class="keyword">struct </span>float_or_int_trait<uint8>
|
||||
<a name="l00398"></a>00398 {
|
||||
<a name="l00399"></a>00399 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00400"></a>00400 };
|
||||
<a name="l00401"></a>00401
|
||||
<a name="l00402"></a>00402 <span class="keyword">template</span> <>
|
||||
<a name="l00403"></a>00403 <span class="keyword">struct </span>float_or_int_trait<uint16>
|
||||
<a name="l00404"></a>00404 {
|
||||
<a name="l00405"></a>00405 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00406"></a>00406 };
|
||||
<a name="l00407"></a>00407
|
||||
<a name="l00408"></a>00408 <span class="keyword">template</span> <>
|
||||
<a name="l00409"></a>00409 <span class="keyword">struct </span>float_or_int_trait<uint32>
|
||||
<a name="l00410"></a>00410 {
|
||||
<a name="l00411"></a>00411 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00412"></a>00412 };
|
||||
<a name="l00413"></a>00413
|
||||
<a name="l00414"></a>00414 <span class="keyword">template</span> <>
|
||||
<a name="l00415"></a>00415 <span class="keyword">struct </span>float_or_int_trait<uint64>
|
||||
<a name="l00416"></a>00416 {
|
||||
<a name="l00417"></a>00417 <span class="keyword">enum</span>{ID = float_or_int_value::INT};
|
||||
<a name="l00418"></a>00418 };
|
||||
<a name="l00419"></a>00419
|
||||
<a name="l00420"></a>00420 <span class="keyword">template</span> <>
|
||||
<a name="l00421"></a>00421 <span class="keyword">struct </span>float_or_int_trait<float16>
|
||||
<a name="l00422"></a>00422 {
|
||||
<a name="l00423"></a>00423 <span class="keyword">enum</span>{ID = float_or_int_value::FLOAT};
|
||||
<a name="l00424"></a>00424 };
|
||||
<a name="l00425"></a>00425
|
||||
<a name="l00426"></a>00426 <span class="keyword">template</span> <>
|
||||
<a name="l00427"></a>00427 <span class="keyword">struct </span>float_or_int_trait<float32>
|
||||
<a name="l00428"></a>00428 {
|
||||
<a name="l00429"></a>00429 <span class="keyword">enum</span>{ID = float_or_int_value::FLOAT};
|
||||
<a name="l00430"></a>00430 };
|
||||
<a name="l00431"></a>00431
|
||||
<a name="l00432"></a>00432 <span class="keyword">template</span> <>
|
||||
<a name="l00433"></a>00433 <span class="keyword">struct </span>float_or_int_trait<float64>
|
||||
<a name="l00434"></a>00434 {
|
||||
<a name="l00435"></a>00435 <span class="keyword">enum</span>{ID = float_or_int_value::FLOAT};
|
||||
<a name="l00436"></a>00436 };
|
||||
<a name="l00437"></a>00437
|
||||
<a name="l00438"></a>00438 }<span class="comment">//namespace detail</span>
|
||||
<a name="l00439"></a>00439 }<span class="comment">//namespace glm</span>
|
||||
<a name="l00440"></a>00440
|
||||
<a name="l00441"></a>00441 <span class="preprocessor">#if((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2005))</span>
|
||||
<a name="l00442"></a>00442 <span class="preprocessor"></span><span class="preprocessor"># define GLM_DEPRECATED __declspec(deprecated)</span>
|
||||
<a name="l00443"></a>00443 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGN(x) __declspec(align(x)) </span>
|
||||
<a name="l00444"></a>00444 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGNED_STRUCT(x) __declspec(align(x)) struct </span>
|
||||
<a name="l00445"></a>00445 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT __declspec(restrict)</span>
|
||||
<a name="l00446"></a>00446 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR __restrict</span>
|
||||
<a name="l00447"></a>00447 <span class="preprocessor"></span><span class="preprocessor">#elif((GLM_COMPILER & (GLM_COMPILER_GCC | GLM_COMPILER_LLVM_GCC)) && (GLM_COMPILER >= GLM_COMPILER_GCC31))</span>
|
||||
<a name="l00448"></a>00448 <span class="preprocessor"></span><span class="preprocessor"># define GLM_DEPRECATED __attribute__((__deprecated__))</span>
|
||||
<a name="l00449"></a>00449 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGN(x) __attribute__((aligned(x)))</span>
|
||||
<a name="l00450"></a>00450 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGNED_STRUCT(x) struct __attribute__((aligned(x)))</span>
|
||||
<a name="l00451"></a>00451 <span class="preprocessor"></span><span class="preprocessor"># if(GLM_COMPILER >= GLM_COMPILER_GCC33)</span>
|
||||
<a name="l00452"></a>00452 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT __restrict__</span>
|
||||
<a name="l00453"></a>00453 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR __restrict__</span>
|
||||
<a name="l00454"></a>00454 <span class="preprocessor"></span><span class="preprocessor"># else</span>
|
||||
<a name="l00455"></a>00455 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT</span>
|
||||
<a name="l00456"></a>00456 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR</span>
|
||||
<a name="l00457"></a>00457 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
|
||||
<a name="l00458"></a>00458 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT __restrict__</span>
|
||||
<a name="l00459"></a>00459 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR __restrict__</span>
|
||||
<a name="l00460"></a>00460 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
||||
<a name="l00461"></a>00461 <span class="preprocessor"></span><span class="preprocessor"># define GLM_DEPRECATED</span>
|
||||
<a name="l00462"></a>00462 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGN</span>
|
||||
<a name="l00463"></a>00463 <span class="preprocessor"></span><span class="preprocessor"># define GLM_ALIGNED_STRUCT(x) </span>
|
||||
<a name="l00464"></a>00464 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT</span>
|
||||
<a name="l00465"></a>00465 <span class="preprocessor"></span><span class="preprocessor"># define GLM_RESTRICT_VAR</span>
|
||||
<a name="l00466"></a>00466 <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_COMPILER</span>
|
||||
<a name="l00467"></a>00467 <span class="preprocessor"></span>
|
||||
<a name="l00468"></a>00468 <span class="preprocessor">#endif//glm_core_detail</span>
|
||||
</pre></div></div>
|
||||
</div>
|
||||
<hr class="footer"/><address class="footer"><small>Generated by 
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
|
||||
|
||||
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.7.5
|
||||
</small></address>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user