mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 02:34:35 +00:00
121 lines
4.2 KiB
HTML
121 lines
4.2 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_GTC_swizzle: Swizzle 'operator' implementation</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.1 -->
|
||
|
<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><a href="files.html"><span>Files</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="header">
|
||
|
<div class="summary">
|
||
|
<a href="#func-members">Functions</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">GLM_GTC_swizzle: Swizzle 'operator' implementation</div> </div>
|
||
|
<div class="ingroups"><a class="el" href="a00136.html">GTC Extensions (Stable)</a></div></div>
|
||
|
<div class="contents">
|
||
|
<table class="memberdecls">
|
||
|
<tr><td colspan="2"><h2><a name="func-members"></a>
|
||
|
Functions</h2></td></tr>
|
||
|
<tr><td class="memTemplParams" colspan="2">template<typename T , template< typename > class vecType> </td></tr>
|
||
|
<tr><td class="memTemplItemLeft" align="right" valign="top">detail::tvec2< T > const & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00151.html#ga9eba89cade1f01221e5f4dc019b00245">swizzle</a> (vecType< T > const &v, comp x, comp y)</td></tr>
|
||
|
</table>
|
||
|
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
||
|
<p>Provide functions to emulate GLSL swizzle operator fonctionalities. </p>
|
||
|
<p><<a class="el" href="a00089.html" title="OpenGL Mathematics (glm.g-truc.net)">glm/gtc/swizzle.hpp</a>> need to be included to use these functionalities. </p>
|
||
|
<hr/><h2>Function Documentation</h2>
|
||
|
<a class="anchor" id="ga9eba89cade1f01221e5f4dc019b00245"></a><!-- doxytag: member="glm::swizzle" ref="ga9eba89cade1f01221e5f4dc019b00245" args="(vecType< T > const &v, comp x, comp y)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">detail::tvec2<T> const& glm::swizzle </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">vecType< T > const & </td>
|
||
|
<td class="paramname"><em>v</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">comp </td>
|
||
|
<td class="paramname"><em>x</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">comp </td>
|
||
|
<td class="paramname"><em>y</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
<dl><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">v</td><td>Vector source </td></tr>
|
||
|
<tr><td class="paramname">x</td><td></td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl><dt><b>Template Parameters:</b></dt><dd>
|
||
|
<table class="">
|
||
|
<tr><td class="paramname">T</td><td></td></tr>
|
||
|
<tr><td class="paramname">vecType</td><td></td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00151.html" title="Provide functions to emulate GLSL swizzle operator fonctionalities.">GLM_GTC_swizzle: Swizzle 'operator' implementation</a> </dd></dl>
|
||
|
|
||
|
</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.5.1
|
||
|
</small></address>
|
||
|
|
||
|
</body>
|
||
|
</html>
|