Commit graph

310 commits

Author SHA1 Message Date
86296209c8 Remove query_array usage from deferred renderer 2022-04-21 23:16:24 +03:00
8d41e7fcd9 Add gfx::texture_atlas_2d::used_pixels() 2022-03-13 18:00:47 +03:00
d14763792d Add 10x12 bold font atlas 2022-03-12 17:49:27 +03:00
75e6db45f1 Redesign resources system: centralized id-based resource registry 2022-03-07 00:05:40 +03:00
50b75bdd27 Make blur effect alpha-aware 2022-02-26 14:33:26 +03:00
13b47877ce Revert adding cell borders in default font 2022-02-23 14:12:32 +03:00
39cbb8b60d Fix gfx::texture_view::size 2022-02-17 18:52:31 +03:00
68e8ece70a Add outlines for default font glyphs for better inspection 2022-02-15 16:24:32 +03:00
45b3369bc9 Add texture atlas implementation 2022-02-10 13:29:47 +03:00
d01008114b Add gfx::texture_view specifying a part of existing texture 2022-02-10 13:29:17 +03:00
b724b8d68a Add inverse(bone_transform) 2021-08-12 21:51:11 +03:00
4dcd85021e Add bone_transform * vector and * point 2021-08-12 21:04:36 +03:00
69c0ce8c59 Make imported mesh attributes' indices fixed 2021-08-05 16:29:47 +03:00
bc7378456b Add gfx::mesh::create(imported_mesh) 2021-07-24 10:13:57 +03:00
1b6bc9a449 Add name parameter to framebuffer::assert_complete for better error reporting 2021-07-21 23:46:30 +03:00
7b929ec951 Add gfx::lerp for poses 2021-07-21 22:06:18 +03:00
ef53e0e8d2 Add gfx::pose_ref type alias 2021-07-21 22:06:05 +03:00
ec6552d1a4 Add const version of gfx::mesh::*_buffer 2021-07-18 12:33:18 +03:00
359f9492b3 Fix gfx::setup for instanced attributes 2021-07-18 12:32:20 +03:00
de1950f1a6 Rewrite mesh exporter to support armature & poses 2021-07-13 11:55:57 +03:00
fc47633c42 Add bone armature helpers 2021-07-13 11:55:46 +03:00
0af7e8f274 Support setting program uniform by location 2021-07-13 11:54:22 +03:00
d73ce27c32 Optimize program uniform location cache 2021-07-13 11:53:58 +03:00
1cc5d28761 Support integer vertex attributes 2021-07-13 11:46:46 +03:00
96652584a9 Turn gfx::buffer to a templated gfx::basic_buffer to support different buffer types 2021-07-13 11:44:23 +03:00
39855a5d84 Make gfx::load_mesh return structured data instead of a tuple 2021-07-11 11:38:00 +03:00
b97e7bc26c Support setup attrib description without a mesh object 2021-07-07 16:50:23 +03:00
fe4dd717f1 Add mipmap calculation function 2021-07-05 12:18:15 +03:00
25153001c0 Proper move, reset & null-construct for gfx::program 2021-07-04 23:17:33 +03:00
6994b23fdb Support interpolated line color in gfx::painter 2021-06-20 15:53:08 +03:00
4ab4788eca Support drawing quadratic besier lines in gfx::painter 2021-06-13 14:14:37 +03:00
ebda20ff9c Support drawing multi-color triangles in gfx::painter 2021-06-13 14:14:25 +03:00
ed41bc6583 Explicit circle quality parameter for gfx::painter::circle 2021-06-13 12:30:18 +03:00
ae8fa3579b Fix texture pixels retrieval for non-zero lods 2021-06-05 10:23:19 +03:00
b8bf80e84e Support binding a texture to a specific texture unit 2021-06-04 13:58:22 +03:00
99e72c552b Support printing context to gfx::check_error 2021-05-29 18:38:28 +03:00
b8ac384770 Implement 2D convex separation routine & change separation return type 2021-05-07 17:37:45 +03:00
eecc054870 Use io::stream for png input 2021-04-20 15:11:41 +03:00
75d1526bdd Fix uint16_t pixel traits 2021-04-02 11:05:08 +03:00
bb1df4599d Add coloru16 converters 2021-04-02 11:04:50 +03:00
05cffcdc73 Support quaternion attribs 2021-03-13 14:30:22 +03:00
9baa91b7e3 Map buffer data as shared_ptr<T[]> 2021-03-13 14:30:11 +03:00
3e4cea25e7 Make gfx::load_mesh return data instead of loading mesh directly 2021-03-07 19:05:13 +03:00
5255abd66a Implement loading meshes from binary format 2021-03-07 18:31:20 +03:00
697de5c422 Add gfx::mesh::load_raw for loading buffers from raw data 2021-03-07 18:30:00 +03:00
e4f0675a1d Refactor gfx attribs: store vertex & instance size in attrib description 2021-03-07 18:29:25 +03:00
9dc95c797c Make gfx::renderbuffer::storage support template pixel types 2021-03-06 18:30:35 +03:00
f878321628 Convert default font to PNG 2021-02-27 19:45:27 +03:00
6661299573 Support reading grayscale pngs 2021-02-27 19:44:17 +03:00
08d6469311 Support png image loading 2021-02-27 19:09:14 +03:00