glm/doc/api-0.9.3/a00123_source.html
2011-12-07 14:50:15 +00:00

490 lines
43 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>type_ptr.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<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>
</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&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<div class="title">type_ptr.hpp</div> </div>
</div>
<div class="contents">
<a href="a00123.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002
<a name="l00003"></a>00003
<a name="l00004"></a>00004
<a name="l00005"></a>00005
<a name="l00006"></a>00006
<a name="l00007"></a>00007
<a name="l00008"></a>00008
<a name="l00009"></a>00009
<a name="l00010"></a>00010
<a name="l00011"></a>00011
<a name="l00012"></a>00012
<a name="l00013"></a>00013
<a name="l00014"></a>00014
<a name="l00015"></a>00015
<a name="l00016"></a>00016
<a name="l00017"></a>00017
<a name="l00018"></a>00018
<a name="l00019"></a>00019
<a name="l00020"></a>00020
<a name="l00021"></a>00021
<a name="l00022"></a>00022
<a name="l00023"></a>00023
<a name="l00024"></a>00024
<a name="l00025"></a>00025
<a name="l00026"></a>00026
<a name="l00027"></a>00027
<a name="l00028"></a>00028
<a name="l00029"></a>00029
<a name="l00030"></a>00030
<a name="l00031"></a>00031
<a name="l00032"></a>00032
<a name="l00033"></a>00033
<a name="l00034"></a>00034
<a name="l00035"></a>00035
<a name="l00036"></a>00036
<a name="l00037"></a>00037
<a name="l00038"></a>00038
<a name="l00039"></a>00039
<a name="l00040"></a>00040
<a name="l00041"></a>00041
<a name="l00042"></a>00042
<a name="l00043"></a>00043
<a name="l00044"></a>00044
<a name="l00045"></a>00045
<a name="l00046"></a>00046
<a name="l00047"></a>00047
<a name="l00048"></a>00048
<a name="l00049"></a>00049
<a name="l00050"></a>00050
<a name="l00051"></a>00051
<a name="l00052"></a>00052
<a name="l00053"></a>00053
<a name="l00054"></a>00054
<a name="l00055"></a>00055
<a name="l00056"></a>00056
<a name="l00057"></a>00057
<a name="l00058"></a>00058
<a name="l00059"></a>00059 <span class="preprocessor">#ifndef GLM_GTC_type_ptr</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#define GLM_GTC_type_ptr GLM_VERSION</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00062"></a>00062 <span class="comment">// Dependency:</span>
<a name="l00063"></a>00063 <span class="preprocessor">#include &quot;../glm.hpp&quot;</span>
<a name="l00064"></a>00064 <span class="preprocessor">#include &quot;../gtc/half_float.hpp&quot;</span>
<a name="l00065"></a>00065 <span class="preprocessor">#include &quot;../gtc/quaternion.hpp&quot;</span>
<a name="l00066"></a>00066 <span class="preprocessor">#include &lt;cstring&gt;</span>
<a name="l00067"></a>00067
<a name="l00068"></a>00068 <span class="preprocessor">#if(defined(GLM_MESSAGES) &amp;&amp; !defined(glm_ext))</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor"># pragma message(&quot;GLM: GLM_GTC_type_ptr extension included&quot;)</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span>
<a name="l00072"></a>00072 <span class="keyword">namespace </span>glm
<a name="l00073"></a>00073 {
<a name="l00076"></a>00076
<a name="l00079"></a>00079 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00080"></a>00080 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00081"></a><a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069">00081</a> (
<a name="l00082"></a>00082 <a class="code" href="a00016.html">detail::tvec2&lt;T&gt;</a> <span class="keyword">const</span> &amp; vec
<a name="l00083"></a>00083 )
<a name="l00084"></a>00084 {
<a name="l00085"></a>00085 <span class="keywordflow">return</span> &amp;(vec.x);
<a name="l00086"></a>00086 }
<a name="l00087"></a>00087
<a name="l00090"></a>00090 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00091"></a>00091 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00092"></a><a class="code" href="a00168.html#ga70900f03d3f6eead08cbeb8eebe2a596">00092</a> (
<a name="l00093"></a>00093 <a class="code" href="a00016.html">detail::tvec2&lt;T&gt;</a> &amp; vec
<a name="l00094"></a>00094 )
<a name="l00095"></a>00095 {
<a name="l00096"></a>00096 <span class="keywordflow">return</span> &amp;(vec.x);
<a name="l00097"></a>00097 }
<a name="l00098"></a>00098
<a name="l00101"></a>00101 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00102"></a>00102 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00103"></a><a class="code" href="a00168.html#ga10a568d24db822588013d8087b67eaad">00103</a> (
<a name="l00104"></a>00104 <a class="code" href="a00017.html">detail::tvec3&lt;T&gt;</a> <span class="keyword">const</span> &amp; vec
<a name="l00105"></a>00105 )
<a name="l00106"></a>00106 {
<a name="l00107"></a>00107 <span class="keywordflow">return</span> &amp;(vec.x);
<a name="l00108"></a>00108 }
<a name="l00109"></a>00109
<a name="l00112"></a>00112 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00113"></a>00113 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00114"></a><a class="code" href="a00168.html#ga3dfe9e6a5ebc3beeaa3a8b35cf2ffe1d">00114</a> (
<a name="l00115"></a>00115 <a class="code" href="a00017.html">detail::tvec3&lt;T&gt;</a> &amp; vec
<a name="l00116"></a>00116 )
<a name="l00117"></a>00117 {
<a name="l00118"></a>00118 <span class="keywordflow">return</span> &amp;(vec.x);
<a name="l00119"></a>00119 }
<a name="l00120"></a>00120
<a name="l00123"></a>00123 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00124"></a>00124 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00125"></a><a class="code" href="a00168.html#ga75dd1f5ad6d007990c1f2cf55fe63789">00125</a> (
<a name="l00126"></a>00126 <a class="code" href="a00018.html">detail::tvec4&lt;T&gt;</a> <span class="keyword">const</span> &amp; vec
<a name="l00127"></a>00127 )
<a name="l00128"></a>00128 {
<a name="l00129"></a>00129 <span class="keywordflow">return</span> &amp;(vec.x);
<a name="l00130"></a>00130 }
<a name="l00131"></a>00131
<a name="l00134"></a>00134 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00135"></a>00135 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00136"></a><a class="code" href="a00168.html#ga63ee2093cab935f4471fdc55484aeb63">00136</a> (
<a name="l00137"></a>00137 <a class="code" href="a00018.html">detail::tvec4&lt;T&gt;</a> &amp; vec
<a name="l00138"></a>00138 )
<a name="l00139"></a>00139 {
<a name="l00140"></a>00140 <span class="keywordflow">return</span> &amp;(vec.x);
<a name="l00141"></a>00141 }
<a name="l00142"></a>00142
<a name="l00145"></a>00145 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00146"></a>00146 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00147"></a><a class="code" href="a00168.html#gabc0ecc372916bebbd130341cb0799376">00147</a> (
<a name="l00148"></a>00148 <a class="code" href="a00006.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2&lt;T&gt;</a> <span class="keyword">const</span> &amp; mat
<a name="l00149"></a>00149 )
<a name="l00150"></a>00150 {
<a name="l00151"></a>00151 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00152"></a>00152 }
<a name="l00153"></a>00153
<a name="l00156"></a>00156 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00157"></a>00157 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00158"></a><a class="code" href="a00168.html#ga09141ef8c41ab15f7989b620e748ae3c">00158</a> (
<a name="l00159"></a>00159 <a class="code" href="a00006.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2&lt;T&gt;</a> &amp; mat
<a name="l00160"></a>00160 )
<a name="l00161"></a>00161 {
<a name="l00162"></a>00162 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00163"></a>00163 }
<a name="l00164"></a>00164
<a name="l00167"></a>00167 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00168"></a>00168 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00169"></a><a class="code" href="a00168.html#ga23b2a53a00923f747637fc271f78e9db">00169</a> (
<a name="l00170"></a>00170 <a class="code" href="a00010.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3&lt;T&gt;</a> <span class="keyword">const</span> &amp; mat
<a name="l00171"></a>00171 )
<a name="l00172"></a>00172 {
<a name="l00173"></a>00173 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00174"></a>00174 }
<a name="l00175"></a>00175
<a name="l00178"></a>00178 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00179"></a>00179 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00180"></a><a class="code" href="a00168.html#ga2cadd2b9a774d77c66e8f723b729c4e7">00180</a> (
<a name="l00181"></a>00181 <a class="code" href="a00010.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3&lt;T&gt;</a> &amp; mat
<a name="l00182"></a>00182 )
<a name="l00183"></a>00183 {
<a name="l00184"></a>00184 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00185"></a>00185 }
<a name="l00186"></a>00186
<a name="l00189"></a>00189 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00190"></a>00190 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00191"></a><a class="code" href="a00168.html#ga1e7076c8387f3e7436a00453a1f5fe5e">00191</a> (
<a name="l00192"></a>00192 <a class="code" href="a00014.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4&lt;T&gt;</a> <span class="keyword">const</span> &amp; mat
<a name="l00193"></a>00193 )
<a name="l00194"></a>00194 {
<a name="l00195"></a>00195 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00196"></a>00196 }
<a name="l00197"></a>00197
<a name="l00200"></a>00200 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00201"></a>00201 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00202"></a><a class="code" href="a00168.html#gadc0d39ee1a6b84a4337840746649cca3">00202</a> (
<a name="l00203"></a>00203 <a class="code" href="a00014.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4&lt;T&gt;</a> &amp; mat
<a name="l00204"></a>00204 )
<a name="l00205"></a>00205 {
<a name="l00206"></a>00206 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00207"></a>00207 }
<a name="l00208"></a>00208
<a name="l00211"></a>00211 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00212"></a>00212 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00213"></a><a class="code" href="a00168.html#ga7a07a13118bdceeaef82e330f8f47fcf">00213</a> (
<a name="l00214"></a>00214 <a class="code" href="a00007.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3&lt;T&gt;</a> <span class="keyword">const</span> &amp; mat
<a name="l00215"></a>00215 )
<a name="l00216"></a>00216 {
<a name="l00217"></a>00217 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00218"></a>00218 }
<a name="l00219"></a>00219
<a name="l00222"></a>00222 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00223"></a>00223 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00224"></a><a class="code" href="a00168.html#gac99ce6d08fb5b645d543ea875567ea3b">00224</a> (
<a name="l00225"></a>00225 <a class="code" href="a00007.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3&lt;T&gt;</a> &amp; mat
<a name="l00226"></a>00226 )
<a name="l00227"></a>00227 {
<a name="l00228"></a>00228 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00229"></a>00229 }
<a name="l00230"></a>00230
<a name="l00233"></a>00233 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00234"></a>00234 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00235"></a><a class="code" href="a00168.html#gad58ae53d7a86bf7caadd7f1be2db3f1a">00235</a> (
<a name="l00236"></a>00236 <a class="code" href="a00009.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2&lt;T&gt;</a> <span class="keyword">const</span> &amp; mat
<a name="l00237"></a>00237 )
<a name="l00238"></a>00238 {
<a name="l00239"></a>00239 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00240"></a>00240 }
<a name="l00241"></a>00241
<a name="l00244"></a>00244 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00245"></a>00245 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00246"></a><a class="code" href="a00168.html#ga241b3c1e7e747ab934e2c38679fe90a5">00246</a> (
<a name="l00247"></a>00247 <a class="code" href="a00009.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2&lt;T&gt;</a> &amp; mat
<a name="l00248"></a>00248 )
<a name="l00249"></a>00249 {
<a name="l00250"></a>00250 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00251"></a>00251 }
<a name="l00252"></a>00252
<a name="l00255"></a>00255 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00256"></a>00256 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00257"></a><a class="code" href="a00168.html#ga6b5545ede3accc40f90aa05014406bcf">00257</a> (
<a name="l00258"></a>00258 <a class="code" href="a00008.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4&lt;T&gt;</a> <span class="keyword">const</span> &amp; mat
<a name="l00259"></a>00259 )
<a name="l00260"></a>00260 {
<a name="l00261"></a>00261 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00262"></a>00262 }
<a name="l00263"></a>00263
<a name="l00266"></a>00266 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00267"></a>00267 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00268"></a><a class="code" href="a00168.html#gad3ffa3b03348e1c71b509023d0e48436">00268</a> (
<a name="l00269"></a>00269 <a class="code" href="a00008.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4&lt;T&gt;</a> &amp; mat
<a name="l00270"></a>00270 )
<a name="l00271"></a>00271 {
<a name="l00272"></a>00272 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00273"></a>00273 }
<a name="l00274"></a>00274
<a name="l00277"></a>00277 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00278"></a>00278 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00279"></a><a class="code" href="a00168.html#ga8278dac512c3e2c638b6713d63c728bb">00279</a> (
<a name="l00280"></a>00280 <a class="code" href="a00012.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2&lt;T&gt;</a> <span class="keyword">const</span> &amp; mat
<a name="l00281"></a>00281 )
<a name="l00282"></a>00282 {
<a name="l00283"></a>00283 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00284"></a>00284 }
<a name="l00285"></a>00285
<a name="l00288"></a>00288 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00289"></a>00289 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00290"></a><a class="code" href="a00168.html#gab70c3bd4e9be92b0c9b9668744f0b5c8">00290</a> (
<a name="l00291"></a>00291 <a class="code" href="a00012.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2&lt;T&gt;</a> &amp; mat
<a name="l00292"></a>00292 )
<a name="l00293"></a>00293 {
<a name="l00294"></a>00294 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00295"></a>00295 }
<a name="l00296"></a>00296
<a name="l00299"></a>00299 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00300"></a>00300 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00301"></a><a class="code" href="a00168.html#gaa38c5a2be6c64a69e7e5d64b70137e1c">00301</a> (
<a name="l00302"></a>00302 <a class="code" href="a00011.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4&lt;T&gt;</a> <span class="keyword">const</span> &amp; mat
<a name="l00303"></a>00303 )
<a name="l00304"></a>00304 {
<a name="l00305"></a>00305 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00306"></a>00306 }
<a name="l00307"></a>00307
<a name="l00310"></a>00310 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00311"></a>00311 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00312"></a><a class="code" href="a00168.html#ga7a9cf1d2fb02f56ba01e27ad528aac7d">00312</a> (
<a name="l00313"></a>00313 <a class="code" href="a00011.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4&lt;T&gt;</a> &amp; mat
<a name="l00314"></a>00314 )
<a name="l00315"></a>00315 {
<a name="l00316"></a>00316 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00317"></a>00317 }
<a name="l00318"></a>00318
<a name="l00321"></a>00321 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00322"></a>00322 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00323"></a><a class="code" href="a00168.html#gacca7d201301551a24dbf7eef343a14c1">00323</a> (
<a name="l00324"></a>00324 <a class="code" href="a00013.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3&lt;T&gt;</a> <span class="keyword">const</span> &amp; mat
<a name="l00325"></a>00325 )
<a name="l00326"></a>00326 {
<a name="l00327"></a>00327 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00328"></a>00328 }
<a name="l00329"></a>00329
<a name="l00332"></a>00332 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00333"></a>00333 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>
<a name="l00334"></a><a class="code" href="a00168.html#ga348519eaf9bb56244727eabb314f6892">00334</a> (
<a name="l00335"></a>00335 <a class="code" href="a00015.html" title="Template for quaternion.">detail::tquat&lt;T&gt;</a> <span class="keyword">const</span> &amp; q
<a name="l00336"></a>00336 )
<a name="l00337"></a>00337 {
<a name="l00338"></a>00338 <span class="keywordflow">return</span> &amp;(q[0]);
<a name="l00339"></a>00339 }
<a name="l00340"></a>00340
<a name="l00343"></a>00343 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00344"></a><a class="code" href="a00168.html#gae821d2d76715dfe8eb4a9c7eac845dc4">00344</a> GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(<a class="code" href="a00013.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3&lt;T&gt;</a> &amp; mat)
<a name="l00345"></a>00345 {
<a name="l00346"></a>00346 <span class="keywordflow">return</span> &amp;(mat[0].x);
<a name="l00347"></a>00347 }
<a name="l00348"></a>00348
<a name="l00351"></a>00351 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00352"></a><a class="code" href="a00168.html#ga422b78b752695fecbd9f938120add926">00352</a> GLM_FUNC_QUALIFIER detail::tvec2&lt;T&gt; <a class="code" href="a00168.html#ga422b78b752695fecbd9f938120add926" title="Build a vector from a pointer.">make_vec2</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00353"></a>00353 {
<a name="l00354"></a>00354 detail::tvec2&lt;T&gt; Result;
<a name="l00355"></a>00355 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00016.html">detail::tvec2&lt;T&gt;</a>));
<a name="l00356"></a>00356 <span class="keywordflow">return</span> Result;
<a name="l00357"></a>00357 }
<a name="l00358"></a>00358
<a name="l00361"></a>00361 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00362"></a><a class="code" href="a00168.html#ga9f5720be41fd0900e62df3f860200ff2">00362</a> GLM_FUNC_QUALIFIER detail::tvec3&lt;T&gt; <a class="code" href="a00168.html#ga9f5720be41fd0900e62df3f860200ff2" title="Build a vector from a pointer.">make_vec3</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00363"></a>00363 {
<a name="l00364"></a>00364 detail::tvec3&lt;T&gt; Result;
<a name="l00365"></a>00365 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00017.html">detail::tvec3&lt;T&gt;</a>));
<a name="l00366"></a>00366 <span class="keywordflow">return</span> Result;
<a name="l00367"></a>00367 }
<a name="l00368"></a>00368
<a name="l00371"></a>00371 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00372"></a><a class="code" href="a00168.html#ga0d220ea80b0fed9d164108f84a5107f9">00372</a> GLM_FUNC_QUALIFIER detail::tvec4&lt;T&gt; <a class="code" href="a00168.html#ga0d220ea80b0fed9d164108f84a5107f9" title="Build a vector from a pointer.">make_vec4</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00373"></a>00373 {
<a name="l00374"></a>00374 detail::tvec4&lt;T&gt; Result;
<a name="l00375"></a>00375 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00018.html">detail::tvec4&lt;T&gt;</a>));
<a name="l00376"></a>00376 <span class="keywordflow">return</span> Result;
<a name="l00377"></a>00377 }
<a name="l00378"></a>00378
<a name="l00381"></a>00381 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00382"></a><a class="code" href="a00168.html#ga73b043e4238811832471bfcfd7257900">00382</a> GLM_FUNC_QUALIFIER detail::tmat2x2&lt;T&gt; <a class="code" href="a00168.html#ga73b043e4238811832471bfcfd7257900" title="Build a matrix from a pointer.">make_mat2x2</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00383"></a>00383 {
<a name="l00384"></a>00384 detail::tmat2x2&lt;T&gt; Result;
<a name="l00385"></a>00385 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00006.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2&lt;T&gt;</a>));
<a name="l00386"></a>00386 <span class="keywordflow">return</span> Result;
<a name="l00387"></a>00387 }
<a name="l00388"></a>00388
<a name="l00391"></a>00391 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00392"></a><a class="code" href="a00168.html#ga2d3313e5b4e84062b8747a439ac9c789">00392</a> GLM_FUNC_QUALIFIER detail::tmat2x3&lt;T&gt; <a class="code" href="a00168.html#ga2d3313e5b4e84062b8747a439ac9c789" title="Build a matrix from a pointer.">make_mat2x3</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00393"></a>00393 {
<a name="l00394"></a>00394 detail::tmat2x3&lt;T&gt; Result;
<a name="l00395"></a>00395 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00007.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3&lt;T&gt;</a>));
<a name="l00396"></a>00396 <span class="keywordflow">return</span> Result;
<a name="l00397"></a>00397 }
<a name="l00398"></a>00398
<a name="l00401"></a>00401 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00402"></a><a class="code" href="a00168.html#gad964b2474436360ad7ddc72476cd825d">00402</a> GLM_FUNC_QUALIFIER detail::tmat2x4&lt;T&gt; <a class="code" href="a00168.html#gad964b2474436360ad7ddc72476cd825d" title="Build a matrix from a pointer.">make_mat2x4</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00403"></a>00403 {
<a name="l00404"></a>00404 detail::tmat2x4&lt;T&gt; Result;
<a name="l00405"></a>00405 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00008.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4&lt;T&gt;</a>));
<a name="l00406"></a>00406 <span class="keywordflow">return</span> Result;
<a name="l00407"></a>00407 }
<a name="l00408"></a>00408
<a name="l00411"></a>00411 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00412"></a><a class="code" href="a00168.html#ga860ede9212a7fe27f6e0819a6751bd65">00412</a> GLM_FUNC_QUALIFIER detail::tmat3x2&lt;T&gt; <a class="code" href="a00168.html#ga860ede9212a7fe27f6e0819a6751bd65" title="Build a matrix from a pointer.">make_mat3x2</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00413"></a>00413 {
<a name="l00414"></a>00414 detail::tmat3x2&lt;T&gt; Result;
<a name="l00415"></a>00415 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00009.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2&lt;T&gt;</a>));
<a name="l00416"></a>00416 <span class="keywordflow">return</span> Result;
<a name="l00417"></a>00417 }
<a name="l00418"></a>00418
<a name="l00421"></a>00421 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00422"></a><a class="code" href="a00168.html#ga4a59d30459cfd98f66678298509ad6db">00422</a> GLM_FUNC_QUALIFIER detail::tmat3x3&lt;T&gt; <a class="code" href="a00168.html#ga4a59d30459cfd98f66678298509ad6db" title="Build a matrix from a pointer.">make_mat3x3</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00423"></a>00423 {
<a name="l00424"></a>00424 detail::tmat3x3&lt;T&gt; Result;
<a name="l00425"></a>00425 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00010.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3&lt;T&gt;</a>));
<a name="l00426"></a>00426 <span class="keywordflow">return</span> Result;
<a name="l00427"></a>00427 }
<a name="l00428"></a>00428
<a name="l00431"></a>00431 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00432"></a><a class="code" href="a00168.html#ga56f6c18963f12ff629528a5a38220f84">00432</a> GLM_FUNC_QUALIFIER detail::tmat3x4&lt;T&gt; <a class="code" href="a00168.html#ga56f6c18963f12ff629528a5a38220f84" title="Build a matrix from a pointer.">make_mat3x4</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00433"></a>00433 {
<a name="l00434"></a>00434 detail::tmat3x4&lt;T&gt; Result;
<a name="l00435"></a>00435 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00011.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4&lt;T&gt;</a>));
<a name="l00436"></a>00436 <span class="keywordflow">return</span> Result;
<a name="l00437"></a>00437 }
<a name="l00438"></a>00438
<a name="l00441"></a>00441 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00442"></a><a class="code" href="a00168.html#ga8d47171932ef5a9e01532a0826fac8dd">00442</a> GLM_FUNC_QUALIFIER detail::tmat4x2&lt;T&gt; <a class="code" href="a00168.html#ga8d47171932ef5a9e01532a0826fac8dd" title="Build a matrix from a pointer.">make_mat4x2</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00443"></a>00443 {
<a name="l00444"></a>00444 detail::tmat4x2&lt;T&gt; Result;
<a name="l00445"></a>00445 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00012.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2&lt;T&gt;</a>));
<a name="l00446"></a>00446 <span class="keywordflow">return</span> Result;
<a name="l00447"></a>00447 }
<a name="l00448"></a>00448
<a name="l00451"></a>00451 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00452"></a><a class="code" href="a00168.html#ga7cb5d674738de1fba4d25d846045605c">00452</a> GLM_FUNC_QUALIFIER detail::tmat4x3&lt;T&gt; <a class="code" href="a00168.html#ga7cb5d674738de1fba4d25d846045605c" title="Build a matrix from a pointer.">make_mat4x3</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00453"></a>00453 {
<a name="l00454"></a>00454 detail::tmat4x3&lt;T&gt; Result;
<a name="l00455"></a>00455 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00013.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3&lt;T&gt;</a>));
<a name="l00456"></a>00456 <span class="keywordflow">return</span> Result;
<a name="l00457"></a>00457 }
<a name="l00458"></a>00458
<a name="l00461"></a>00461 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00462"></a><a class="code" href="a00168.html#ga06ffad3cc8cbf921588f48037f1e1a2a">00462</a> GLM_FUNC_QUALIFIER detail::tmat4x4&lt;T&gt; <a class="code" href="a00168.html#ga06ffad3cc8cbf921588f48037f1e1a2a" title="Build a matrix from a pointer.">make_mat4x4</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00463"></a>00463 {
<a name="l00464"></a>00464 detail::tmat4x4&lt;T&gt; Result;
<a name="l00465"></a>00465 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00014.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4&lt;T&gt;</a>));
<a name="l00466"></a>00466 <span class="keywordflow">return</span> Result;
<a name="l00467"></a>00467 }
<a name="l00468"></a>00468
<a name="l00471"></a>00471 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00472"></a><a class="code" href="a00168.html#ga1cd3c7e8207ad835a1f86c12b5f0e4ad">00472</a> GLM_FUNC_QUALIFIER detail::tmat2x2&lt;T&gt; <a class="code" href="a00168.html#ga1cd3c7e8207ad835a1f86c12b5f0e4ad" title="Build a matrix from a pointer.">make_mat2</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00473"></a>00473 {
<a name="l00474"></a>00474 <span class="keywordflow">return</span> <a class="code" href="a00168.html#ga73b043e4238811832471bfcfd7257900" title="Build a matrix from a pointer.">make_mat2x2</a>(ptr);
<a name="l00475"></a>00475 }
<a name="l00476"></a>00476
<a name="l00479"></a>00479 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00480"></a><a class="code" href="a00168.html#gac6e0eaaceaf9652ccad60c429e6c827f">00480</a> GLM_FUNC_QUALIFIER detail::tmat3x3&lt;T&gt; <a class="code" href="a00168.html#gac6e0eaaceaf9652ccad60c429e6c827f" title="Build a matrix from a pointer.">make_mat3</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00481"></a>00481 {
<a name="l00482"></a>00482 <span class="keywordflow">return</span> <a class="code" href="a00168.html#ga4a59d30459cfd98f66678298509ad6db" title="Build a matrix from a pointer.">make_mat3x3</a>(ptr);
<a name="l00483"></a>00483 }
<a name="l00484"></a>00484
<a name="l00487"></a>00487 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00488"></a><a class="code" href="a00168.html#ga35786a6758c046ef15fc4c03ae974861">00488</a> GLM_FUNC_QUALIFIER detail::tmat4x4&lt;T&gt; <a class="code" href="a00168.html#ga35786a6758c046ef15fc4c03ae974861" title="Build a matrix from a pointer.">make_mat4</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00489"></a>00489 {
<a name="l00490"></a>00490 <span class="keywordflow">return</span> <a class="code" href="a00168.html#ga06ffad3cc8cbf921588f48037f1e1a2a" title="Build a matrix from a pointer.">make_mat4x4</a>(ptr);
<a name="l00491"></a>00491 }
<a name="l00492"></a>00492
<a name="l00495"></a>00495 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00496"></a><a class="code" href="a00168.html#ga74d6da8815bc118fdf18c78f739f59e9">00496</a> GLM_FUNC_QUALIFIER detail::tquat&lt;T&gt; <a class="code" href="a00168.html#ga74d6da8815bc118fdf18c78f739f59e9" title="Build a quaternion from a pointer.">make_quat</a>(T <span class="keyword">const</span> * <span class="keyword">const</span> ptr)
<a name="l00497"></a>00497 {
<a name="l00498"></a>00498 detail::tquat&lt;T&gt; Result;
<a name="l00499"></a>00499 memcpy(<a class="code" href="a00168.html#ga57d829c43ef1f8bbe196343744392069" title="Return the constant address to the data of the input parameter.">value_ptr</a>(Result), ptr, <span class="keyword">sizeof</span>(<a class="code" href="a00015.html" title="Template for quaternion.">detail::tquat&lt;T&gt;</a>));
<a name="l00500"></a>00500 <span class="keywordflow">return</span> Result;
<a name="l00501"></a>00501 }
<a name="l00502"></a>00502
<a name="l00504"></a>00504 }<span class="comment">//namespace glm</span>
<a name="l00505"></a>00505
<a name="l00506"></a>00506 <span class="preprocessor">#include &quot;type_ptr.inl&quot;</span>
<a name="l00507"></a>00507
<a name="l00508"></a>00508 <span class="preprocessor">#endif//GLM_GTC_type_ptr</span>
<a name="l00509"></a>00509 <span class="preprocessor"></span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5
</small></address>
</body>
</html>