mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
add badges to README
This commit is contained in:
16
README.md
16
README.md
@@ -1,4 +1,8 @@
|
|||||||
# 🎥 OpenGL Mathematics (glm) for `C`
|
# 🎥 OpenGL Mathematics (glm) for `C`
|
||||||
|
[](https://travis-ci.org/recp/cglm)
|
||||||
|
[](https://ci.appveyor.com/project/recp/cglm/branch/master)
|
||||||
|
[](https://coveralls.io/github/recp/cglm?branch=master)
|
||||||
|
[](https://www.codacy.com/app/recp/cglm?utm_source=github.com&utm_medium=referral&utm_content=recp/cglm&utm_campaign=Badge_Grade)
|
||||||
|
|
||||||
The original glm library is for C++ only (templates, namespaces, classes...), this library targeted to C99 but currently you can use it for C89 safely by language extensions e.g `__register`
|
The original glm library is for C++ only (templates, namespaces, classes...), this library targeted to C99 but currently you can use it for C89 safely by language extensions e.g `__register`
|
||||||
|
|
||||||
@@ -22,7 +26,7 @@ https://github.com/g-truc/glm
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
##Features
|
## Features
|
||||||
- general purpose matrix operations (mat4, mat3)
|
- general purpose matrix operations (mat4, mat3)
|
||||||
- chain matrix multiplication (square only)
|
- chain matrix multiplication (square only)
|
||||||
- general purpose vector operations (cross, dot, rotate, proj, angle...)
|
- general purpose vector operations (cross, dot, rotate, proj, angle...)
|
||||||
@@ -76,7 +80,7 @@ glm_mul(T, R, modelMat);
|
|||||||
glm_inv_tr(modelMat);
|
glm_inv_tr(modelMat);
|
||||||
```
|
```
|
||||||
|
|
||||||
##License
|
## License
|
||||||
MIT. check the LICENSE file
|
MIT. check the LICENSE file
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
@@ -105,7 +109,7 @@ if `msbuild` won't work (because of multi version VS) then try to build with `de
|
|||||||
$ devenv cglm.sln /Build Release
|
$ devenv cglm.sln /Build Release
|
||||||
```
|
```
|
||||||
|
|
||||||
##How to use
|
## How to use
|
||||||
If you want to use inline versions of funcstions then; include main header
|
If you want to use inline versions of funcstions then; include main header
|
||||||
```C
|
```C
|
||||||
#include <cglm.h>
|
#include <cglm.h>
|
||||||
@@ -135,15 +139,15 @@ glmc_vec_normalize(vec);
|
|||||||
```
|
```
|
||||||
|
|
||||||
Function usage and parameters are documented inside related headers.
|
Function usage and parameters are documented inside related headers.
|
||||||
##Notes
|
## Notes
|
||||||
|
|
||||||
- This library uses float types only, does not support Integers, Double... yet
|
- This library uses float types only, does not support Integers, Double... yet
|
||||||
- If headers are not working properly with your compiler, IDE please open an issue, because I'm using GCC and clang to test it maybe sometimes MSVC
|
- If headers are not working properly with your compiler, IDE please open an issue, because I'm using GCC and clang to test it maybe sometimes MSVC
|
||||||
|
|
||||||
**TODO:**
|
**TODO:**
|
||||||
- [ ] Unit tests
|
- [ ] Unit tests
|
||||||
- [ ] Unit tests for comparing cglm with glm results
|
- [ ] Unit tests for comparing cglm with glm results
|
||||||
- [ ] Add version info
|
- [ ] Add version info
|
||||||
- [ ] Unaligned operations (e.g. `glm_umat4_mul`)
|
- [ ] Unaligned operations (e.g. `glm_umat4_mul`)
|
||||||
- [ ] Extra documentation
|
- [ ] Extra documentation
|
||||||
- [ ] ARM Neon Arch
|
- [ ] ARM Neon Arch
|
||||||
|
|||||||
Reference in New Issue
Block a user