This commit is contained in:
Recep Aslantas
2017-10-27 00:21:11 +03:00
2 changed files with 7 additions and 7 deletions

View File

@@ -58,8 +58,8 @@ Almost all functions are marked inline (always_inline) so compiler probably will
To call pre-compiled version, just use `glmc_` (c stands for 'call') instead of `glm_`. To call pre-compiled version, just use `glmc_` (c stands for 'call') instead of `glm_`.
```C ```C
#include <cglm.h> /* for inline */ #include <cglm/cglm.h> /* for inline */
#include <cglm-call.h> /* for library call (this also includes cglm.h) */ #include <cglm/call.h> /* for library call (this also includes cglm.h) */
mat4 rot, trans, rt; mat4 rot, trans, rt;
/* ... */ /* ... */
@@ -125,7 +125,7 @@ $ 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/cglm.h>
``` ```
the haeder will include all headers. Then call func you want e.g. rotate vector by axis: the haeder will include all headers. Then call func you want e.g. rotate vector by axis:
```C ```C
@@ -144,7 +144,7 @@ like this function you may see `_to` postfix, this functions store results to an
to call pre-compiled versions include header with `c` postfix, c means call. Pre-compiled versions are just wrappers. to call pre-compiled versions include header with `c` postfix, c means call. Pre-compiled versions are just wrappers.
```C ```C
#include <cglm-call.h> #include <cglm/call.h>
``` ```
this header will include all heaers with c postfix. You need to call functions with c posfix: this header will include all heaers with c postfix. You need to call functions with c posfix:
```C ```C
@@ -158,9 +158,9 @@ Function usage and parameters are documented inside related headers.
- 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 (In Progress)
- [ ] Unit tests for comparing cglm with glm results - [ ] Unit tests for comparing cglm with glm results
- [x] Add version info - [x] 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 (In Progress)

View File

@@ -8,7 +8,7 @@
#ifndef cglm_types_h #ifndef cglm_types_h
#define cglm_types_h #define cglm_types_h
#if defined(_WIN32) #if defined(_MSC_VER)
# define CGLM_ALIGN(X) /* __declspec(align(X)) */ # define CGLM_ALIGN(X) /* __declspec(align(X)) */
#else #else
# define CGLM_ALIGN(X) __attribute((aligned(X))) # define CGLM_ALIGN(X) __attribute((aligned(X)))