glm (1125872)
Текст из файла
ManualVersion 0.9.422 February 2013Christophe Riccioglm@g-truc.netCopyright © 2005–2013, G-Truc CreationCopyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)Permission is hereby granted, free of charge, to any person obtaining a copy of thissoftware and associated documentation files (the "Software"), to deal in theSoftware without restriction, including without limitation the rights to use, copy,modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,and to permit persons to whom the Software is furnished to do so, subject to thefollowing conditions:The above copyright notice and this permission notice shall be included in all copiesor substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANYCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THESOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.ContentsIntroduction ...................................................................................................................
51. Getting started ........................................................................................................... 61.1. Setup ....................................................................................................................... 61.2. Use sample of GLM core ......................................................................................... 61.3. Dependencies.......................................................................................................... 61.4. GLM Extensions....................................................................................................... 61.5. OpenGL interoperability .........................................................................................
71.6. GLM for CUDA ......................................................................................................... 72. Advanced usages........................................................................................................ 82.1. Swizzle operators .................................................................................................... 82.2. Notification system ............................................................................................... 102.3. Force inline ............................................................................................................
102.4. SIMD support ........................................................................................................ 112.5. Compatibility ......................................................................................................... 112.6. Default precision ................................................................................................... 112.7. Force use of radians .............................................................................................. 123.
Deprecated function replacements ......................................................................... 133.1. OpenGL functions (Section 2.11.2 Matrices, OpenGL 2.1 specification) .............. 133.2. GLU functions (Chapter 4: Matrix Manipulation, GLU 1.3 specification) ............. 144. Extensions ................................................................................................................
174.1. GLM_GTC_constants............................................................................................. 174.2. GLM_GTC_epsilon ................................................................................................. 174.3. GLM_GTC_half_float ............................................................................................. 174.4. GLM_GTC_matrix_access ..................................................................................... 174.5. GLM_GTC_matrix_integer .................................................................................... 174.6.
GLM_GTC_matrix_inverse .................................................................................... 174.7. GLM_GTC_matrix_transform................................................................................ 174.8. GLM_GTC_noise.................................................................................................... 184.9. GLM_GTC_quaternion ..........................................................................................
214.10. GLM_GTC_random ............................................................................................. 214.11. GLM_GTC_reciprocal .......................................................................................... 234.12. GLM_GTC_swizzle ...............................................................................................
234.13. GLM_GTC_type_precision .................................................................................. 234.14. GLM_GTC_type_ptr ............................................................................................ 244.15. GLM_GTC_ulp ..................................................................................................... 245. Known issues ............................................................................................................ 255.1.
not function........................................................................................................... 255.2. half based types and component accesses........................................................... 256. FAQ ........................................................................................................................... 266.1 Why GLM follows GLSL specification and conventions? ....................................... 266.2. Does GLM run GLSL program? .............................................................................. 266.3.
Does a GLSL compiler build GLM codes? .............................................................. 266.4. Should I use ‘GTX’ extensions? ............................................................................. 266.5. Where can I ask my questions? ............................................................................ 266.6. Where can I find the documentation of extensions? ...........................................
266.7. Should I use ‘using namespace glm;’? .................................................................. 266.8. Is GLM fast?........................................................................................................... 266.9. When I build with Visual C++ with /W4 warning level, I have warnings... ........... 277. Code samples ........................................................................................................... 287.1.
Compute a triangle normal ................................................................................... 287.2. Matrix transform ................................................................................................... 287.3. Vector types .......................................................................................................... 297.4. Lighting .................................................................................................................. 298.
References ............................................................................................................... 318.1. GLM development ................................................................................................ 318.2. OpenGL specifications...........................................................................................
318.3. External links ......................................................................................................... 318.4. Projects using GLM ............................................................................................... 318.5. OpenGL tutorials using GLM .................................................................................
338.6. Alternatives to GLM .............................................................................................. 338.7. Acknowledgements............................................................................................... 338.8. Quotes from the web ............................................................................................ 33IntroductionOpenGL Mathematics (GLM) is a C++ mathematics library for graphics softwarebased on the OpenGL Shading Language (GLSL) specification.GLM provides classes and functions designed and implemented with the samenaming conventions and functionalities than GLSL so that when a programmerknows GLSL, he knows GLM as well which makes it really easy to use.This project isn't limited by GLSL features.
Характеристики
Тип файла PDF
PDF-формат наиболее широко используется для просмотра любого типа файлов на любом устройстве. В него можно сохранить документ, таблицы, презентацию, текст, чертежи, вычисления, графики и всё остальное, что можно показать на экране любого устройства. Именно его лучше всего использовать для печати.
Например, если Вам нужно распечатать чертёж из автокада, Вы сохраните чертёж на флешку, но будет ли автокад в пункте печати? А если будет, то нужная версия с нужными библиотеками? Именно для этого и нужен формат PDF - в нём точно будет показано верно вне зависимости от того, в какой программе создали PDF-файл и есть ли нужная программа для его просмотра.














