Commit graph

95 commits

Author SHA1 Message Date
89a608e35f Rename imported target sdl2 -> SDL2 & use it instead of legacy CMake variables 2020-09-21 09:13:47 +03:00
dbfd9da21c Add SDL2 initialization library & use it in app 2020-09-21 09:05:21 +03:00
d2d88ba7c5 Add 'psemek-' prefix to all psemek targets 2020-09-21 09:04:40 +03:00
bc585c6c8f Add REQUIRED to find_package(Threads) 2020-09-21 09:03:28 +03:00
67ad584d48 Add interval::center & box::center 2020-09-20 19:43:41 +03:00
b51e509562 Don't add psemek to ALL 2020-09-19 12:07:03 +03:00
ae282d796c Implement packaging for windows 2020-09-19 11:51:51 +03:00
d3fb1a5b12 Fix linux packaging 2020-09-16 14:54:33 +03:00
6fba44ca49 Check number of arguments in linux packaging 2020-09-16 13:13:15 +03:00
e4a841f132 Add linux packaging tools 2020-09-16 13:08:32 +03:00
18ef177b78 Prefer LEGACY OpenGL in CMake 2020-09-14 15:30:30 +03:00
c87a8a5c71 Add a CMake option for robust geom predicates 2020-09-14 15:30:09 +03:00
d250becf43 Fix missing includes 2020-09-14 11:32:33 +03:00
40324d6db9 Add gfx::lerp for uint8 colors 2020-09-13 19:56:43 +03:00
66a72b89bd Implement in-place sampling (without allocations) in pcg 2020-09-13 16:40:16 +03:00
9191ab68cc Support access to perlin noise internal data 2020-09-13 16:39:49 +03:00
8922399c74 Add float <-> uint8 color conversions 2020-09-13 16:39:29 +03:00
3444ac9984 Support setting perspective camera fov by aspect ratio 2020-09-13 16:39:11 +03:00
66f9878dd1 Add deg<->rag conversions 2020-09-13 16:38:50 +03:00
c7dba5eef2 Add pedantic warnings to CMake & fix all warnings 2020-09-13 13:03:31 +03:00
9ee0e42695 Add unused macro 2020-09-13 12:49:47 +03:00
0453d4e15d Be more permissive with vector & point constructor argument types & array index types 2020-09-13 12:49:34 +03:00
e3f9770dea Update todo 2020-09-13 12:25:16 +03:00
9aac943efd Fix min filter for painter font 2020-09-13 12:17:43 +03:00
15695973df Rename scene::draw to scene::render 2020-09-13 11:14:22 +03:00
835e0eab70 Turn off multisampling by default 2020-09-13 11:14:07 +03:00
c490d5307e Turn off multisampling by default 2020-09-13 11:12:19 +03:00
e97812dcaf Add on_scene_enter & on_scene_exit 2020-09-13 11:11:58 +03:00
29827743f6 Add app::impl::get_scene() 2020-09-13 11:11:08 +03:00
807daf3237 Add pixmap bluring 2020-09-13 11:09:12 +03:00
519adcae3a Add voronoi map generator 2020-09-13 11:07:59 +03:00
39765c9d26 Add white noise pixmap generator 2020-09-13 11:07:20 +03:00
da7b71b504 Add generator & pixmap mapping functions 2020-09-13 11:05:57 +03:00
395df40793 Add 2d generator sampling to pixmap 2020-09-13 11:04:25 +03:00
150d96e74e Add point in box generation 2020-09-13 11:03:06 +03:00
b1963460c0 Add vector on sphere generation 2020-09-13 11:02:53 +03:00
3705dac55e Add seamless perlin noise 2020-09-13 10:38:16 +03:00
1cfdde033b Scale pcg::perlin output to [0,1] 2020-09-13 10:36:44 +03:00
7697adcc68 Add volume & normal of a simplex 2020-09-13 10:35:16 +03:00
007fd12240 Rename cross(v,v) to ort(v...), cross left as convenience 2020-09-13 10:34:50 +03:00
6844a01a8f Make gfx::pixmap an alias to 2D util::array 2020-09-10 18:23:56 +03:00
12b4b44011 Various util::array fixes 2020-09-10 18:23:18 +03:00
6e2277ded3 Change pi constant type to long double 2020-09-10 18:14:52 +03:00
6e42502873 Support explicit padding in mesh vertices 2020-09-10 11:06:10 +03:00
30448d2ec1 Add util::array - an N-dim array with variable bounds 2020-09-10 11:05:19 +03:00
195867ac31 Remove util::multidimensional_array 2020-09-10 11:04:57 +03:00
6499cf8779 Remove obsolete header 2020-09-10 11:04:42 +03:00
bccc5070c2 Fix public compile definitions for sublibs 2020-09-10 11:03:56 +03:00
d7e0599556 Simplify setting texture filters & add anisotropic filtering 2020-09-10 11:03:25 +03:00
8a37d29b5e Add EXT_texture_filter_anisotropic to OpenGL loader 2020-09-10 11:01:24 +03:00