a00007.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <title>Known Issues</title>
  6. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  7. <link href="doxygen.css" rel="stylesheet" type="text/css"/>
  8. </head>
  9. <body>
  10. <!-- Generated by Doxygen 1.7.4 -->
  11. <div id="top">
  12. <div id="titlearea">
  13. <table cellspacing="0" cellpadding="0">
  14. <tbody>
  15. <tr style="height: 56px;">
  16. <td id="projectlogo"><img alt="Logo" src="logo-mini.png"/></td>
  17. </tr>
  18. </tbody>
  19. </table>
  20. </div>
  21. <div id="navrow1" class="tabs">
  22. <ul class="tablist">
  23. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  24. <li><a href="modules.html"><span>Modules</span></a></li>
  25. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  26. <li><a href="annotated.html"><span>Classes</span></a></li>
  27. <li><a href="files.html"><span>Files</span></a></li>
  28. </ul>
  29. </div>
  30. <div id="nav-path" class="navpath">
  31. <ul>
  32. <li class="navelem"><a class="el" href="index.html">OpenGL Mathematics</a> </li>
  33. </ul>
  34. </div>
  35. </div>
  36. <div class="header">
  37. <div class="headertitle">
  38. <div class="title">Known Issues </div> </div>
  39. </div>
  40. <div class="contents">
  41. <div class="textblock"><h2><a class="anchor" id="issue1"></a>
  42. not Function</h2>
  43. <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>
  44. <h2><a class="anchor" id="issue2"></a>
  45. Half Based Types</h2>
  46. <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>
  47. <p>Unfortunately, C++ 98 specification doesn’t support anonymous unions which limit hvec* vector components access to x, y, z and w.</p>
  48. <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>
  49. <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>
  50. <div class="fragment"><pre class="fragment"><span class="preprocessor">#define GLM_FORCE_ONLY_XYZW </span>
  51. <span class="preprocessor">#include &lt;glm/glm.hpp&gt;</span>
  52. </pre></div> </div></div>
  53. <hr class="footer"/><address class="footer"><small>Generated by&#160;
  54. <a href="http://www.doxygen.org/index.html">
  55. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
  56. </body>
  57. </html>