mirror of
https://github.com/g-truc/glm.git
synced 2024-11-29 11:24:35 +00:00
162 lines
12 KiB
HTML
162 lines
12 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<title>GLM: glm.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<!-- Generated by Doxygen 1.6.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<h1>glm.hpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
|
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2008 G-Truc Creation (www.g-truc.net)</span>
|
|
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2005-01-14</span>
|
|
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-05-01</span>
|
|
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
|
<a name="l00007"></a>00007 <span class="comment">// File : glm/glm.hpp</span>
|
|
<a name="l00009"></a>00009 <span class="comment"></span>
|
|
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef glm_glm</span>
|
|
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define glm_glm</span>
|
|
<a name="l00026"></a>00026 <span class="preprocessor"></span>
|
|
<a name="l00027"></a>00027 <span class="preprocessor">#ifdef max</span>
|
|
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#undef max</span>
|
|
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
|
<a name="l00030"></a>00030 <span class="preprocessor"></span>
|
|
<a name="l00031"></a>00031 <span class="preprocessor">#ifdef min</span>
|
|
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#undef min</span>
|
|
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
|
<a name="l00034"></a>00034 <span class="preprocessor"></span>
|
|
<a name="l00035"></a>00035 <span class="preprocessor">#define GLMvalType typename genType::value_type</span>
|
|
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define GLMcolType typename genType::col_type</span>
|
|
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define GLMrowType typename genType::row_type</span>
|
|
<a name="l00038"></a>00038 <span class="preprocessor"></span>
|
|
<a name="l00039"></a>00039 <span class="preprocessor">#define GLMsizeType typename genType::size_type</span>
|
|
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define GLMrowSize typename genType::row_size</span>
|
|
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define GLMcolSize typename genType::col_size</span>
|
|
<a name="l00042"></a>00042 <span class="preprocessor"></span>
|
|
<a name="l00043"></a>00043 <span class="preprocessor">#include <cmath></span>
|
|
<a name="l00044"></a>00044 <span class="preprocessor">#include <climits></span>
|
|
<a name="l00045"></a>00045 <span class="preprocessor">#include "./setup.hpp"</span>
|
|
<a name="l00046"></a>00046
|
|
<a name="l00048"></a>00048 <span class="keyword">namespace </span>glm
|
|
<a name="l00049"></a>00049 {
|
|
<a name="l00050"></a>00050 <span class="keyword">namespace </span>test
|
|
<a name="l00051"></a>00051 {
|
|
<a name="l00052"></a>00052 <span class="keywordtype">bool</span> main_bug();
|
|
<a name="l00053"></a>00053 <span class="keywordtype">bool</span> main_core();
|
|
<a name="l00054"></a>00054 }<span class="comment">//namespace test</span>
|
|
<a name="l00055"></a>00055
|
|
<a name="l00057"></a>00057 <span class="keyword">namespace </span>core
|
|
<a name="l00058"></a>00058 {
|
|
<a name="l00063"></a>00063 <span class="keyword">namespace </span>type
|
|
<a name="l00064"></a>00064 {
|
|
<a name="l00067"></a>00067 <span class="keyword">namespace </span>scalar
|
|
<a name="l00068"></a>00068 {
|
|
<a name="l00071"></a>00071 <span class="keyword">namespace </span>precision{}
|
|
<a name="l00072"></a>00072 }
|
|
<a name="l00073"></a>00073
|
|
<a name="l00076"></a>00076 <span class="keyword">namespace </span>vector
|
|
<a name="l00077"></a>00077 {
|
|
<a name="l00080"></a>00080 <span class="keyword">namespace </span>precision{}
|
|
<a name="l00081"></a>00081 }
|
|
<a name="l00082"></a>00082
|
|
<a name="l00085"></a>00085 <span class="keyword">namespace </span>matrix
|
|
<a name="l00086"></a>00086 {
|
|
<a name="l00089"></a>00089 <span class="keyword">namespace </span>precision{}
|
|
<a name="l00090"></a>00090 }
|
|
<a name="l00091"></a>00091 }
|
|
<a name="l00094"></a>00094 <span class="keyword">namespace </span>function{}
|
|
<a name="l00095"></a>00095 }
|
|
<a name="l00096"></a>00096 <span class="comment">//namespace core</span>
|
|
<a name="l00097"></a>00097
|
|
<a name="l00098"></a>00098 <span class="keyword">using namespace </span>core::type::scalar;
|
|
<a name="l00099"></a>00099 <span class="keyword">using namespace </span>core::type::scalar::precision;
|
|
<a name="l00100"></a>00100 <span class="keyword">using namespace </span>core::type::vector;
|
|
<a name="l00101"></a>00101 <span class="keyword">using namespace </span>core::type::vector::precision;
|
|
<a name="l00102"></a>00102 <span class="keyword">using namespace </span>core::type::matrix;
|
|
<a name="l00103"></a>00103 <span class="keyword">using namespace </span>core::type::matrix::precision;
|
|
<a name="l00104"></a>00104
|
|
<a name="l00106"></a><a class="code" href="a00150.html">00106</a> <span class="keyword">namespace </span>gtx{}
|
|
<a name="l00107"></a>00107
|
|
<a name="l00109"></a><a class="code" href="a00142.html">00109</a> <span class="keyword">namespace </span>gtc{}
|
|
<a name="l00110"></a>00110
|
|
<a name="l00112"></a><a class="code" href="a00217.html">00112</a> <span class="keyword">namespace </span>img{}
|
|
<a name="l00113"></a>00113
|
|
<a name="l00115"></a>00115 <span class="keyword">namespace </span>img{}
|
|
<a name="l00116"></a>00116
|
|
<a name="l00117"></a>00117 } <span class="comment">//namespace glm</span>
|
|
<a name="l00118"></a>00118
|
|
<a name="l00119"></a>00119 <span class="preprocessor">#include "./core/_detail.hpp"</span>
|
|
<a name="l00120"></a>00120 <span class="preprocessor">#include "./core/type.hpp"</span>
|
|
<a name="l00121"></a>00121 <span class="preprocessor">#include "./core/type_half.hpp"</span>
|
|
<a name="l00122"></a>00122
|
|
<a name="l00123"></a>00123 <span class="preprocessor">#include "./core/func_common.hpp"</span>
|
|
<a name="l00124"></a>00124 <span class="preprocessor">#include "./core/func_exponential.hpp"</span>
|
|
<a name="l00125"></a>00125 <span class="preprocessor">#include "./core/func_geometric.hpp"</span>
|
|
<a name="l00126"></a>00126 <span class="preprocessor">#include "./core/func_matrix.hpp"</span>
|
|
<a name="l00127"></a>00127 <span class="preprocessor">#include "./core/func_trigonometric.hpp"</span>
|
|
<a name="l00128"></a>00128 <span class="preprocessor">#include "./core/func_vector_relational.hpp"</span>
|
|
<a name="l00129"></a>00129 <span class="preprocessor">#include "./core/func_noise.hpp"</span>
|
|
<a name="l00130"></a>00130 <span class="preprocessor">#include "./core/_swizzle.hpp"</span>
|
|
<a name="l00131"></a>00131 <span class="comment">//#include "./core/_xref2.hpp"</span>
|
|
<a name="l00132"></a>00132 <span class="comment">//#include "./core/_xref3.hpp"</span>
|
|
<a name="l00133"></a>00133 <span class="comment">//#include "./core/_xref4.hpp"</span>
|
|
<a name="l00134"></a>00134
|
|
<a name="l00135"></a>00135 <span class="preprocessor">#if(defined(GLM_MESSAGE) && (GLM_MESSAGE & (GLM_MESSAGE_CORE | GLM_MESSAGE_NOTIFICATION)))</span>
|
|
<a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM message: Core library included")</span>
|
|
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGE</span>
|
|
<a name="l00138"></a>00138 <span class="preprocessor"></span>
|
|
<a name="l00139"></a>00139 <span class="preprocessor">#if(defined(GLM_COMPILER) && (GLM_COMPILER & GLM_COMPILER_VC))</span>
|
|
<a name="l00140"></a>00140 <span class="preprocessor"></span>
|
|
<a name="l00141"></a>00141 <span class="preprocessor">#define GLM_DEPRECATED __declspec(deprecated)</span>
|
|
<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="preprocessor">#define GLM_RESTRICT __restrict</span>
|
|
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor">#define GLM_ALIGN(x) __declspec(align(x))</span>
|
|
<a name="l00144"></a>00144 <span class="preprocessor"></span>
|
|
<a name="l00145"></a>00145 <span class="comment">//#define aligned(x) __declspec(align(x)) struct</span>
|
|
<a name="l00146"></a>00146
|
|
<a name="l00147"></a>00147 <span class="preprocessor">#else</span>
|
|
<a name="l00148"></a>00148 <span class="preprocessor"></span>
|
|
<a name="l00149"></a>00149 <span class="preprocessor">#define GLM_DEPRECATED</span>
|
|
<a name="l00150"></a>00150 <span class="preprocessor"></span><span class="preprocessor">#define GLM_RESTRICT</span>
|
|
<a name="l00151"></a>00151 <span class="preprocessor"></span><span class="preprocessor">#define GLM_ALIGN(x)</span>
|
|
<a name="l00152"></a>00152 <span class="preprocessor"></span>
|
|
<a name="l00153"></a>00153 <span class="preprocessor">#endif//GLM_COMPILER</span>
|
|
<a name="l00154"></a>00154 <span class="preprocessor"></span>
|
|
<a name="l00156"></a>00156 <span class="comment">// check type sizes</span>
|
|
<a name="l00157"></a>00157 <span class="preprocessor">#ifndef GLM_STATIC_ASSERT_NULL</span>
|
|
<a name="l00158"></a>00158 <span class="preprocessor"></span> GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int8)==1);
|
|
<a name="l00159"></a>00159 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int16)==2);
|
|
<a name="l00160"></a>00160 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int32)==4);
|
|
<a name="l00161"></a>00161 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::int64)==8);
|
|
<a name="l00162"></a>00162
|
|
<a name="l00163"></a>00163 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint8)==1);
|
|
<a name="l00164"></a>00164 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint16)==2);
|
|
<a name="l00165"></a>00165 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint32)==4);
|
|
<a name="l00166"></a>00166 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::uint64)==8);
|
|
<a name="l00167"></a>00167
|
|
<a name="l00168"></a>00168 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::float16)==2);
|
|
<a name="l00169"></a>00169 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::float32)==4);
|
|
<a name="l00170"></a>00170 GLM_STATIC_ASSERT(<span class="keyword">sizeof</span>(glm::detail::float64)==8);
|
|
<a name="l00171"></a>00171 <span class="preprocessor">#endif//GLM_STATIC_ASSERT_NULL</span>
|
|
<a name="l00172"></a>00172 <span class="preprocessor"></span>
|
|
<a name="l00173"></a>00173 <span class="preprocessor">#endif //glm_glm</span>
|
|
</pre></div></div>
|
|
<hr size="1"/><address style="text-align: right;"><small>Generated on Mon Nov 16 11:23:22 2009 for GLM by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
|
</body>
|
|
</html>
|