Commit graph

1934 commits

Author SHA1 Message Date
726b8486c7 Add explicit bool cast for OpenGL objects 2020-10-04 17:22:16 +03:00
8040d5e1d2 Fix painter text rendering 2020-10-04 17:20:31 +03:00
b0ecc6c056 Add OpenGL array class 2020-10-04 12:23:01 +03:00
6709792abf Move pixel_traits to a separate header 2020-10-04 12:22:45 +03:00
b1afa3dbc1 Uniformize GL objects' interface & add texture extern templates 2020-10-04 11:44:16 +03:00
db0f7915cf Refactor textures: add generic template, remove copypaste 2020-10-04 11:20:53 +03:00
daeba8674a Support vector, point & interval uniforms of unknown floating-point/integral types 2020-10-04 11:18:01 +03:00
3472bf056b Add geom::cast for intervals and boxes 2020-10-04 11:15:23 +03:00
d8069308ee Support all texture types for framebuffer color target 2020-10-03 20:42:16 +03:00
5e344c408f Add 2D array textures 2020-10-03 20:41:52 +03:00
f18fbfdcdb Fix scale transformation matrix 2020-10-03 18:44:18 +03:00
2771564b94 Add instanced_indexed_mesh class 2020-10-03 15:36:26 +03:00
fed4da3213 Support setting vsync in app::app 2020-10-03 13:10:09 +03:00
90165b9b59 Support calling pcg generators with sequence of coordinates (as opposed to geom::vector) 2020-10-03 13:06:17 +03:00
b47a95a158 Store window size in base app 2020-10-02 19:19:19 +03:00
eb1f5d49ff Add a free-flying camera 2020-10-02 19:18:55 +03:00
23de4a520e Support rendering part of a mesh 2020-10-02 19:18:35 +03:00
3c215d6abb Rename indexed_mesh::count -> indexed_mesh::index_count 2020-10-02 19:13:54 +03:00
d4a7611ee5 Refactor mesh vertex size check 2020-10-02 19:13:17 +03:00
9e79bd1c40 Add color_3f & color_4f type aliases 2020-10-02 19:12:11 +03:00
8348feac9e Rename box_point_distribution -> uniform_box_point_distribution 2020-10-02 19:11:47 +03:00
18d8ddfb34 Initialize pcg::generator state with zeros by default 2020-10-01 23:09:42 +03:00
d421fc8c65 Add easing function, move gradient to a separate header 2020-10-01 09:44:47 +03:00
1e4fb66a89 Move generic lerp to math.hpp 2020-10-01 09:44:47 +03:00
d72e01e34e Add a gradient helper class 2020-09-30 18:59:47 +03:00
b7950a0520 Simple renderer supports textures 2020-09-30 16:22:08 +03:00
3a3d93c7db Add signed & two-component pixel traits 2020-09-30 16:21:16 +03:00
7b9e042842 Fix threadpool::wait - wait for finished tasks as well, not just empty task queue 2020-09-30 16:20:48 +03:00
5079bcd127 Remove render_to_texture since it's almost useless 2020-09-30 16:17:33 +03:00
d4c2b5c408 Fix array indices iteration 2020-09-30 16:16:24 +03:00
58a30fe347 Fix thread registration 2020-09-30 16:16:08 +03:00
0073b8bfc9 Add generic fractal noise 2020-09-30 07:29:29 +03:00
15de7a88d5 Make pcg::perlin template & any-dimensional 2020-09-30 07:29:16 +03:00
f01219c4e7 Add 3D and 1D textures 2020-09-30 07:28:44 +03:00
e520b464e4 Add util::array iterators over range of indices 2020-09-30 07:23:05 +03:00
4bb287eb70 Add n-dim versions of orientation(points) and add orientation(vectors) 2020-09-30 07:22:27 +03:00
767eb786d5 Add a helper for triangulating convex polygons 2020-09-30 07:21:40 +03:00
517f964ce7 Add a helper scene_base & inherit app from it 2020-09-29 19:20:38 +03:00
e42c5dc054 Add a simple colored renderer 2020-09-29 19:20:17 +03:00
4e37e7a54f Add common generic colors 2020-09-29 19:20:02 +03:00
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