Updated doxygen doncumentation
This commit is contained in:
@@ -577,151 +577,158 @@
|
||||
<div class="line"><a name="l00536"></a><span class="lineno"> 536</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_ARCH GLM_ARCH_PURE</span></div>
|
||||
<div class="line"><a name="l00537"></a><span class="lineno"> 537</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00538"></a><span class="lineno"> 538</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00539"></a><span class="lineno"> 539</span> <span class="comment">//#if(GLM_ARCH != GLM_ARCH_PURE)</span></div>
|
||||
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span> <span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_AVX2)</span></div>
|
||||
<div class="line"><a name="l00541"></a><span class="lineno"> 541</span> <span class="preprocessor"></span><span class="preprocessor"># include <immintrin.h></span></div>
|
||||
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span> <span class="preprocessor"></span><span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_AVX)</span></div>
|
||||
<div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="preprocessor"></span><span class="preprocessor"># include <immintrin.h></span></div>
|
||||
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span> <span class="preprocessor"></span><span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE4)</span></div>
|
||||
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="preprocessor"></span><span class="preprocessor"># include <smmintrin.h></span></div>
|
||||
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00549"></a><span class="lineno"> 549</span> <span class="preprocessor"></span><span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE3)</span></div>
|
||||
<div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="preprocessor"></span><span class="preprocessor"># include <pmmintrin.h></span></div>
|
||||
<div class="line"><a name="l00551"></a><span class="lineno"> 551</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="preprocessor"></span><span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE2)</span></div>
|
||||
<div class="line"><a name="l00553"></a><span class="lineno"> 553</span> <span class="preprocessor"></span><span class="preprocessor"># include <emmintrin.h></span></div>
|
||||
<div class="line"><a name="l00554"></a><span class="lineno"> 554</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span> <span class="preprocessor"></span><span class="comment">//#endif//(GLM_ARCH != GLM_ARCH_PURE)</span></div>
|
||||
<div class="line"><a name="l00556"></a><span class="lineno"> 556</span> </div>
|
||||
<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_ARCH_DISPLAYED))</span></div>
|
||||
<div class="line"><a name="l00558"></a><span class="lineno"> 558</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_MESSAGE_ARCH_DISPLAYED</span></div>
|
||||
<div class="line"><a name="l00559"></a><span class="lineno"> 559</span> <span class="preprocessor"></span><span class="preprocessor"># if(GLM_ARCH == GLM_ARCH_PURE)</span></div>
|
||||
<div class="line"><a name="l00560"></a><span class="lineno"> 560</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: Platform independent")</span></div>
|
||||
<div class="line"><a name="l00561"></a><span class="lineno"> 561</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_SSE2)</span></div>
|
||||
<div class="line"><a name="l00562"></a><span class="lineno"> 562</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: SSE2 instruction set")</span></div>
|
||||
<div class="line"><a name="l00563"></a><span class="lineno"> 563</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_SSE3)</span></div>
|
||||
<div class="line"><a name="l00564"></a><span class="lineno"> 564</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: SSE3 instruction set")</span></div>
|
||||
<div class="line"><a name="l00565"></a><span class="lineno"> 565</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_SSE4)</span></div>
|
||||
<div class="line"><a name="l00566"></a><span class="lineno"> 566</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: SSE4 instruction set")</span></div>
|
||||
<div class="line"><a name="l00567"></a><span class="lineno"> 567</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_AVX)</span></div>
|
||||
<div class="line"><a name="l00568"></a><span class="lineno"> 568</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: AVX instruction set")</span></div>
|
||||
<div class="line"><a name="l00569"></a><span class="lineno"> 569</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_AVX2)</span></div>
|
||||
<div class="line"><a name="l00570"></a><span class="lineno"> 570</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: AVX2 instruction set")</span></div>
|
||||
<div class="line"><a name="l00571"></a><span class="lineno"> 571</span> <span class="preprocessor"></span><span class="preprocessor"># endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00572"></a><span class="lineno"> 572</span> <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGE</span></div>
|
||||
<div class="line"><a name="l00573"></a><span class="lineno"> 573</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00575"></a><span class="lineno"> 575</span> <span class="comment">// Support check macros</span></div>
|
||||
<div class="line"><a name="l00576"></a><span class="lineno"> 576</span> </div>
|
||||
<div class="line"><a name="l00577"></a><span class="lineno"> 577</span> <span class="preprocessor">#define GLM_SUPPORT_ANONYMOUS_UNION() \</span></div>
|
||||
<div class="line"><a name="l00578"></a><span class="lineno"> 578</span> <span class="preprocessor"> ((GLM_LANG & GLM_LANG_CXX98) == GLM_LANG_CXX98)</span></div>
|
||||
<div class="line"><a name="l00579"></a><span class="lineno"> 579</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00580"></a><span class="lineno"> 580</span> <span class="comment">//#define GLM_SUPPORT_ANONYMOUS_UNION_OF_STRUCTURE() <backslash></span></div>
|
||||
<div class="line"><a name="l00581"></a><span class="lineno"> 581</span> <span class="comment">// (((GLM_LANG & GLM_LANG_CXX11) == GLM_LANG_CXX11) || ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_LANG & GLM_LANG_CXXMS) == GLM_LANG_CXXMS) || ((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_LANG == GLM_LANG_CXX0X)))</span></div>
|
||||
<div class="line"><a name="l00582"></a><span class="lineno"> 582</span> </div>
|
||||
<div class="line"><a name="l00583"></a><span class="lineno"> 583</span> <span class="preprocessor">#define GLM_SUPPORT_ANONYMOUS_UNION_OF_STRUCTURE() \</span></div>
|
||||
<div class="line"><a name="l00584"></a><span class="lineno"> 584</span> <span class="preprocessor"> (((GLM_LANG & GLM_LANG_CXX11) == GLM_LANG_CXX11) || ((GLM_COMPILER & GLM_COMPILER_VC) && ((GLM_LANG & GLM_LANG_CXXMS) == GLM_LANG_CXXMS)) || ((GLM_LANG == GLM_LANG_CXX0X) == GLM_LANG_CXX0X))</span></div>
|
||||
<div class="line"><a name="l00585"></a><span class="lineno"> 585</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00586"></a><span class="lineno"> 586</span> <span class="preprocessor">#define GLM_SUPPORT_SWIZZLE_OPERATOR() \</span></div>
|
||||
<div class="line"><a name="l00587"></a><span class="lineno"> 587</span> <span class="preprocessor"> (</span><span class="comment">/*defined(GLM_SWIZZLE) && */</span><span class="preprocessor">GLM_SUPPORT_ANONYMOUS_UNION_OF_STRUCTURE())</span></div>
|
||||
<div class="line"><a name="l00588"></a><span class="lineno"> 588</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00589"></a><span class="lineno"> 589</span> <span class="preprocessor">#define GLM_SUPPORT_SWIZZLE_FUNCTION() defined(GLM_SWIZZLE)</span></div>
|
||||
<div class="line"><a name="l00590"></a><span class="lineno"> 590</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00592"></a><span class="lineno"> 592</span> <span class="comment">// Components</span></div>
|
||||
<div class="line"><a name="l00593"></a><span class="lineno"> 593</span> </div>
|
||||
<div class="line"><a name="l00594"></a><span class="lineno"> 594</span> <span class="comment">//#define GLM_FORCE_ONLY_XYZW</span></div>
|
||||
<div class="line"><a name="l00595"></a><span class="lineno"> 595</span> <span class="preprocessor">#define GLM_COMPONENT_ONLY_XYZW 0 // To disable multiple vector component names access.</span></div>
|
||||
<div class="line"><a name="l00596"></a><span class="lineno"> 596</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_COMPONENT_CXX98 1 // </span></div>
|
||||
<div class="line"><a name="l00597"></a><span class="lineno"> 597</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_COMPONENT_CXX11 2 // To use anonymous union to provide multiple component names access for class valType. Visual C++ only.</span></div>
|
||||
<div class="line"><a name="l00598"></a><span class="lineno"> 598</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00599"></a><span class="lineno"> 599</span> <span class="preprocessor">#if(GLM_SUPPORT_ANONYMOUS_UNION_OF_STRUCTURE() && !defined(GLM_FORCE_ONLY_XYZW))</span></div>
|
||||
<div class="line"><a name="l00600"></a><span class="lineno"> 600</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_COMPONENT GLM_COMPONENT_CXX11</span></div>
|
||||
<div class="line"><a name="l00601"></a><span class="lineno"> 601</span> <span class="preprocessor"></span><span class="preprocessor">#elif(GLM_SUPPORT_ANONYMOUS_UNION() && !defined(GLM_FORCE_ONLY_XYZW))</span></div>
|
||||
<div class="line"><a name="l00602"></a><span class="lineno"> 602</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_COMPONENT GLM_COMPONENT_CXX98</span></div>
|
||||
<div class="line"><a name="l00603"></a><span class="lineno"> 603</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l00604"></a><span class="lineno"> 604</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_COMPONENT GLM_COMPONENT_ONLY_XYZW</span></div>
|
||||
<div class="line"><a name="l00605"></a><span class="lineno"> 605</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00606"></a><span class="lineno"> 606</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00607"></a><span class="lineno"> 607</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_COMPONENT_DISPLAYED))</span></div>
|
||||
<div class="line"><a name="l00608"></a><span class="lineno"> 608</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_MESSAGE_COMPONENT_DISPLAYED</span></div>
|
||||
<div class="line"><a name="l00609"></a><span class="lineno"> 609</span> <span class="preprocessor"></span><span class="preprocessor"># if(GLM_COMPONENT == GLM_COMPONENT_CXX98)</span></div>
|
||||
<div class="line"><a name="l00610"></a><span class="lineno"> 610</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: x,y,z,w; r,g,b,a; s,t,p,q component names except of half based vector types")</span></div>
|
||||
<div class="line"><a name="l00611"></a><span class="lineno"> 611</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_COMPONENT == GLM_COMPONENT_ONLY_XYZW)</span></div>
|
||||
<div class="line"><a name="l00612"></a><span class="lineno"> 612</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: x,y,z,w component names for all vector types")</span></div>
|
||||
<div class="line"><a name="l00613"></a><span class="lineno"> 613</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_COMPONENT == GLM_COMPONENT_CXX11)</span></div>
|
||||
<div class="line"><a name="l00614"></a><span class="lineno"> 614</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: x,y,z,w; r,g,b,a; s,t,p,q component names for all vector types")</span></div>
|
||||
<div class="line"><a name="l00615"></a><span class="lineno"> 615</span> <span class="preprocessor"></span><span class="preprocessor"># else</span></div>
|
||||
<div class="line"><a name="l00616"></a><span class="lineno"> 616</span> <span class="preprocessor"></span><span class="preprocessor"># error "GLM: GLM_COMPONENT value unknown"</span></div>
|
||||
<div class="line"><a name="l00617"></a><span class="lineno"> 617</span> <span class="preprocessor"></span><span class="preprocessor"># endif//GLM_MESSAGE_COMPONENT_DISPLAYED</span></div>
|
||||
<div class="line"><a name="l00618"></a><span class="lineno"> 618</span> <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGE</span></div>
|
||||
<div class="line"><a name="l00619"></a><span class="lineno"> 619</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00621"></a><span class="lineno"> 621</span> <span class="comment">// Radians</span></div>
|
||||
<div class="line"><a name="l00622"></a><span class="lineno"> 622</span> </div>
|
||||
<div class="line"><a name="l00623"></a><span class="lineno"> 623</span> <span class="comment">//#define GLM_FORCE_RADIANS</span></div>
|
||||
<div class="line"><a name="l00624"></a><span class="lineno"> 624</span> </div>
|
||||
<div class="line"><a name="l00626"></a><span class="lineno"> 626</span> <span class="comment">// Static assert</span></div>
|
||||
<div class="line"><a name="l00627"></a><span class="lineno"> 627</span> </div>
|
||||
<div class="line"><a name="l00628"></a><span class="lineno"> 628</span> <span class="preprocessor">#if(GLM_LANG == GLM_LANG_CXX0X)</span></div>
|
||||
<div class="line"><a name="l00629"></a><span class="lineno"> 629</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT(x, message) static_assert(x, message)</span></div>
|
||||
<div class="line"><a name="l00630"></a><span class="lineno"> 630</span> <span class="preprocessor"></span><span class="preprocessor">#elif(defined(BOOST_STATIC_ASSERT))</span></div>
|
||||
<div class="line"><a name="l00631"></a><span class="lineno"> 631</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT(x, message) BOOST_STATIC_ASSERT(x)</span></div>
|
||||
<div class="line"><a name="l00632"></a><span class="lineno"> 632</span> <span class="preprocessor"></span><span class="preprocessor">#elif(GLM_COMPILER & GLM_COMPILER_VC)</span></div>
|
||||
<div class="line"><a name="l00633"></a><span class="lineno"> 633</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT(x, message) typedef char __CASSERT__##__LINE__[(x) ? 1 : -1]</span></div>
|
||||
<div class="line"><a name="l00634"></a><span class="lineno"> 634</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l00635"></a><span class="lineno"> 635</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT(x, message)</span></div>
|
||||
<div class="line"><a name="l00636"></a><span class="lineno"> 636</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT_NULL</span></div>
|
||||
<div class="line"><a name="l00637"></a><span class="lineno"> 637</span> <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_LANG</span></div>
|
||||
<div class="line"><a name="l00638"></a><span class="lineno"> 638</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00640"></a><span class="lineno"> 640</span> <span class="comment">// Qualifiers </span></div>
|
||||
<div class="line"><a name="l00641"></a><span class="lineno"> 641</span> </div>
|
||||
<div class="line"><a name="l00642"></a><span class="lineno"> 642</span> <span class="comment">// User defines: GLM_FORCE_INLINE GLM_FORCE_CUDA</span></div>
|
||||
<div class="line"><a name="l00643"></a><span class="lineno"> 643</span> </div>
|
||||
<div class="line"><a name="l00644"></a><span class="lineno"> 644</span> <span class="preprocessor">#if(defined(GLM_FORCE_CUDA) || (GLM_COMPILER & GLM_COMPILER_CUDA))</span></div>
|
||||
<div class="line"><a name="l00645"></a><span class="lineno"> 645</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_CUDA_FUNC_DEF __device__ __host__ </span></div>
|
||||
<div class="line"><a name="l00646"></a><span class="lineno"> 646</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_CUDA_FUNC_DECL __device__ __host__ </span></div>
|
||||
<div class="line"><a name="l00647"></a><span class="lineno"> 647</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l00648"></a><span class="lineno"> 648</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_CUDA_FUNC_DEF</span></div>
|
||||
<div class="line"><a name="l00649"></a><span class="lineno"> 649</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_CUDA_FUNC_DECL</span></div>
|
||||
<div class="line"><a name="l00650"></a><span class="lineno"> 650</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00651"></a><span class="lineno"> 651</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00652"></a><span class="lineno"> 652</span> <span class="preprocessor">#if GLM_COMPILER & GLM_COMPILER_GCC</span></div>
|
||||
<div class="line"><a name="l00653"></a><span class="lineno"> 653</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_VAR_USED __attribute__ ((unused))</span></div>
|
||||
<div class="line"><a name="l00539"></a><span class="lineno"> 539</span> <span class="comment">// With MinGW-W64, including intrinsic headers before intrin.h will produce some errors. The problem is</span></div>
|
||||
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span> <span class="comment">// that windows.h (and maybe other headers) will silently include intrin.h, which of course causes problems.</span></div>
|
||||
<div class="line"><a name="l00541"></a><span class="lineno"> 541</span> <span class="comment">// To fix, we just explicitly include intrin.h here.</span></div>
|
||||
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span> <span class="preprocessor">#if defined(__MINGW32__) && (GLM_ARCH != GLM_ARCH_PURE)</span></div>
|
||||
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span> <span class="preprocessor"></span><span class="preprocessor"># include <intrin.h></span></div>
|
||||
<div class="line"><a name="l00544"></a><span class="lineno"> 544</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span> <span class="comment">//#if(GLM_ARCH != GLM_ARCH_PURE)</span></div>
|
||||
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_AVX2)</span></div>
|
||||
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span> <span class="preprocessor"></span><span class="preprocessor"># include <immintrin.h></span></div>
|
||||
<div class="line"><a name="l00549"></a><span class="lineno"> 549</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="preprocessor"></span><span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_AVX)</span></div>
|
||||
<div class="line"><a name="l00551"></a><span class="lineno"> 551</span> <span class="preprocessor"></span><span class="preprocessor"># include <immintrin.h></span></div>
|
||||
<div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00553"></a><span class="lineno"> 553</span> <span class="preprocessor"></span><span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE4)</span></div>
|
||||
<div class="line"><a name="l00554"></a><span class="lineno"> 554</span> <span class="preprocessor"></span><span class="preprocessor"># include <smmintrin.h></span></div>
|
||||
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00556"></a><span class="lineno"> 556</span> <span class="preprocessor"></span><span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE3)</span></div>
|
||||
<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> <span class="preprocessor"></span><span class="preprocessor"># include <pmmintrin.h></span></div>
|
||||
<div class="line"><a name="l00558"></a><span class="lineno"> 558</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00559"></a><span class="lineno"> 559</span> <span class="preprocessor"></span><span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE2)</span></div>
|
||||
<div class="line"><a name="l00560"></a><span class="lineno"> 560</span> <span class="preprocessor"></span><span class="preprocessor"># include <emmintrin.h></span></div>
|
||||
<div class="line"><a name="l00561"></a><span class="lineno"> 561</span> <span class="preprocessor">#endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00562"></a><span class="lineno"> 562</span> <span class="preprocessor"></span><span class="comment">//#endif//(GLM_ARCH != GLM_ARCH_PURE)</span></div>
|
||||
<div class="line"><a name="l00563"></a><span class="lineno"> 563</span> </div>
|
||||
<div class="line"><a name="l00564"></a><span class="lineno"> 564</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_ARCH_DISPLAYED))</span></div>
|
||||
<div class="line"><a name="l00565"></a><span class="lineno"> 565</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_MESSAGE_ARCH_DISPLAYED</span></div>
|
||||
<div class="line"><a name="l00566"></a><span class="lineno"> 566</span> <span class="preprocessor"></span><span class="preprocessor"># if(GLM_ARCH == GLM_ARCH_PURE)</span></div>
|
||||
<div class="line"><a name="l00567"></a><span class="lineno"> 567</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: Platform independent")</span></div>
|
||||
<div class="line"><a name="l00568"></a><span class="lineno"> 568</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_SSE2)</span></div>
|
||||
<div class="line"><a name="l00569"></a><span class="lineno"> 569</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: SSE2 instruction set")</span></div>
|
||||
<div class="line"><a name="l00570"></a><span class="lineno"> 570</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_SSE3)</span></div>
|
||||
<div class="line"><a name="l00571"></a><span class="lineno"> 571</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: SSE3 instruction set")</span></div>
|
||||
<div class="line"><a name="l00572"></a><span class="lineno"> 572</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_SSE4)</span></div>
|
||||
<div class="line"><a name="l00573"></a><span class="lineno"> 573</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: SSE4 instruction set")</span></div>
|
||||
<div class="line"><a name="l00574"></a><span class="lineno"> 574</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_AVX)</span></div>
|
||||
<div class="line"><a name="l00575"></a><span class="lineno"> 575</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: AVX instruction set")</span></div>
|
||||
<div class="line"><a name="l00576"></a><span class="lineno"> 576</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_ARCH & GLM_ARCH_AVX2)</span></div>
|
||||
<div class="line"><a name="l00577"></a><span class="lineno"> 577</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: AVX2 instruction set")</span></div>
|
||||
<div class="line"><a name="l00578"></a><span class="lineno"> 578</span> <span class="preprocessor"></span><span class="preprocessor"># endif//GLM_ARCH</span></div>
|
||||
<div class="line"><a name="l00579"></a><span class="lineno"> 579</span> <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGE</span></div>
|
||||
<div class="line"><a name="l00580"></a><span class="lineno"> 580</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00582"></a><span class="lineno"> 582</span> <span class="comment">// Support check macros</span></div>
|
||||
<div class="line"><a name="l00583"></a><span class="lineno"> 583</span> </div>
|
||||
<div class="line"><a name="l00584"></a><span class="lineno"> 584</span> <span class="preprocessor">#define GLM_SUPPORT_ANONYMOUS_UNION() \</span></div>
|
||||
<div class="line"><a name="l00585"></a><span class="lineno"> 585</span> <span class="preprocessor"> ((GLM_LANG & GLM_LANG_CXX98) == GLM_LANG_CXX98)</span></div>
|
||||
<div class="line"><a name="l00586"></a><span class="lineno"> 586</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00587"></a><span class="lineno"> 587</span> <span class="comment">//#define GLM_SUPPORT_ANONYMOUS_UNION_OF_STRUCTURE() <backslash></span></div>
|
||||
<div class="line"><a name="l00588"></a><span class="lineno"> 588</span> <span class="comment">// (((GLM_LANG & GLM_LANG_CXX11) == GLM_LANG_CXX11) || ((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_LANG & GLM_LANG_CXXMS) == GLM_LANG_CXXMS) || ((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_LANG == GLM_LANG_CXX0X)))</span></div>
|
||||
<div class="line"><a name="l00589"></a><span class="lineno"> 589</span> </div>
|
||||
<div class="line"><a name="l00590"></a><span class="lineno"> 590</span> <span class="preprocessor">#define GLM_SUPPORT_ANONYMOUS_UNION_OF_STRUCTURE() \</span></div>
|
||||
<div class="line"><a name="l00591"></a><span class="lineno"> 591</span> <span class="preprocessor"> (((GLM_LANG & GLM_LANG_CXX11) == GLM_LANG_CXX11) || ((GLM_COMPILER & GLM_COMPILER_VC) && ((GLM_LANG & GLM_LANG_CXXMS) == GLM_LANG_CXXMS)) || ((GLM_LANG == GLM_LANG_CXX0X) == GLM_LANG_CXX0X))</span></div>
|
||||
<div class="line"><a name="l00592"></a><span class="lineno"> 592</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00593"></a><span class="lineno"> 593</span> <span class="preprocessor">#define GLM_SUPPORT_SWIZZLE_OPERATOR() \</span></div>
|
||||
<div class="line"><a name="l00594"></a><span class="lineno"> 594</span> <span class="preprocessor"> (</span><span class="comment">/*defined(GLM_SWIZZLE) && */</span><span class="preprocessor">GLM_SUPPORT_ANONYMOUS_UNION_OF_STRUCTURE())</span></div>
|
||||
<div class="line"><a name="l00595"></a><span class="lineno"> 595</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00596"></a><span class="lineno"> 596</span> <span class="preprocessor">#define GLM_SUPPORT_SWIZZLE_FUNCTION() defined(GLM_SWIZZLE)</span></div>
|
||||
<div class="line"><a name="l00597"></a><span class="lineno"> 597</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00599"></a><span class="lineno"> 599</span> <span class="comment">// Components</span></div>
|
||||
<div class="line"><a name="l00600"></a><span class="lineno"> 600</span> </div>
|
||||
<div class="line"><a name="l00601"></a><span class="lineno"> 601</span> <span class="comment">//#define GLM_FORCE_ONLY_XYZW</span></div>
|
||||
<div class="line"><a name="l00602"></a><span class="lineno"> 602</span> <span class="preprocessor">#define GLM_COMPONENT_ONLY_XYZW 0 // To disable multiple vector component names access.</span></div>
|
||||
<div class="line"><a name="l00603"></a><span class="lineno"> 603</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_COMPONENT_CXX98 1 // </span></div>
|
||||
<div class="line"><a name="l00604"></a><span class="lineno"> 604</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_COMPONENT_CXX11 2 // To use anonymous union to provide multiple component names access for class valType. Visual C++ only.</span></div>
|
||||
<div class="line"><a name="l00605"></a><span class="lineno"> 605</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00606"></a><span class="lineno"> 606</span> <span class="preprocessor">#if(GLM_SUPPORT_ANONYMOUS_UNION_OF_STRUCTURE() && !defined(GLM_FORCE_ONLY_XYZW))</span></div>
|
||||
<div class="line"><a name="l00607"></a><span class="lineno"> 607</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_COMPONENT GLM_COMPONENT_CXX11</span></div>
|
||||
<div class="line"><a name="l00608"></a><span class="lineno"> 608</span> <span class="preprocessor"></span><span class="preprocessor">#elif(GLM_SUPPORT_ANONYMOUS_UNION() && !defined(GLM_FORCE_ONLY_XYZW))</span></div>
|
||||
<div class="line"><a name="l00609"></a><span class="lineno"> 609</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_COMPONENT GLM_COMPONENT_CXX98</span></div>
|
||||
<div class="line"><a name="l00610"></a><span class="lineno"> 610</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l00611"></a><span class="lineno"> 611</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_COMPONENT GLM_COMPONENT_ONLY_XYZW</span></div>
|
||||
<div class="line"><a name="l00612"></a><span class="lineno"> 612</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00613"></a><span class="lineno"> 613</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00614"></a><span class="lineno"> 614</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_COMPONENT_DISPLAYED))</span></div>
|
||||
<div class="line"><a name="l00615"></a><span class="lineno"> 615</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_MESSAGE_COMPONENT_DISPLAYED</span></div>
|
||||
<div class="line"><a name="l00616"></a><span class="lineno"> 616</span> <span class="preprocessor"></span><span class="preprocessor"># if(GLM_COMPONENT == GLM_COMPONENT_CXX98)</span></div>
|
||||
<div class="line"><a name="l00617"></a><span class="lineno"> 617</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: x,y,z,w; r,g,b,a; s,t,p,q component names except of half based vector types")</span></div>
|
||||
<div class="line"><a name="l00618"></a><span class="lineno"> 618</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_COMPONENT == GLM_COMPONENT_ONLY_XYZW)</span></div>
|
||||
<div class="line"><a name="l00619"></a><span class="lineno"> 619</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: x,y,z,w component names for all vector types")</span></div>
|
||||
<div class="line"><a name="l00620"></a><span class="lineno"> 620</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_COMPONENT == GLM_COMPONENT_CXX11)</span></div>
|
||||
<div class="line"><a name="l00621"></a><span class="lineno"> 621</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: x,y,z,w; r,g,b,a; s,t,p,q component names for all vector types")</span></div>
|
||||
<div class="line"><a name="l00622"></a><span class="lineno"> 622</span> <span class="preprocessor"></span><span class="preprocessor"># else</span></div>
|
||||
<div class="line"><a name="l00623"></a><span class="lineno"> 623</span> <span class="preprocessor"></span><span class="preprocessor"># error "GLM: GLM_COMPONENT value unknown"</span></div>
|
||||
<div class="line"><a name="l00624"></a><span class="lineno"> 624</span> <span class="preprocessor"></span><span class="preprocessor"># endif//GLM_MESSAGE_COMPONENT_DISPLAYED</span></div>
|
||||
<div class="line"><a name="l00625"></a><span class="lineno"> 625</span> <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGE</span></div>
|
||||
<div class="line"><a name="l00626"></a><span class="lineno"> 626</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00628"></a><span class="lineno"> 628</span> <span class="comment">// Radians</span></div>
|
||||
<div class="line"><a name="l00629"></a><span class="lineno"> 629</span> </div>
|
||||
<div class="line"><a name="l00630"></a><span class="lineno"> 630</span> <span class="comment">//#define GLM_FORCE_RADIANS</span></div>
|
||||
<div class="line"><a name="l00631"></a><span class="lineno"> 631</span> </div>
|
||||
<div class="line"><a name="l00633"></a><span class="lineno"> 633</span> <span class="comment">// Static assert</span></div>
|
||||
<div class="line"><a name="l00634"></a><span class="lineno"> 634</span> </div>
|
||||
<div class="line"><a name="l00635"></a><span class="lineno"> 635</span> <span class="preprocessor">#if(GLM_LANG == GLM_LANG_CXX0X)</span></div>
|
||||
<div class="line"><a name="l00636"></a><span class="lineno"> 636</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT(x, message) static_assert(x, message)</span></div>
|
||||
<div class="line"><a name="l00637"></a><span class="lineno"> 637</span> <span class="preprocessor"></span><span class="preprocessor">#elif(defined(BOOST_STATIC_ASSERT))</span></div>
|
||||
<div class="line"><a name="l00638"></a><span class="lineno"> 638</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT(x, message) BOOST_STATIC_ASSERT(x)</span></div>
|
||||
<div class="line"><a name="l00639"></a><span class="lineno"> 639</span> <span class="preprocessor"></span><span class="preprocessor">#elif(GLM_COMPILER & GLM_COMPILER_VC)</span></div>
|
||||
<div class="line"><a name="l00640"></a><span class="lineno"> 640</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT(x, message) typedef char __CASSERT__##__LINE__[(x) ? 1 : -1]</span></div>
|
||||
<div class="line"><a name="l00641"></a><span class="lineno"> 641</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l00642"></a><span class="lineno"> 642</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT(x, message)</span></div>
|
||||
<div class="line"><a name="l00643"></a><span class="lineno"> 643</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_STATIC_ASSERT_NULL</span></div>
|
||||
<div class="line"><a name="l00644"></a><span class="lineno"> 644</span> <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_LANG</span></div>
|
||||
<div class="line"><a name="l00645"></a><span class="lineno"> 645</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00647"></a><span class="lineno"> 647</span> <span class="comment">// Qualifiers </span></div>
|
||||
<div class="line"><a name="l00648"></a><span class="lineno"> 648</span> </div>
|
||||
<div class="line"><a name="l00649"></a><span class="lineno"> 649</span> <span class="comment">// User defines: GLM_FORCE_INLINE GLM_FORCE_CUDA</span></div>
|
||||
<div class="line"><a name="l00650"></a><span class="lineno"> 650</span> </div>
|
||||
<div class="line"><a name="l00651"></a><span class="lineno"> 651</span> <span class="preprocessor">#if(defined(GLM_FORCE_CUDA) || (GLM_COMPILER & GLM_COMPILER_CUDA))</span></div>
|
||||
<div class="line"><a name="l00652"></a><span class="lineno"> 652</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_CUDA_FUNC_DEF __device__ __host__ </span></div>
|
||||
<div class="line"><a name="l00653"></a><span class="lineno"> 653</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_CUDA_FUNC_DECL __device__ __host__ </span></div>
|
||||
<div class="line"><a name="l00654"></a><span class="lineno"> 654</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l00655"></a><span class="lineno"> 655</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_VAR_USED</span></div>
|
||||
<div class="line"><a name="l00656"></a><span class="lineno"> 656</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00657"></a><span class="lineno"> 657</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00658"></a><span class="lineno"> 658</span> <span class="preprocessor">#if(defined(GLM_FORCE_INLINE))</span></div>
|
||||
<div class="line"><a name="l00659"></a><span class="lineno"> 659</span> <span class="preprocessor"></span><span class="preprocessor"># if((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2005))</span></div>
|
||||
<div class="line"><a name="l00660"></a><span class="lineno"> 660</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_INLINE __forceinline</span></div>
|
||||
<div class="line"><a name="l00661"></a><span class="lineno"> 661</span> <span class="preprocessor"></span><span class="preprocessor"># elif((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC34))</span></div>
|
||||
<div class="line"><a name="l00662"></a><span class="lineno"> 662</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_INLINE __attribute__((always_inline))</span></div>
|
||||
<div class="line"><a name="l00663"></a><span class="lineno"> 663</span> <span class="preprocessor"></span><span class="preprocessor"># else</span></div>
|
||||
<div class="line"><a name="l00664"></a><span class="lineno"> 664</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_INLINE inline</span></div>
|
||||
<div class="line"><a name="l00665"></a><span class="lineno"> 665</span> <span class="preprocessor"></span><span class="preprocessor"># endif//GLM_COMPILER</span></div>
|
||||
<div class="line"><a name="l00666"></a><span class="lineno"> 666</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l00667"></a><span class="lineno"> 667</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_INLINE inline</span></div>
|
||||
<div class="line"><a name="l00668"></a><span class="lineno"> 668</span> <span class="preprocessor"></span><span class="preprocessor">#endif//defined(GLM_FORCE_INLINE)</span></div>
|
||||
<div class="line"><a name="l00669"></a><span class="lineno"> 669</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00670"></a><span class="lineno"> 670</span> <span class="preprocessor">#define GLM_FUNC_DECL GLM_CUDA_FUNC_DECL</span></div>
|
||||
<div class="line"><a name="l00671"></a><span class="lineno"> 671</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_FUNC_QUALIFIER GLM_CUDA_FUNC_DEF GLM_INLINE</span></div>
|
||||
<div class="line"><a name="l00672"></a><span class="lineno"> 672</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00674"></a><span class="lineno"> 674</span> <span class="comment">// Swizzle operators</span></div>
|
||||
<div class="line"><a name="l00675"></a><span class="lineno"> 675</span> </div>
|
||||
<div class="line"><a name="l00676"></a><span class="lineno"> 676</span> <span class="comment">// User defines: GLM_SWIZZLE</span></div>
|
||||
<div class="line"><a name="l00677"></a><span class="lineno"> 677</span> </div>
|
||||
<div class="line"><a name="l00678"></a><span class="lineno"> 678</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_SWIZZLE_DISPLAYED))</span></div>
|
||||
<div class="line"><a name="l00679"></a><span class="lineno"> 679</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_MESSAGE_SWIZZLE_DISPLAYED</span></div>
|
||||
<div class="line"><a name="l00680"></a><span class="lineno"> 680</span> <span class="preprocessor"></span><span class="preprocessor"># if(GLM_SUPPORT_SWIZZLE_OPERATOR())</span></div>
|
||||
<div class="line"><a name="l00681"></a><span class="lineno"> 681</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: Swizzling operators enabled")</span></div>
|
||||
<div class="line"><a name="l00682"></a><span class="lineno"> 682</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_SUPPORT_SWIZZLE_FUNCTION())</span></div>
|
||||
<div class="line"><a name="l00683"></a><span class="lineno"> 683</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: Swizzling operators supported through swizzling functions")</span></div>
|
||||
<div class="line"><a name="l00684"></a><span class="lineno"> 684</span> <span class="preprocessor"></span><span class="preprocessor"># else</span></div>
|
||||
<div class="line"><a name="l00685"></a><span class="lineno"> 685</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: Swizzling operators disabled")</span></div>
|
||||
<div class="line"><a name="l00686"></a><span class="lineno"> 686</span> <span class="preprocessor"></span><span class="preprocessor"># endif</span></div>
|
||||
<div class="line"><a name="l00687"></a><span class="lineno"> 687</span> <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGE</span></div>
|
||||
<div class="line"><a name="l00688"></a><span class="lineno"> 688</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00689"></a><span class="lineno"> 689</span> <span class="preprocessor">#endif//glm_setup</span></div>
|
||||
<div class="line"><a name="l00655"></a><span class="lineno"> 655</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_CUDA_FUNC_DEF</span></div>
|
||||
<div class="line"><a name="l00656"></a><span class="lineno"> 656</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_CUDA_FUNC_DECL</span></div>
|
||||
<div class="line"><a name="l00657"></a><span class="lineno"> 657</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00658"></a><span class="lineno"> 658</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00659"></a><span class="lineno"> 659</span> <span class="preprocessor">#if GLM_COMPILER & GLM_COMPILER_GCC</span></div>
|
||||
<div class="line"><a name="l00660"></a><span class="lineno"> 660</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_VAR_USED __attribute__ ((unused))</span></div>
|
||||
<div class="line"><a name="l00661"></a><span class="lineno"> 661</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l00662"></a><span class="lineno"> 662</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_VAR_USED</span></div>
|
||||
<div class="line"><a name="l00663"></a><span class="lineno"> 663</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00664"></a><span class="lineno"> 664</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00665"></a><span class="lineno"> 665</span> <span class="preprocessor">#if(defined(GLM_FORCE_INLINE))</span></div>
|
||||
<div class="line"><a name="l00666"></a><span class="lineno"> 666</span> <span class="preprocessor"></span><span class="preprocessor"># if((GLM_COMPILER & GLM_COMPILER_VC) && (GLM_COMPILER >= GLM_COMPILER_VC2005))</span></div>
|
||||
<div class="line"><a name="l00667"></a><span class="lineno"> 667</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_INLINE __forceinline</span></div>
|
||||
<div class="line"><a name="l00668"></a><span class="lineno"> 668</span> <span class="preprocessor"></span><span class="preprocessor"># elif((GLM_COMPILER & GLM_COMPILER_GCC) && (GLM_COMPILER >= GLM_COMPILER_GCC34))</span></div>
|
||||
<div class="line"><a name="l00669"></a><span class="lineno"> 669</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_INLINE __attribute__((always_inline))</span></div>
|
||||
<div class="line"><a name="l00670"></a><span class="lineno"> 670</span> <span class="preprocessor"></span><span class="preprocessor"># else</span></div>
|
||||
<div class="line"><a name="l00671"></a><span class="lineno"> 671</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_INLINE inline</span></div>
|
||||
<div class="line"><a name="l00672"></a><span class="lineno"> 672</span> <span class="preprocessor"></span><span class="preprocessor"># endif//GLM_COMPILER</span></div>
|
||||
<div class="line"><a name="l00673"></a><span class="lineno"> 673</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div>
|
||||
<div class="line"><a name="l00674"></a><span class="lineno"> 674</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_INLINE inline</span></div>
|
||||
<div class="line"><a name="l00675"></a><span class="lineno"> 675</span> <span class="preprocessor"></span><span class="preprocessor">#endif//defined(GLM_FORCE_INLINE)</span></div>
|
||||
<div class="line"><a name="l00676"></a><span class="lineno"> 676</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00677"></a><span class="lineno"> 677</span> <span class="preprocessor">#define GLM_FUNC_DECL GLM_CUDA_FUNC_DECL</span></div>
|
||||
<div class="line"><a name="l00678"></a><span class="lineno"> 678</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_FUNC_QUALIFIER GLM_CUDA_FUNC_DEF GLM_INLINE</span></div>
|
||||
<div class="line"><a name="l00679"></a><span class="lineno"> 679</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00681"></a><span class="lineno"> 681</span> <span class="comment">// Swizzle operators</span></div>
|
||||
<div class="line"><a name="l00682"></a><span class="lineno"> 682</span> </div>
|
||||
<div class="line"><a name="l00683"></a><span class="lineno"> 683</span> <span class="comment">// User defines: GLM_SWIZZLE</span></div>
|
||||
<div class="line"><a name="l00684"></a><span class="lineno"> 684</span> </div>
|
||||
<div class="line"><a name="l00685"></a><span class="lineno"> 685</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_SWIZZLE_DISPLAYED))</span></div>
|
||||
<div class="line"><a name="l00686"></a><span class="lineno"> 686</span> <span class="preprocessor"></span><span class="preprocessor"># define GLM_MESSAGE_SWIZZLE_DISPLAYED</span></div>
|
||||
<div class="line"><a name="l00687"></a><span class="lineno"> 687</span> <span class="preprocessor"></span><span class="preprocessor"># if(GLM_SUPPORT_SWIZZLE_OPERATOR())</span></div>
|
||||
<div class="line"><a name="l00688"></a><span class="lineno"> 688</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: Swizzling operators enabled")</span></div>
|
||||
<div class="line"><a name="l00689"></a><span class="lineno"> 689</span> <span class="preprocessor"></span><span class="preprocessor"># elif(GLM_SUPPORT_SWIZZLE_FUNCTION())</span></div>
|
||||
<div class="line"><a name="l00690"></a><span class="lineno"> 690</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: Swizzling operators supported through swizzling functions")</span></div>
|
||||
<div class="line"><a name="l00691"></a><span class="lineno"> 691</span> <span class="preprocessor"></span><span class="preprocessor"># else</span></div>
|
||||
<div class="line"><a name="l00692"></a><span class="lineno"> 692</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: Swizzling operators disabled")</span></div>
|
||||
<div class="line"><a name="l00693"></a><span class="lineno"> 693</span> <span class="preprocessor"></span><span class="preprocessor"># endif</span></div>
|
||||
<div class="line"><a name="l00694"></a><span class="lineno"> 694</span> <span class="preprocessor"></span><span class="preprocessor">#endif//GLM_MESSAGE</span></div>
|
||||
<div class="line"><a name="l00695"></a><span class="lineno"> 695</span> <span class="preprocessor"></span></div>
|
||||
<div class="line"><a name="l00696"></a><span class="lineno"> 696</span> <span class="preprocessor">#endif//glm_setup</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
|
||||
Reference in New Issue
Block a user