Commit Graph
100 Commits
Author SHA1 Message Date
Recep Aslantas b6dc5029dd build, win: update windows solution and proejct files 2018-01-12 16:41:34 +03:00
Recep Aslantas 2349bbff31 move frustum related stuff to frustum header
* create helpers macro which defines corner index
* func for get bounding box frustum
* add missing source to make file
* add more desc to glm_frustum_corners
2018-01-12 15:21:36 +03:00
Recep Aslantas 2b7994778d fix lib call version of look_anyup 2018-01-12 12:54:33 +03:00
Recep Aslantas 4e6ab470c2 update glm_look_any to glm_look_anyup 2018-01-12 12:52:25 +03:00
Recep Aslantas 50c23ce1c0 add missing definitions, fix initizlizing vector 2018-01-10 22:42:34 +03:00
Recep Aslantas 61ac032751 new wrappers for lookat 2018-01-10 22:02:14 +03:00
Recep Aslantas 9ee79a8b13 possible orthogonal/perpendicular vector 2018-01-10 00:26:13 +03:00
Recep Aslantas 42743e3b82 use float literal suffix for numbers 2018-01-10 00:01:06 +03:00
Recep Aslantas b3c3e3a034 fix variable names 2018-01-08 16:03:53 +03:00
Recep Aslantas 642cc8d603 perspective sizes 2018-01-04 13:54:35 +03:00
Recep Aslantas d53f95314d apply optimizations 2018-01-04 13:52:35 +03:00
Recep Aslantas 797c4581ee extract fovy and aspect for perpective matrix 2018-01-04 11:16:09 +03:00
Recep Aslantas 3e4f52b3af optimize operations, fix max sign 2018-01-02 10:16:46 +03:00
Recep Aslantas eaf45e489d view frustum center 2017-12-31 17:17:39 +03:00
Recep Aslantas 2d0a3ad828 use frustum namespace for frustum specific funcs 2017-12-30 18:05:11 +03:00
Recep Aslantas 400fc6cbee extracting view frustum corners 2017-12-30 17:51:40 +03:00
Recep Aslantas 634e1170a3 min and max util 2017-12-30 17:50:53 +03:00
Recep Aslantas 99669a21a4 move extracting planes to camera header
* since it related to view frustum / camera it should be in thie header or separate header called frustum.h
* update LICENSE to add authors of algorithm
2017-12-30 13:55:17 +03:00
Recep Aslantas d14627ac52 vec: fix parameter types 2017-12-30 13:14:09 +03:00
Recep Aslantas c98340d9d2 exracting planes 2017-12-30 12:18:32 +03:00
Recep Aslantas 3f616ce6a3 update version 2017-12-27 16:32:49 +03:00
Recep Aslantas 35d078a1ed avoid using far and near names because windows uses it as macro!!! 2017-12-27 16:31:26 +03:00
Recep Aslantas 63eaee5049 vec: implement min and max 2017-12-17 16:55:04 +03:00
Recep Aslantas ef0dd289bb update version 2017-12-17 15:56:16 +03:00
Recep Aslantas 4052943a0d matrix: make accurate inv version default
* now the glm_mat4_inv_precise is deault, because I don't think all people are aware of this func
* the old behavior (fast) replaced with new func: glm_mat4_inv_fast

if fast version is desired then glm_mat4_inv_fast must be used.
2017-12-17 15:49:00 +03:00
Recep Aslantas 33fefb9454 ci, travis: fix coveralls installation 2017-12-07 20:57:53 +03:00
Recep Aslantas 008de93d03 decompose projection matrix into near, far, left, right, top and bottom 2017-11-24 11:07:26 +03:00
Recep Aslantas 171668085d fix decompose near / far values from projection 2017-11-23 17:44:51 +03:00
Recep Aslantas 1907ba1046 decompose perspective near and far values 2017-11-23 17:16:29 +03:00
Recep Aslantas 39e1c35c79 convenient macros for UP vector for lookAt 2017-11-22 10:44:17 +03:00
Recep Aslantas be605e6100 update ignore file 2017-11-22 10:42:01 +03:00
Recep Aslantas b8897befa6 test: fix mat4 tests 2017-11-18 11:38:13 +03:00
Recep Aslantas 1b872375ab test: fix generating random matrix 2017-11-17 20:57:36 +03:00
Recep Aslantas c998ec13d8 test: fix comparing matrix results 2017-11-17 19:05:33 +03:00
Recep Aslantas b9c135baf2 test: fix generating random matrix
* use affine matrix for testing
2017-11-17 18:50:24 +03:00
Recep Aslantas efb37ab0f7 vec: helper / special macros for initializing white and black colors 2017-11-11 15:51:17 +03:00
Recep Aslantas b4cfc2a84a Merge branch 'master' of https://github.com/recp/cglm 2017-10-27 00:21:11 +03:00
Recep Aslantas 9fe48b34a7 inverse (opposite) of vectors 2017-10-27 00:20:41 +03:00
Recep Aslantas 48977a012b test: add some tests for mat4 2017-07-12 20:46:05 +03:00
Recep Aslantas 9d61668e04 re-organise files, remove cglm prefix from file to make them more clean 2017-07-11 18:05:10 +03:00
Recep Aslantas 3b159cdf02 neon: implement matrix multiplication for ARM Neon 2017-07-11 16:33:41 +03:00
Recep Aslantas 46303a2fb1 define common SIMD flags in common header 2017-07-11 16:31:55 +03:00
Recep Aslantas a55b0ab5db re-organise test structure 2017-07-11 12:30:02 +03:00
Recep Aslantas 71d731173a fix parameter docs 2017-07-06 17:00:04 +03:00
Recep Aslantas 56f84f0d49 add function, type and macros in header to top of header 2017-06-27 12:17:03 +03:00
Recep Aslantas f6959b99c6 fix pre-compiled vector header and suppress warnings 2017-06-15 20:06:00 +03:00
Recep Aslantas 991833ab77 fix precise matrix inv 2017-06-15 19:56:51 +03:00
Recep Aslantas 95cedccbd0 fix ending statement 2017-06-15 19:53:49 +03:00
Recep Aslantas 50b8b18560 add guard to SIMD header 2017-06-15 19:51:44 +03:00
Recep Aslantas 877f1d04bb suppress "Possible misuse of comma operator" warnings 2017-06-15 19:50:12 +03:00
Recep Aslantas 237e91fcad update README 2017-06-13 21:06:16 +03:00
Recep Aslantas 30ef6d93aa doc: getting started 2017-06-11 17:44:42 +03:00
Recep Aslantas cfdb86b5fc add epsilon version to compare vector with vector( or with value ) 2017-06-11 16:53:18 +03:00
Recep Aslantas 1e32edea65 docs: building cglm 2017-06-06 22:55:52 +03:00
Recep Aslantas 3fbf590d39 func for make matrix identity 2017-05-29 20:52:38 +03:00
Recep Aslantas 3728102644 add _scale_as feature
glm_vec_scale multiplies vector (all items) by a scalar
result = vector * factor, new scale = old scale * factor

now it is possible to scale a vector as specified factor
result = unit(vector) * factor, new scale = factor
2017-05-21 21:34:50 +03:00
Recep Aslantas eafcd1d103 improve and add comments to matrix decompositions 2017-05-21 20:48:17 +03:00
Recep Aslantas ed5ffc43cb optimize projection functions 2017-05-21 19:30:38 +03:00
Recep Aslantas e47cc22300 build: fix make install include path
* now we can include library headers like this: #include <cglm/cglm.h>
2017-05-21 13:39:38 +03:00
Recep Aslantas 8aa80d3e9b win: add version header to project 2017-05-21 12:36:31 +03:00
Recep Aslantas f90d3f5faf add removed functions as macro as DEPRECATED 2017-05-21 12:28:06 +03:00
Recep Aslantas 02513b77c1 add version info 2017-05-21 01:31:25 +03:00
Recep Aslantas fb444203b6 fix inlining exported function 2017-05-21 01:29:10 +03:00
Recep Aslantas 1214a566b6 translate and scale make util 2017-05-15 22:27:20 +03:00
Recep Aslantas 41c874aa97 fix linking test lib 2017-04-25 23:56:58 +03:00
Recep Aslantas 38be538342 test: test mat4_mul 2017-04-25 23:27:15 +03:00
Recep Aslantas 4d55510ff0 ignore: ignore test files 2017-04-25 23:25:10 +03:00
Recep Aslantas e789186889 zero initializer for matrix 2017-04-25 23:22:29 +03:00
Recep Aslantas 24b9992f19 deps: add cmocka as submodule for unit testing 2017-04-22 16:56:16 +03:00
Recep Aslantas e7f35704ca fix identity quat initialization for C++ / Windows 2017-04-22 15:57:08 +03:00
Recep Aslantas 24ab1ff621 add badges to README 2017-04-22 15:39:08 +03:00
Recep Aslantas f1b55589ac ci: fix build script for travis ci 2017-04-22 15:29:08 +03:00
Recep Aslantas ef5a8549e2 add missing file for windows 2017-04-22 15:20:38 +03:00
Recep Aslantas d5371f10a1 ci: set appveyor image 2017-04-22 15:17:36 +03:00
Recep Aslantas cab370d1c7 ci: add travis and appveyor 2017-04-22 15:02:12 +03:00
Recep Aslantas 76107064d7 add build instructions for Windows 2017-04-22 14:59:18 +03:00
Recep Aslantas 12ea809e0a enable code analysis for windows 2017-04-22 14:59:18 +03:00
Recep Aslantas e2fcf80e48 build for windows (dll) 2017-04-22 14:59:18 +03:00
Recep Aslantas 33770b9181 add missing docs to vector header 2017-04-15 02:08:43 +03:00
Recep Aslantas cb6d5c1f7e center point of to vectors 2017-04-15 02:05:06 +03:00
Recep Aslantas 4ffc01655e optimize quat to matrix 2017-04-10 19:52:08 +03:00
Recep Aslantas 25feab7860 use multiplication instead of division for 1 / 2 2017-04-10 18:52:32 +03:00
Recep Aslantas bf18ca647e distance between two vectors 2017-04-09 21:14:26 +03:00
Recep Aslantas 86c585b9e5 vec-ext: fix vec4 min 2017-03-23 19:34:51 +03:00
Recep Aslantas d6cae07602 vec-ext: fix vec param type 2017-03-23 19:34:36 +03:00
Recep Aslantas ba0973054e styles 2017-02-27 16:54:59 +03:00
Recep Aslantas ec371099bc doc: add documentations to view, projection functions 2017-02-27 16:48:10 +03:00
Recep Aslantas a3b66f5b4c drop platform (OpenGL) specific codes 2017-02-27 16:30:32 +03:00
Recep Aslantas 4462a84f4a rename _dup (duplicate) to _copy
I think _copy is better and COMMON  name for duplicating/copying
vector, matrices
2017-02-23 09:57:28 +03:00
Recep Aslantas 595ad42cb8 re-organize folder structure
* move SIMD instructions (SSE2, AVX) to arch folder
2017-02-13 12:18:52 +03:00
Recep Aslantas 177bb594fd make pre-compiled funcs c++ compatible 2017-02-05 16:31:47 +03:00
Recep Aslantas 176f5ccf8e quat: f-call versions for new quat funcs and fix build 2017-02-05 16:27:47 +03:00
Recep Aslantas 7104fe172c vec: f-call versions for new vector funcs 2017-02-05 16:24:25 +03:00
Recep Aslantas 642a6d6341 vec: aux func compare two vectors are same or not 2017-02-03 16:02:30 +03:00
Recep Aslantas 124a9587c5 vec: fix rotating vector with affine transform
* first normalize rotation vectors because we only want to rotate here
not scaling
2017-02-01 00:11:13 +03:00
Recep Aslantas d3a9d1bb7a update README 2017-01-31 15:17:53 +03:00
Recep Aslantas a40c941a60 style 2017-01-31 15:06:35 +03:00
Recep Aslantas d784027a8a vec: project vec3 a onto vec3 b and store 2017-01-31 14:55:21 +03:00
Recep Aslantas 605cbea1d4 vec: implement pow(norm, 2)
we can avoid function calls with this func
2017-01-31 14:42:01 +03:00
Recep Aslantas 026750cae5 multiply vec3 with affine transform rotation (mat4)
this is may useful for rotate a vec3 with affine transform
2017-01-26 12:25:14 +03:00