Recep Aslantas
f8784ffe8a
win: enable anonymous structs for Visual Studio 2015 and later
v0.6.2
2020-01-17 23:55:35 +03:00
Recep Aslantas
cf8dc82783
fix tests on windows (msvc)
2020-01-17 23:29:36 +03:00
Recep Aslantas
9af0ebd142
win: fix glms_quat_imagn if use struct option is disabled
2020-01-17 23:27:20 +03:00
Recep Aslantas
82a195f26a
now owrkin on v0.6.2
2020-01-17 23:26:40 +03:00
Recep Aslantas
6abe3f05ab
tests: fix quat_look test
v0.6.1
2020-01-17 15:17:02 +03:00
Recep Aslantas
f53fd45026
Update test_struct.c
2020-01-15 16:44:51 +03:00
Recep Aslantas
c67158ac59
Merge pull request #115 from recp/arm-fix
...
build fix for ARM NEON
2020-01-15 11:58:16 +03:00
Recep Aslantas
af7f8a5436
vec4: fix parameter name for NEON
2020-01-15 09:56:54 +03:00
Recep Aslantas
c3b5bb869a
arm: fix type castings for ARM Neon
2020-01-15 09:56:19 +03:00
Recep Aslantas
d6c34d3330
Merge pull request #113 from jdolan/master
...
This PR addresses a typo in the naming of glms_rotate_x.
2020-01-06 14:11:21 +03:00
Jay Dolan
13a742f48c
Merge pull request #1 from jdolan/issue/glms_rotate_x
...
Fix spelling error in name of glms_rotate_x.
2020-01-05 14:20:35 -05:00
Jay Dolan
0330be853c
Fix spelling error in name of glms_rotate_x.
2020-01-05 14:20:06 -05:00
Recep Aslantas
5cb800bf29
Merge pull request #111 from hartenfels/autoconf-flags
...
Fix Automake Flags and Matrix Struct Initializers
2019-11-26 22:45:41 +03:00
Carsten Hartenfels
1d19948f30
Document struct API and anonymous struct handling
2019-11-24 17:28:01 -05:00
Carsten Hartenfels
d89c01b39f
Intuit if we should use anonymous structs
...
Rather than making the user #define something explicitly, we can guess
based on the compiler type and C standard.
2019-11-24 16:02:12 -05:00
Carsten Hartenfels
b9aa14d25e
Add a test for struct type initializers
...
To make sure that they all work properly and none of them trigger
warnings.
2019-11-24 16:02:12 -05:00
Carsten Hartenfels
8ad273475f
Make GLMS_ initializers use the GLM_ versions
...
So that we don't write them twice. More consistent this way.
2019-11-24 16:02:03 -05:00
Carsten Hartenfels
c8211b3a62
Re-order struct type contents array-first
...
So that initializers will prefer the array entry, rather than trying to
initialize the anonymous struct.
2019-11-24 16:01:55 -05:00
Carsten Hartenfels
11dae5126b
Add braces around matrix struct intializers
...
They're missing and trigger warnings in the tests.
2019-11-24 13:32:35 -05:00
Carsten Hartenfels
390a5035a8
Use gnu11 instead of gnu99 to get rid of warnings
...
CGLM uses anonymous structs, which is a C11 feature. When trying to
build the tests in C99 mode, you get warnings to that effect. Switching
to C11 fixes this.
2019-11-24 13:32:35 -05:00
Carsten Hartenfels
267348af03
Build tests with the same flags as the library
...
In particular, with the same warning flags. That means it now warns
about a few things during compilation that the following commits are
gonna fix.
2019-11-24 13:32:35 -05:00
Carsten Hartenfels
f9abf2a7df
Don't add default autoconf flags to build
...
By default, it adds something like `-O2 -g` to the cflags. That
conflicts with the flags in Makefile.am, which specifies -O3. This
commit removes the default flags so we only get what we actually
specify.
2019-11-24 13:32:35 -05:00
Recep Aslantas
f0ffef7820
Merge pull request #110 from hartenfels/vec2s
...
Add a vec2s struct type for consistency
2019-11-24 17:18:50 +03:00
Carsten Hartenfels
4b9b7aeb20
Add a vec2s struct type for consistency
...
There's a vec2 type, so there should probably be a struct version of it
too. Even if no functions use it right now, if a library user (like me)
needs a 2-element vector, they don't need to roll their own.
2019-11-23 14:37:48 -05:00
Recep Aslantas
1a74361dfb
Merge pull request #109 from hartenfels/prototypes
...
Change `()` Prototypes to `(void)`
2019-11-23 19:18:52 +03:00
Carsten Hartenfels
c83f25343f
Error out on invalid empty prototypes
...
This way, a function prototype like `glms_mat3_identity()` will not
compile, instead you have to change it to the proper
`glms_mat3_identity(void)`.
2019-11-23 10:10:27 -05:00
Carsten Hartenfels
f3ea5b4f3e
Change empty prototypes to (void)
...
Because () means an arbitrary number of arguments in C, which is not
intended here.
2019-11-23 10:10:17 -05:00
Recep Aslantas
9987e1374b
build: remove duplicate entry in makefile
...
close #108
2019-11-17 10:22:01 +03:00
Recep Aslantas
464b2178ce
Update README.md
2019-11-08 17:14:24 +03:00
Recep Aslantas
c253769fcd
Update applesimd.h
2019-11-07 22:43:47 +03:00
Recep Aslantas
b893c79086
Update Makefile.am
2019-11-07 22:41:41 +03:00
Recep Aslantas
2336256808
Helpers for apple's simd library ( #107 )
...
* helper to convert cglm matrix to Apple's simd type
2019-11-07 22:32:15 +03:00
onagurna
52df54e306
fix typo in README ( #106 )
2019-10-21 23:46:23 +03:00
Recep Aslantas
381e66349a
win,test: fix test build for windows and suppress warnings
2019-10-14 19:08:34 +03:00
Recep Aslantas
7cdeada701
tests: add test for glm_quat_look
2019-09-27 17:53:51 +03:00
Recep Aslantas
841257a208
tests: add test for quat_slerp
2019-09-26 19:57:00 +03:00
Recep Aslantas
212cf3b22d
Update test_quat.h
2019-09-26 19:29:45 +03:00
Recep Aslantas
ca9b8ceac3
tests: add some tests for quat
2019-09-25 14:03:58 +03:00
Recep Aslantas
5b0e161502
tests: add some tests for quat
2019-09-25 13:47:26 +03:00
Recep Aslantas
fb23d1998e
tests: add more tests for quat
2019-09-25 12:43:01 +03:00
Recep Aslantas
b2084fbacf
tests: add some tests for quat
2019-09-25 07:42:29 +03:00
Recep Aslantas
2ea9308361
quat: fix glmc_quat_normalize()
2019-09-25 07:41:29 +03:00
Recep Aslantas
56cbacd9f6
tests: add missing test for vec4
2019-09-24 21:45:43 +03:00
Recep Aslantas
1700187f65
tests: add more tests for vec4
2019-09-24 19:10:44 +03:00
Recep Aslantas
36024367bc
tests: add more tests for vec4
2019-09-24 17:02:47 +03:00
Recep Aslantas
dcf5b5c1c4
vec: fix min/max for compiled vec3
2019-09-24 17:01:56 +03:00
Recep Aslantas
ce09e543ef
tests: add some tests for vec4
2019-09-24 16:33:42 +03:00
Recep Aslantas
f2073b2277
tests: add more tests for vec3
2019-09-23 22:46:45 +03:00
Recep Aslantas
7c10840a85
tests: add more tests for vec3
2019-09-23 22:39:53 +03:00
Recep Aslantas
37c2650b0a
tests: add more tests for vec3
2019-09-23 12:03:06 +03:00