mirror of
https://github.com/g-truc/glm.git
synced 2024-11-29 11:24:35 +00:00
58 lines
2.7 KiB
HTML
58 lines
2.7 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>Known Issues</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.4 -->
|
||
<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="modules.html"><span>Modules</span></a></li>
|
||
<li><a href="namespaces.html"><span>Namespaces</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 id="nav-path" class="navpath">
|
||
<ul>
|
||
<li class="navelem"><a class="el" href="index.html">OpenGL Mathematics</a> </li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="header">
|
||
<div class="headertitle">
|
||
<div class="title">Known Issues </div> </div>
|
||
</div>
|
||
<div class="contents">
|
||
<div class="textblock"><h2><a class="anchor" id="issue1"></a>
|
||
not Function</h2>
|
||
<p>The GLSL keyword not is also a keyword in C++. To prevent name collisions, the GLSL not function has been implemented with the name not_.</p>
|
||
<h2><a class="anchor" id="issue2"></a>
|
||
Half Based Types</h2>
|
||
<p>GLM supports half float number types through the extension GLM_GTC_half_float. This extension provides the types half, hvec*, hmat*x* and hquat*.</p>
|
||
<p>Unfortunately, C++ 98 specification doesn’t support anonymous unions which limit hvec* vector components access to x, y, z and w.</p>
|
||
<p>However, Visual C++ does support anonymous unions if the language extensions are enabled (/Za to disable them). In this case GLM will automatically enables the support of all component names (x,y,z,w ; r,g,b,a ; s,t,p,q).</p>
|
||
<p>To uniformalize the component access across types, GLM provides the define GLM_FORCE_ONLY_XYZW which will generates errors if component accesses are done using r,g,b,a or s,t,p,q.</p>
|
||
<div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_FORCE_ONLY_XYZW </span>
|
||
<span class="preprocessor">#include <glm/glm.hpp></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.4 </small></address>
|
||
</body>
|
||
</html>
|