mirror of
https://github.com/g-truc/glm.git
synced 2024-11-23 01:14:34 +00:00
471 lines
46 KiB
HTML
471 lines
46 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>
|
|
<!-- Generated by Doxygen 1.7.3 -->
|
|
<div id="top">
|
|
<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>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related 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 List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<h1>type_ptr.hpp</h1> </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 "<a class="code" href="a00050.html" title="OpenGL Mathematics (glm.g-truc.net)">../glm.hpp</a>"</span>
|
|
<a name="l00064"></a>00064 <span class="preprocessor">#include "<a class="code" href="a00052.html" title="OpenGL Mathematics (glm.g-truc.net)">../gtc/half_float.hpp</a>"</span>
|
|
<a name="l00065"></a>00065 <span class="preprocessor">#include "<a class="code" href="a00091.html" title="OpenGL Mathematics (glm.g-truc.net)">../gtc/quaternion.hpp</a>"</span>
|
|
<a name="l00066"></a>00066 <span class="preprocessor">#include <cstring></span>
|
|
<a name="l00067"></a>00067
|
|
<a name="l00068"></a>00068 <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span>
|
|
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTC_type_ptr extension included")</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><<span class="keyword">typename</span> T>
|
|
<a name="l00080"></a>00080 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga74bfd339eac7b5d708eae615edf8ba62">00081</a> (
|
|
<a name="l00082"></a>00082 <a class="code" href="a00016.html" title="The basic 2D vector type.">detail::tvec2<T></a> <span class="keyword">const</span> & vec
|
|
<a name="l00083"></a>00083 )
|
|
<a name="l00084"></a>00084 {
|
|
<a name="l00085"></a>00085 <span class="keywordflow">return</span> &(vec.x);
|
|
<a name="l00086"></a>00086 }
|
|
<a name="l00087"></a>00087
|
|
<a name="l00090"></a>00090 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00091"></a>00091 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga4b4086f7fb85468b182df4eb7ea56dd9">00092</a> (
|
|
<a name="l00093"></a>00093 <a class="code" href="a00016.html" title="The basic 2D vector type.">detail::tvec2<T></a> & vec
|
|
<a name="l00094"></a>00094 )
|
|
<a name="l00095"></a>00095 {
|
|
<a name="l00096"></a>00096 <span class="keywordflow">return</span> &(vec.x);
|
|
<a name="l00097"></a>00097 }
|
|
<a name="l00098"></a>00098
|
|
<a name="l00101"></a>00101 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00102"></a>00102 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga80585895a5f5db5afa98de6de8d89f6b">00103</a> (
|
|
<a name="l00104"></a>00104 <a class="code" href="a00017.html" title="Basic 3D vector type.">detail::tvec3<T></a> <span class="keyword">const</span> & vec
|
|
<a name="l00105"></a>00105 )
|
|
<a name="l00106"></a>00106 {
|
|
<a name="l00107"></a>00107 <span class="keywordflow">return</span> &(vec.x);
|
|
<a name="l00108"></a>00108 }
|
|
<a name="l00109"></a>00109
|
|
<a name="l00112"></a>00112 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00113"></a>00113 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga811199324fc355dfed5a5ca71e5ac4fe">00114</a> (
|
|
<a name="l00115"></a>00115 <a class="code" href="a00017.html" title="Basic 3D vector type.">detail::tvec3<T></a> & vec
|
|
<a name="l00116"></a>00116 )
|
|
<a name="l00117"></a>00117 {
|
|
<a name="l00118"></a>00118 <span class="keywordflow">return</span> &(vec.x);
|
|
<a name="l00119"></a>00119 }
|
|
<a name="l00120"></a>00120
|
|
<a name="l00123"></a>00123 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00124"></a>00124 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#gaec693dd8f9afcef7dde0d2a508d785ed">00125</a> (
|
|
<a name="l00126"></a>00126 <a class="code" href="a00018.html" title="Basic 4D vector type.">detail::tvec4<T></a> <span class="keyword">const</span> & vec
|
|
<a name="l00127"></a>00127 )
|
|
<a name="l00128"></a>00128 {
|
|
<a name="l00129"></a>00129 <span class="keywordflow">return</span> &(vec.x);
|
|
<a name="l00130"></a>00130 }
|
|
<a name="l00131"></a>00131
|
|
<a name="l00134"></a>00134 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00135"></a>00135 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga5eaaf9129ebeb8cedb94fd6a28fcc6c8">00136</a> (
|
|
<a name="l00137"></a>00137 <a class="code" href="a00018.html" title="Basic 4D vector type.">detail::tvec4<T></a> & vec
|
|
<a name="l00138"></a>00138 )
|
|
<a name="l00139"></a>00139 {
|
|
<a name="l00140"></a>00140 <span class="keywordflow">return</span> &(vec.x);
|
|
<a name="l00141"></a>00141 }
|
|
<a name="l00142"></a>00142
|
|
<a name="l00145"></a>00145 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00146"></a>00146 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga81ed9d14f44a550d25b37219ec3dc912">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<T></a> <span class="keyword">const</span> & mat
|
|
<a name="l00149"></a>00149 )
|
|
<a name="l00150"></a>00150 {
|
|
<a name="l00151"></a>00151 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00152"></a>00152 }
|
|
<a name="l00153"></a>00153
|
|
<a name="l00156"></a>00156 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00157"></a>00157 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#gac105a0fa96a4ecf09921f362c1878ed5">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<T></a> & mat
|
|
<a name="l00160"></a>00160 )
|
|
<a name="l00161"></a>00161 {
|
|
<a name="l00162"></a>00162 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00163"></a>00163 }
|
|
<a name="l00164"></a>00164
|
|
<a name="l00167"></a>00167 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00168"></a>00168 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#gae7f646765152b74d1a9ff268f8c81262">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<T></a> <span class="keyword">const</span> & mat
|
|
<a name="l00171"></a>00171 )
|
|
<a name="l00172"></a>00172 {
|
|
<a name="l00173"></a>00173 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00174"></a>00174 }
|
|
<a name="l00175"></a>00175
|
|
<a name="l00178"></a>00178 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00179"></a>00179 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#gaac66412bc51f3a0eafdfb9d7ab0eecdd">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<T></a> & mat
|
|
<a name="l00182"></a>00182 )
|
|
<a name="l00183"></a>00183 {
|
|
<a name="l00184"></a>00184 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00185"></a>00185 }
|
|
<a name="l00186"></a>00186
|
|
<a name="l00189"></a>00189 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00190"></a>00190 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga02d4eb789039dbcb9085ed8344c0c68e">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<T></a> <span class="keyword">const</span> & mat
|
|
<a name="l00193"></a>00193 )
|
|
<a name="l00194"></a>00194 {
|
|
<a name="l00195"></a>00195 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00196"></a>00196 }
|
|
<a name="l00197"></a>00197
|
|
<a name="l00200"></a>00200 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00201"></a>00201 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga411407311dc0a74bc4086982051ace29">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<T></a> & mat
|
|
<a name="l00204"></a>00204 )
|
|
<a name="l00205"></a>00205 {
|
|
<a name="l00206"></a>00206 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00207"></a>00207 }
|
|
<a name="l00208"></a>00208
|
|
<a name="l00211"></a>00211 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00212"></a>00212 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga53003815758beacd8756885aa7b86c95">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<T></a> <span class="keyword">const</span> & mat
|
|
<a name="l00215"></a>00215 )
|
|
<a name="l00216"></a>00216 {
|
|
<a name="l00217"></a>00217 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00218"></a>00218 }
|
|
<a name="l00219"></a>00219
|
|
<a name="l00222"></a>00222 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00223"></a>00223 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga7b9eeb60a74a4ba8538c3f94669cfb46">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<T></a> & mat
|
|
<a name="l00226"></a>00226 )
|
|
<a name="l00227"></a>00227 {
|
|
<a name="l00228"></a>00228 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00229"></a>00229 }
|
|
<a name="l00230"></a>00230
|
|
<a name="l00233"></a>00233 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00234"></a>00234 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#gac330864cda6d39bf0bc95ca2a5383c9c">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<T></a> <span class="keyword">const</span> & mat
|
|
<a name="l00237"></a>00237 )
|
|
<a name="l00238"></a>00238 {
|
|
<a name="l00239"></a>00239 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00240"></a>00240 }
|
|
<a name="l00241"></a>00241
|
|
<a name="l00244"></a>00244 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00245"></a>00245 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga599a1af691b87926db5a883ca32ee3f8">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<T></a> & mat
|
|
<a name="l00248"></a>00248 )
|
|
<a name="l00249"></a>00249 {
|
|
<a name="l00250"></a>00250 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00251"></a>00251 }
|
|
<a name="l00252"></a>00252
|
|
<a name="l00255"></a>00255 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00256"></a>00256 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga0522335f80395b9a3a754572a8497941">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<T></a> <span class="keyword">const</span> & mat
|
|
<a name="l00259"></a>00259 )
|
|
<a name="l00260"></a>00260 {
|
|
<a name="l00261"></a>00261 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00262"></a>00262 }
|
|
<a name="l00263"></a>00263
|
|
<a name="l00266"></a>00266 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00267"></a>00267 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga919d5633be0d81c07ba0b6d919fe920c">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<T></a> & mat
|
|
<a name="l00270"></a>00270 )
|
|
<a name="l00271"></a>00271 {
|
|
<a name="l00272"></a>00272 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00273"></a>00273 }
|
|
<a name="l00274"></a>00274
|
|
<a name="l00277"></a>00277 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00278"></a>00278 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga9cfff89d7c0099b4471c48feb6f48b38">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<T></a> <span class="keyword">const</span> & mat
|
|
<a name="l00281"></a>00281 )
|
|
<a name="l00282"></a>00282 {
|
|
<a name="l00283"></a>00283 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00284"></a>00284 }
|
|
<a name="l00285"></a>00285
|
|
<a name="l00288"></a>00288 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00289"></a>00289 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga3fea3ce476ed17bed482c5ea188f4437">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<T></a> & mat
|
|
<a name="l00292"></a>00292 )
|
|
<a name="l00293"></a>00293 {
|
|
<a name="l00294"></a>00294 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00295"></a>00295 }
|
|
<a name="l00296"></a>00296
|
|
<a name="l00299"></a>00299 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00300"></a>00300 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga8ed8878400cc03eddbd5fd0a8933dae2">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<T></a> <span class="keyword">const</span> & mat
|
|
<a name="l00303"></a>00303 )
|
|
<a name="l00304"></a>00304 {
|
|
<a name="l00305"></a>00305 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00306"></a>00306 }
|
|
<a name="l00307"></a>00307
|
|
<a name="l00310"></a>00310 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00311"></a>00311 GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#gac9471a1eb484418a4ab986c4536908ed">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<T></a> & mat
|
|
<a name="l00314"></a>00314 )
|
|
<a name="l00315"></a>00315 {
|
|
<a name="l00316"></a>00316 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00317"></a>00317 }
|
|
<a name="l00318"></a>00318
|
|
<a name="l00321"></a>00321 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00322"></a>00322 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga8522225f36d890635321daf10f095097">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<T></a> <span class="keyword">const</span> & mat
|
|
<a name="l00325"></a>00325 )
|
|
<a name="l00326"></a>00326 {
|
|
<a name="l00327"></a>00327 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00328"></a>00328 }
|
|
<a name="l00329"></a>00329
|
|
<a name="l00332"></a>00332 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00333"></a>00333 GLM_FUNC_QUALIFIER T <span class="keyword">const</span> * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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#ga29b8e3b46a175ee2d215a077b74e74f7">00334</a> (
|
|
<a name="l00335"></a>00335 <a class="code" href="a00015.html" title="Template for quaternion.">detail::tquat<T></a> <span class="keyword">const</span> & q
|
|
<a name="l00336"></a>00336 )
|
|
<a name="l00337"></a>00337 {
|
|
<a name="l00338"></a>00338 <span class="keywordflow">return</span> &(q[0]);
|
|
<a name="l00339"></a>00339 }
|
|
<a name="l00340"></a>00340
|
|
<a name="l00343"></a>00343 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00344"></a><a class="code" href="a00168.html#gabcda754501e952ed7681a8ada40703e2">00344</a> GLM_FUNC_QUALIFIER T * <a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></a> & mat)
|
|
<a name="l00345"></a>00345 {
|
|
<a name="l00346"></a>00346 <span class="keywordflow">return</span> &(mat[0].x);
|
|
<a name="l00347"></a>00347 }
|
|
<a name="l00348"></a>00348
|
|
<a name="l00351"></a>00351 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
|
<a name="l00352"></a><a class="code" href="a00168.html#ga1add50c344aeaee4d63ca26c65c43810">00352</a> GLM_FUNC_QUALIFIER <a class="code" href="a00016.html" title="The basic 2D vector type.">detail::tvec2<T></a> <a class="code" href="a00168.html#ga1add50c344aeaee4d63ca26c65c43810" 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 <a class="code" href="a00016.html" title="The basic 2D vector type.">detail::tvec2<T></a> Result;
|
|
<a name="l00355"></a>00355 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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" title="The basic 2D vector type.">detail::tvec2<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00362"></a><a class="code" href="a00168.html#gaca8574f5bc364994c221693a311885bf">00362</a> GLM_FUNC_QUALIFIER <a class="code" href="a00017.html" title="Basic 3D vector type.">detail::tvec3<T></a> <a class="code" href="a00168.html#gaca8574f5bc364994c221693a311885bf" 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 <a class="code" href="a00017.html" title="Basic 3D vector type.">detail::tvec3<T></a> Result;
|
|
<a name="l00365"></a>00365 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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" title="Basic 3D vector type.">detail::tvec3<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00372"></a><a class="code" href="a00168.html#ga9cafc33e6b2297bd15a6eb9ef0644a9d">00372</a> GLM_FUNC_QUALIFIER <a class="code" href="a00018.html" title="Basic 4D vector type.">detail::tvec4<T></a> <a class="code" href="a00168.html#ga9cafc33e6b2297bd15a6eb9ef0644a9d" 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 <a class="code" href="a00018.html" title="Basic 4D vector type.">detail::tvec4<T></a> Result;
|
|
<a name="l00375"></a>00375 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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" title="Basic 4D vector type.">detail::tvec4<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00382"></a><a class="code" href="a00168.html#ga3d77404e58fbac56e3bb92fe10ee5cd3">00382</a> GLM_FUNC_QUALIFIER <a class="code" href="a00006.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <a class="code" href="a00168.html#ga3d77404e58fbac56e3bb92fe10ee5cd3" 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 <a class="code" href="a00006.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> Result;
|
|
<a name="l00385"></a>00385 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00392"></a><a class="code" href="a00168.html#ga3f3137992f7691b6ab9b76ef0a26df1c">00392</a> GLM_FUNC_QUALIFIER <a class="code" href="a00007.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<T></a> <a class="code" href="a00168.html#ga3f3137992f7691b6ab9b76ef0a26df1c" 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 <a class="code" href="a00007.html" title="Template for 2 columns and 3 rows matrix of floating-point numbers.">detail::tmat2x3<T></a> Result;
|
|
<a name="l00395"></a>00395 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00402"></a><a class="code" href="a00168.html#ga94a99790ce04ec5c8980eda3c5b8b21a">00402</a> GLM_FUNC_QUALIFIER <a class="code" href="a00008.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<T></a> <a class="code" href="a00168.html#ga94a99790ce04ec5c8980eda3c5b8b21a" 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 <a class="code" href="a00008.html" title="Template for 2 columns and 4 rows matrix of floating-point numbers.">detail::tmat2x4<T></a> Result;
|
|
<a name="l00405"></a>00405 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00412"></a><a class="code" href="a00168.html#gaaaa2157b70bb72ca3ccb345fee483b5a">00412</a> GLM_FUNC_QUALIFIER <a class="code" href="a00009.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<T></a> <a class="code" href="a00168.html#gaaaa2157b70bb72ca3ccb345fee483b5a" 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 <a class="code" href="a00009.html" title="Template for 3 columns and 2 rows matrix of floating-point numbers.">detail::tmat3x2<T></a> Result;
|
|
<a name="l00415"></a>00415 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00422"></a><a class="code" href="a00168.html#ga7aac39ec2931c14070bcdc4d43eba90f">00422</a> GLM_FUNC_QUALIFIER <a class="code" href="a00010.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00168.html#ga7aac39ec2931c14070bcdc4d43eba90f" 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 <a class="code" href="a00010.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> Result;
|
|
<a name="l00425"></a>00425 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00432"></a><a class="code" href="a00168.html#gaede4062ba381a6cf35d88a9e2e55b38e">00432</a> GLM_FUNC_QUALIFIER <a class="code" href="a00011.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<T></a> <a class="code" href="a00168.html#gaede4062ba381a6cf35d88a9e2e55b38e" 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 <a class="code" href="a00011.html" title="Template for 3 columns and 4 rows matrix of floating-point numbers.">detail::tmat3x4<T></a> Result;
|
|
<a name="l00435"></a>00435 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00442"></a><a class="code" href="a00168.html#ga2afb8d4b5f84a39e9e45ed465b32e324">00442</a> GLM_FUNC_QUALIFIER <a class="code" href="a00012.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<T></a> <a class="code" href="a00168.html#ga2afb8d4b5f84a39e9e45ed465b32e324" 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 <a class="code" href="a00012.html" title="Template for 4 columns and 2 rows matrix of floating-point numbers.">detail::tmat4x2<T></a> Result;
|
|
<a name="l00445"></a>00445 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00452"></a><a class="code" href="a00168.html#ga0717af13e146f7498eec405f4d9d6ada">00452</a> GLM_FUNC_QUALIFIER <a class="code" href="a00013.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<T></a> <a class="code" href="a00168.html#ga0717af13e146f7498eec405f4d9d6ada" 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 <a class="code" href="a00013.html" title="Template for 4 columns and 3 rows matrix of floating-point numbers.">detail::tmat4x3<T></a> Result;
|
|
<a name="l00455"></a>00455 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00462"></a><a class="code" href="a00168.html#ga215613510ef2c0c674523bc5bd3f7696">00462</a> GLM_FUNC_QUALIFIER <a class="code" href="a00014.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00168.html#ga215613510ef2c0c674523bc5bd3f7696" 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 <a class="code" href="a00014.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> Result;
|
|
<a name="l00465"></a>00465 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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><<span class="keyword">typename</span> T>
|
|
<a name="l00472"></a><a class="code" href="a00168.html#ga200576f11e750192aa7a782f0dd93c40">00472</a> GLM_FUNC_QUALIFIER <a class="code" href="a00006.html" title="Template for 2 * 2 matrix of floating-point numbers.">detail::tmat2x2<T></a> <a class="code" href="a00168.html#ga200576f11e750192aa7a782f0dd93c40" 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#ga3d77404e58fbac56e3bb92fe10ee5cd3" 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><<span class="keyword">typename</span> T>
|
|
<a name="l00480"></a><a class="code" href="a00168.html#ga5e17e784f8b8608bbfa56019d66ba53c">00480</a> GLM_FUNC_QUALIFIER <a class="code" href="a00010.html" title="Template for 3 * 3 matrix of floating-point numbers.">detail::tmat3x3<T></a> <a class="code" href="a00168.html#ga5e17e784f8b8608bbfa56019d66ba53c" 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#ga7aac39ec2931c14070bcdc4d43eba90f" 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><<span class="keyword">typename</span> T>
|
|
<a name="l00488"></a><a class="code" href="a00168.html#gaf65375a468b69b9b40ba0cf25ad036c1">00488</a> GLM_FUNC_QUALIFIER <a class="code" href="a00014.html" title="Template for 4 * 4 matrix of floating-point numbers.">detail::tmat4x4<T></a> <a class="code" href="a00168.html#gaf65375a468b69b9b40ba0cf25ad036c1" 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#ga215613510ef2c0c674523bc5bd3f7696" 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><<span class="keyword">typename</span> T>
|
|
<a name="l00496"></a><a class="code" href="a00168.html#gada6eb19de0df6f9c6cccac0bb53230a8">00496</a> GLM_FUNC_QUALIFIER <a class="code" href="a00015.html" title="Template for quaternion.">detail::tquat<T></a> <a class="code" href="a00168.html#gada6eb19de0df6f9c6cccac0bb53230a8" 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 <a class="code" href="a00015.html" title="Template for quaternion.">detail::tquat<T></a> Result;
|
|
<a name="l00499"></a>00499 memcpy(<a class="code" href="a00168.html#ga74bfd339eac7b5d708eae615edf8ba62" 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<T></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 "type_ptr.inl"</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 
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
|
|
</body>
|
|
</html>
|