https://github.com/coreh/gl-matrix.c
C Matrix library for OpenGL apps. A port of the gl-matrix JavaScript library.
https://github.com/coreh/gl-matrix.c
Last synced: 11 months ago
JSON representation
C Matrix library for OpenGL apps. A port of the gl-matrix JavaScript library.
- Host: GitHub
- URL: https://github.com/coreh/gl-matrix.c
- Owner: coreh
- License: zlib
- Created: 2011-12-27T21:26:52.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2022-08-30T19:32:55.000Z (almost 4 years ago)
- Last Synced: 2025-04-08T15:46:29.832Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 15.6 KB
- Stars: 63
- Watchers: 4
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
This is a fairly straightforward port of gl-matrix.js (https://github.com/toji/gl-matrix)
from JavaScript to C.
To compile and install on UNIX systems, run from your terminal:
make
sudo make install
The library will be installed under /usr/local/lib and the headers at
/usr/local/include. If you need to install it elsewhere, just edit the Makefile.
To use the library after installation, include the gl-matrix.h file:
#include
And use the -lgl-matrix flag on your compiler:
clang -lgl-matrix main.c
If you want to include this library directly in your IDE project (it's probably
the easiest way to get this working on Windows w/ Visual Studio) you can simply
copy all the .c and .h files to your project directory, and add them normally.
Known issues:
- The documentation still uses some JavaScript nomenclature from the original
version of the library.