Commit graph

80 commits

Author SHA1 Message Date
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
22726bc565 Fix spherical camera elevation angle 2020-08-31 10:20:19 +03:00
78fd6db86c Add axes & sphere drawing for gfx::painter 2020-08-31 09:58:59 +03:00
cf6a8e98eb Change spherical camera: now X is right, Y is forward, Z is up 2020-08-31 09:47:30 +03:00
695da47ade Fix scene resize if scene changed when processing events 2020-08-31 09:47:04 +03:00
eb67ee846d Implement simple text rendering in gfx::painter 2020-08-30 21:27:34 +03:00
3136c3b239 Add an istream class that wraps raw data buffer 2020-08-30 21:27:10 +03:00
3d3e6c583b Refactor gfx::painter methods 2020-08-30 21:23:33 +03:00
ac505229ae Use scene for draw & update calls instead of app 2020-08-30 21:22:12 +03:00
3dd8f3db61 Explicitly request 24-bit depth buffer 2020-08-30 21:21:54 +03:00
21b532062b Add app::stop 2020-08-30 21:21:37 +03:00
e0c67d8043 Fix pixel attributes (std::array -> geom::vector) 2020-08-30 21:20:24 +03:00
dba0c78daf Support reading PBM images & fix all Netpbm readers 2020-08-30 21:20:01 +03:00
44883e0226 Make segment & triangle aliases instead of subclasses 2020-08-30 21:19:16 +03:00
1590ec4ece Move gfx/source/gfx -> gfx/source 2020-08-30 10:32:34 +03:00
dea7cbf32e Move on_quit handler from scene to app 2020-08-30 10:24:22 +03:00