Commit Graph

1500 Commits

Author SHA1 Message Date
Recep Aslantas
b2e8e7c77b vec: flip sign 2016-10-11 14:02:49 +03:00
Recep Aslantas
21f62ba9ab insert mat3 to mat4 upper-left 2016-10-11 13:58:30 +03:00
Recep Aslantas
822923a035 move mat3 print to util and insert mat3 to default header 2016-10-11 12:04:54 +03:00
Recep Aslantas
5344599ae4 pick mat3 from mat4 2016-10-11 00:15:57 +03:00
Recep Aslantas
77ed5d389d mat3 mul by vec3 2016-10-10 17:44:17 +03:00
Recep Aslantas
0cbfd3cd3b mat4 pure style 2016-10-10 17:40:49 +03:00
Recep Aslantas
dc85a6c3ca mat3 transpose 2016-10-10 17:38:56 +03:00
Recep Aslantas
6390367476 affine mat mul 2016-10-10 12:09:42 +03:00
Recep Aslantas
af52f40114 fix pure affine mul and some style 2016-10-10 10:31:50 +03:00
Recep Aslantas
5b5dbcc15c optimize affine transform matrices
* reduce some multiplications/additions for transformations matrices
2016-10-10 00:08:36 +03:00
Recep Aslantas
3ffca7a733 use native types instead GL* 2016-10-09 18:08:59 +03:00
Recep Aslantas
2ebdfaeeaf helper ortho proj 2016-10-09 18:06:52 +03:00
Recep Aslantas
a6f96de292 move platform specific functions to platform header 2016-10-09 17:57:55 +03:00
Recep Aslantas
1f12adbfae default ortho projection 2016-10-09 17:48:50 +03:00
Recep Aslantas
4da42276f5 msvc compatibility 2016-10-09 14:38:53 +03:00
Recep Aslantas
751391c8ff fix ortho 2016-10-09 14:08:08 +03:00
Recep Aslantas
bc8cede3d8 helper: default perspective 2016-10-08 16:37:56 +03:00
Recep Aslantas
c428b79f98 move platform specific codes to platform header 2016-10-08 16:37:20 +03:00
Recep Aslantas
a85bf47683 mat3 multiplication 2016-10-08 14:15:31 +03:00
Recep Aslantas
78e4e867eb unaligned matrix duplication 2016-10-06 16:54:08 +03:00
Recep Aslantas
1b41c3d52a add braces to mat initializer 2016-10-05 12:14:27 +03:00
Recep Aslantas
02c6ba5b19 update license 2016-10-03 16:51:14 +03:00
Recep Aslantas
846c4d3c73 affine rotation 2016-10-03 16:29:48 +03:00
Recep Aslantas
5a24b9fcd5 fix build rotate 2016-10-03 16:18:54 +03:00
Recep Aslantas
a23f238c60 fix init rotation matrix 2016-10-03 12:57:55 +03:00
Recep Aslantas
cd5cee615c build rotation matrix 2016-10-03 11:40:40 +03:00
Recep Aslantas
098a930d9f make glm_vec4_dup3 inline 2016-10-02 00:13:18 +03:00
Recep Aslantas
ea6f12d90a vector [pure] documentation 2016-09-29 10:25:33 +03:00
Recep Aslantas
1ab4329013 style 2016-09-29 10:02:58 +03:00
Recep Aslantas
268db00c44 mat4 [pure] documentation 2016-09-29 00:48:13 +03:00
Recep Aslantas
6a00598144 msvc: opengl header 2016-09-28 18:04:09 +03:00
Recep Aslantas
e752f356a8 include other headers to main header 2016-09-28 18:03:47 +03:00
Recep Aslantas
f99d920dc6 cpp: dont pass array to function directly 2016-09-28 17:51:51 +03:00
Recep Aslantas
d45dc614cf use float version of math functions 2016-09-28 17:50:01 +03:00
Recep Aslantas
8b67604247 msvc: define __SSE__ and __SSE2__ if available 2016-09-28 17:44:21 +03:00
Recep Aslantas
88fe54b200 msvc: disable alignment in typedef (for now)
Compiler Error C2719: The align __declspec modifier is not permitted on
function parameters.

ref #4
2016-09-28 17:31:10 +03:00
Recep Aslantas
2cb9f7f334 fix #3
with caching values, compiler produce better assembly even identical
sse2 implementation
2016-09-27 21:18:52 +03:00
Recep Aslantas
dc73cab522 helper fn for duplicating matrix4 2016-09-27 16:50:09 +03:00
Recep Aslantas
e6ba9d6ab0 opengl: fix type cast 2016-09-21 18:36:01 +03:00
Recep Aslantas
f5a290364b add guard to check sse2 headers 2016-09-21 17:34:30 +03:00
Recep Aslantas
a7f280bf97 avx: fix permute 2016-09-21 16:19:32 +03:00
Recep Aslantas
b8589ae0e2 avx: implement mat4 avx mul 2016-09-21 16:15:48 +03:00
Recep Aslantas
ce74bc4a82 make mat4 transpose and scale inline function 2016-09-21 00:23:17 +03:00
Recep Aslantas
b2b50076d2 re-optimize mat4 determinant
* note: for square matrices det(a) = det(transpose(a)), we can go with
row-major calc here
2016-09-20 23:31:27 +03:00
Recep Aslantas
8a6fe6948a improve mat4 mul 2016-09-20 03:13:48 +03:00
Recep Aslantas
b42a599310 typo 2016-09-19 20:37:07 +03:00
Recep Aslantas
5115814d5b glm --> opengl helper function 2016-09-19 19:03:07 +03:00
Recep Aslantas
b69944be0a beautify print outputs 2016-09-19 15:48:14 +03:00
Recep Aslantas
00ee60acc9 vec4 to vec3 2016-09-19 15:31:08 +03:00
Recep Aslantas
499aab1001 fix mat4 vec4 mul 2016-09-19 15:29:25 +03:00