cglm
« Back to VersTracker
Description:
Optimized OpenGL/Graphics Math (glm) for C
Type: Formula  |  Latest Version: 0.9.6@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c-library graphics mathematics linear-algebra opengl game-dev
Install: brew install cglm
About:
cglm is a high-performance C library for 2D and 3D graphics mathematics, designed as a lightweight and efficient alternative to C++ GLM. It provides comprehensive linear algebra operations including vector, matrix, and quaternion transformations, optimized for speed and memory efficiency in graphics and game development applications.
Key Features:
  • Optimized for C with no C++ dependencies
  • Comprehensive suite: vectors, matrices, quaternions, and projections
  • SSE/AVX optimized for high performance
  • Header-only library for easy integration
Use Cases:
  • Game engine development requiring fast math operations
  • Computer graphics and OpenGL/Vulkan rendering applications
  • Physics simulations and 3D modeling tools
Alternatives:
  • glm – C++ GLM is more feature-rich for C++ but cglm is faster and designed specifically for C
  • linmath.h – cglm offers more comprehensive features and better performance optimizations
License: MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 13, 2025 7:18am 0 VERSION_BUMP b2702ea7