Commit graph

347 commits

Author SHA1 Message Date
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
de4a661009 Move netpbm routines to netpbm.cpp 2021-02-27 18:13:40 +03:00
e939d59a79 Export default 9x12 monospace font as public gfx resource 2021-02-25 09:07:15 +03:00
f8d127d700 Support blending textures with a color in painter 2021-02-17 14:55:17 +03:00
74ba55257f Textures bugfix: copy & reset size on move 2021-02-17 14:43:07 +03:00
1b9e769b3f Support quaternion uniforms 2021-02-15 22:38:30 +03:00
e2bcab4f89 Fix shader source line numbering 2021-01-30 19:19:35 +03:00
e8c0d9492b Show source lines when reporting shader compilation errors 2021-01-29 10:34:40 +03:00
fe873209c6 Support buffer loading from std::array and C array 2021-01-28 20:17:57 +03:00
5e7aa7601d Pimpl declaration macros now define a make_pimpl(...) static helper function 2021-01-23 10:42:14 +03:00
a8aef622a1 Fix bug in deferred renderer 2021-01-18 20:09:19 +03:00
c37fc1f614 Fix shader version in deferred renderer 2021-01-18 20:03:51 +03:00
b6cb3576a5 Show full shader source on compilation failure 2021-01-18 20:03:24 +03:00
07924aa0d5 Various clang compilation issues 2021-01-18 20:02:35 +03:00