{"repo":"recp/cglm","free":true,"listed":false,"github":"https://github.com/recp/cglm","clone":"git clone https://github.com/recp/cglm.git","description":"📽 Highly Optimized 2D / 3D Graphics Math (glm) for C","language":"C","stars":2997,"topics":["math","vector","matrix","euler","c","affine-transform-matrices","opengl","opengl-math","simd","sse"],"license":"MIT","category":"chat-messaging","readme_excerpt":"🎥 OpenGL Mathematics (glm) for C A highly optimized 2D 3D math library. Also known as OpenGL Mathematics (glm) for C. cglm provides fast and ergonomic math functions to ease graphics programming. It is community friendly – feel free to report any bugs and issues you face. If you're using C++, you might want to check out GLM - Allocation-free - Header-only - SIMD-optimized - API-agnostic --- 📚 Documentation All functions and their parameters are documented above their declaration inside their corresponding headers. Alternatively, you can read the complete documentation here. 🔨 Building cglm can be used in it's entirety as a header-only library simply by including cglm/cglm.h . If you wish to link against it instead, it can be built using one of the supported build systems. Detailed information about building on individual platforms and build systems along with the instructions for building the documentation can be found in BUILDING.md. ✅ Usage Header-only Include the cglm/cglm.h header and use functions with the glm prefix. Struct API Include cglm/struct.h and use glms . Linked Include cglm/call.h and use glmc . ❗ Alignment While cglm by default aligns what's necessary, it is possible to disable this by defining CGLM ALL UNALIGNED . If you're targeting machines with any kind of SIMD support, make sure that all vec4 , mat4 and mat2 arguments you pass to cglm functions are aligned to prevent unexpected crashes, alternatively use the unaligned versions if present. Struct API T","default_branch":null,"files":null,"tree":[],"storefront":"/r/recp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/recp/cglm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}