{"id":1229,"date":"2011-01-04T19:21:11","date_gmt":"2011-01-04T11:21:11","guid":{"rendered":"http:\/\/www.hyzgame.org.cn\/?p=1229"},"modified":"2011-01-04T23:05:24","modified_gmt":"2011-01-04T15:05:24","slug":"%e3%80%8a%e5%8f%a4%e6%9c%88%e3%80%8b%e5%b0%86%e5%bc%95%e5%85%a5%e7%ac%ac%e4%b8%89%e6%96%b9%e5%ba%93%e3%80%8aopengl-mathematics-glm%e3%80%8b","status":"publish","type":"post","link":"http:\/\/www.hyzgame.com\/?p=1229","title":{"rendered":"\u300a\u53e4\u6708\u300b\u5c06\u5f15\u5165\u7b2c\u4e09\u65b9\u5e93\u300aOpenGL Mathematics (GLM)\u300b"},"content":{"rendered":"<p>GLM\u5728\u8bbe\u8ba1\u4e0a\u5b8c\u5168\u9075\u7167OpenGL Shading Language\u98ce\u683c\uff0c\u5e76\u4f7f\u7528\u5f00\u653e\u7684MIT\u6388\u6743\u534f\u8bae\u3002<\/p>\n<p>\u4ee5\u4e0b\u622a\u56fe\u4e3a\u65b0\u6e32\u67d3\u5f15\u64ce\u4f7f\u7528GLM\u77e9\u9635\u63a7\u5236\u79fb\u52a8\u3001\u7f29\u653e\u3001\u65cb\u8f6c\u540e\u7684\u6548\u679c\u3002<\/p>\n<p><a rel=\"attachment wp-att-1230\" href=\"http:\/\/www.hyzgame.org.cn\/?attachment_id=1230\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1230\" title=\"CameraControl 2011-01-04 19-16-13-43\" src=\"http:\/\/www.hyzgame.org.cn\/wp-content\/uploads\/2011\/01\/CameraControl-2011-01-04-19-16-13-43.gif\" alt=\"\" width=\"640\" height=\"480\" srcset=\"http:\/\/www.hyzgame.com\/wp-content\/uploads\/2011\/01\/CameraControl-2011-01-04-19-16-13-43.gif 640w, http:\/\/www.hyzgame.com\/wp-content\/uploads\/2011\/01\/CameraControl-2011-01-04-19-16-13-43-300x225.gif 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>\u65b0\u6e32\u67d3\u5f15\u64ce\u6240\u4f7f\u7528\u7684\u77e9\u9635\u5904\u7406\u5df2\u7ecf\u5168\u9762\u8f6c\u4e3a\u4f7f\u7528GLM\uff0c\u4ee5\u4e0b\u4e3aGLM\u4ecb\u7ecd\uff1a<\/p>\n<p>OpenGL\u00a0Mathematics\u00a0(GLM)\u00a0is\u00a0a\u00a0C++\u00a0mathematics\u00a0library\u00a0for\u00a03D\u00a0applications\u00a0based\u00a0on\u00a0the\u00a0OpenGL\u00a0Shading\u00a0Language\u00a0(GLSL)\u00a0specification.<\/p>\n<p>GLM\u00a0provides\u00a03D\u00a0programmers\u00a0with\u00a0math\u00a0classes\u00a0and\u00a0functions\u00a0that\u00a0are\u00a0similar\u00a0to\u00a0GLSL\u00a0or\u00a0any\u00a0high\u00a0level\u00a0GPU\u00a0programming\u00a0language.\u00a0The\u00a0idea\u00a0is\u00a0to\u00a0have\u00a0a\u00a0library\u00a0that\u00a0has\u00a0identical\u00a0naming\u00a0conventions\u00a0and\u00a0functionalities\u00a0than\u00a0GLSL\u00a0so\u00a0that\u00a0when\u00a0developers\u00a0know\u00a0GLSL,\u00a0they\u00a0know\u00a0how\u00a0to\u00a0use\u00a0GLM.<\/p>\n<p>However,\u00a0this\u00a0project\u00a0isn&#8217;t\u00a0limited\u00a0by\u00a0GLSL\u00a0features.\u00a0An\u00a0extension\u00a0system,\u00a0based\u00a0on\u00a0the\u00a0GLSL\u00a0extension\u00a0conventions,\u00a0allows\u00a0extended\u00a0capabilities.<\/p>\n<p>This\u00a0library\u00a0can\u00a0be\u00a0used\u00a0with\u00a0OpenGL\u00a0but\u00a0also\u00a0for\u00a0software\u00a0rendering\u00a0(Raytracing\u00a0\/\u00a0Rasterisation),\u00a0image\u00a0processing\u00a0and\u00a0as\u00a0much\u00a0contexts\u00a0as\u00a0a\u00a0simple\u00a0math\u00a0library\u00a0could\u00a0be\u00a0used\u00a0for.<\/p>\n<p>GLM\u00a0is\u00a0written\u00a0as\u00a0a\u00a0platform\u00a0independent\u00a0library\u00a0and\u00a0supports\u00a0the\u00a0following\u00a0compilers:<\/p>\n<p>\u00b7\u00a0GNU\u00a0GCC\u00a03.4\u00a0and\u00a0higher<\/p>\n<p>\u00b7\u00a0Microsoft\u00a0Visual\u00a0Studio\u00a08.0\u00a0and\u00a0higher<\/p>\n<p>The\u00a0source\u00a0code\u00a0is\u00a0under\u00a0the\u00a0MIT\u00a0licence.<\/p>\n<p>Any\u00a0feedback\u00a0is\u00a0welcome\u00a0and\u00a0can\u00a0be\u00a0sent\u00a0to\u00a0g.truc.creation[at]gmail.com.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GLM\u5728\u8bbe\u8ba1\u4e0a\u5b8c\u5168\u9075\u7167OpenGL Shading Language\u98ce\u683c\uff0c\u5e76\u4f7f\u7528\u5f00\u653e\u7684MIT\u6388\u6743\u534f\u8bae\u3002 \u4ee5\u4e0b\u622a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1229","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts\/1229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1229"}],"version-history":[{"count":5,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts\/1229\/revisions"}],"predecessor-version":[{"id":1235,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts\/1229\/revisions\/1235"}],"wp:attachment":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1229"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}