Commit graph

161 commits

Author SHA1 Message Date
aaf6ce7652 Fix indexed mesh loading from simplices 2020-09-29 19:19:22 +03:00
8eb134908b Introduce gfx::drawable interface 2020-09-29 19:19:20 +03:00
fb9134993c Add a file for general geometric mesh utilities 2020-09-29 19:18:39 +03:00
ebcd2906a8 Move deg, rad to math.hpp 2020-09-29 19:18:39 +03:00
2b57e3e696 Add generic affine transform class & unify transform interfaces 2020-09-29 19:18:35 +03:00
325f90d7c8 Fix audio::track::size 2020-09-29 12:32:04 +03:00
d40ec7c0ca Fix netpbm parsing 2020-09-28 18:51:49 +03:00
631a720e56 Fix 3d line drawing 2020-09-28 14:10:51 +03:00
98ff134d3a Add point-box distance 2020-09-28 11:03:30 +03:00
9a47bddb73 Add math utilities header & sqr function 2020-09-28 11:03:19 +03:00
9cf5a88afd Support relative mouse mode 2020-09-27 20:43:17 +03:00
e73da04a31 Add 3D line painting 2020-09-27 19:40:22 +03:00
dbc429eaa7 Support 3D text in painter 2020-09-27 19:14:50 +03:00
90ece36fd5 Add uniform distribution inside a ball 2020-09-27 16:44:13 +03:00
9949c0c232 Support retrieving distribution parameters 2020-09-27 16:44:02 +03:00
eb5577909a Add pcg::random::uniform_distribution<T> that selects between int and real 2020-09-27 16:43:23 +03:00
e7e419a931 Add arbitrary-matrix camera 2020-09-27 11:59:57 +03:00
6c4ed1b61d Fix gram_schmidt recursive base ODR 2020-09-27 11:59:33 +03:00
81cafa6f05 Add ray-simplex intersection 2020-09-26 23:23:40 +03:00
d3b306f29e Fix white noise 2020-09-26 15:39:08 +03:00
4a583d092c Add Wavefront OBJ file parser 2020-09-25 23:16:20 +03:00
6a64c36e01 Fix uniform int distribution 2020-09-25 17:20:14 +03:00
44f293c023 Fix instanced normalized mesh attributes 2020-09-25 17:19:36 +03:00
f7c2d5d554 Bugfix: call on_scene_enter only once 2020-09-25 13:43:34 +03:00
64751170cb Implement instanced meshes & matrix attributes 2020-09-25 11:36:18 +03:00
aedd41ae7f Fix mesh move constructor & assignment bugs 2020-09-25 11:36:00 +03:00
616b7cfce5 Add OpenGL error reporting 2020-09-25 11:34:27 +03:00
040497887c Implement fractal perlin noise 2020-09-24 19:06:33 +03:00
aba0afa15e Update todo 2020-09-24 13:10:04 +03:00
8877f6dedd Redesign gfx::mesh: stores primitive type, supports loading from pointers & simplices (deduces primitive type in the latter case) 2020-09-24 12:45:25 +03:00
5d44efa2ea Add geom::point::zero() 2020-09-24 12:44:36 +03:00
1571e9032b Add ray-box intersection 2020-09-23 22:25:39 +03:00
fb0d926a73 Fix geom::intersection template argument deduction issues 2020-09-23 22:25:28 +03:00
cf99917272 Add geom::interval::full 2020-09-23 22:24:43 +03:00
4410597e44 Add geom::ray primitive 2020-09-23 22:23:37 +03:00
e53d5fba13 Add texture_2d wrap options 2020-09-23 21:56:40 +03:00
2dd9ebae76 Add camera::direction() 2020-09-23 21:56:25 +03:00
86785a5923 Improve color blur implementation 2020-09-23 20:46:03 +03:00
80e8c59a1e Templated blur implementation + specializations for color_rgb(a) 2020-09-23 20:19:37 +03:00
f193ddf41d Add util::map(array) for transforming arrays elementwise 2020-09-23 20:19:02 +03:00
8ece2e1884 Fix log behavior for templated output operators 2020-09-23 13:15:18 +03:00
5830977e45 Add a simple statistics calculator utility 2020-09-23 13:14:34 +03:00
0e5759f1c6 Log about SDL2 initialization 2020-09-23 12:32:41 +03:00
061489a1ce Remove unused packaging function 2020-09-23 11:50:18 +03:00
e836385f33 Update todo 2020-09-23 11:12:30 +03:00
1d8f611eb8 Huge pcg/random rewrite: get rid of <random>, use self-written distributions instead 2020-09-23 11:12:23 +03:00
83aba92c42 Add PCG32 generator to pcg 2020-09-23 11:00:19 +03:00
06916083bb Add boost::random_device to pcg 2020-09-23 10:59:42 +03:00
342519003c Add audio::sample typedef to int16_t 2020-09-22 20:24:37 +03:00
ac8684faa3 Audio: query actual frequency & channels, initialize effects based on that 2020-09-22 20:20:48 +03:00