Commit graph

215 commits

Author SHA1 Message Date
c59b28e13f Rename 'geom' library to 'math' 2024-12-10 20:22:59 +03:00
5138e00c35 Move heavy gltf animation code to a cpp file 2024-11-14 21:45:08 +03:00
2bd4e5790b Support embedded textures in glTF 2024-08-26 23:42:29 +03:00
c16194c95c Support drawing polygons in gfx::painter 2024-08-20 11:51:12 +03:00
a2c83633ae Support non-const width lines in gfx::painter 2024-08-18 01:12:17 +03:00
6368ca5e68 Support 2D scale in gfx::painter::text 2024-08-17 18:17:32 +03:00
0718282dda Support booleans in glTF extras 2024-08-02 16:56:15 +03:00
6d13bfa407 Load gltf skin names 2024-06-08 17:32:57 +03:00
22a57f91db Huge refactor: use util::hash_table instead of std::unordered everywhere 2024-06-03 14:36:39 +03:00
663f7bc5f4 Support retrieving extra properties & raw mesh from gltf mesh 2024-03-16 17:37:57 +03:00
1cc2c23602 Support glb in gfx::gltf_mesh 2024-03-15 23:26:43 +03:00
a26826fc03 Add ignored warning in stb_image_write 2024-03-14 08:41:47 +03:00
dbcffa8d4a Support gamma-correction in gfx::blur 2024-03-11 21:04:43 +03:00
646ef45acf Disable alpha blending in gfx::blur 2024-03-11 21:04:27 +03:00
efbcf48d01 Add gltf accessor iterator 2024-01-03 03:25:28 +03:00
c3d964fafd Support loading GLB assets 2024-01-03 02:21:16 +03:00
de9c695a7a Windows compilation fix 2023-12-04 18:14:46 +03:00
1b949c0b7f Remove old NetPBM & PNG code in favour of new stb_* implementations 2023-12-04 18:00:08 +03:00
1c54dd85a5 Support saving images via stb_image_write 2023-12-04 17:43:04 +03:00
6ff3351ab8 Compile stb_image as C++ and use proper assertion handler 2023-12-04 11:38:14 +03:00
dca01b7cc4 Support reading arbitrary image formats via stb_image 2023-12-03 20:32:13 +03:00
de1a454079 Don't request alpha channel when loading monochrome PNG 2023-11-03 11:34:18 +03:00
340a04d17c Fix loading paletted PNG without alpha channel 2023-11-02 13:03:22 +03:00
721c88fbee Change the way discrete GPU forcing works 2023-10-25 16:50:08 +03:00
85d7a0ca33 Huge refactor: use util::exception everywhere instead of std exceptions 2023-08-06 18:33:07 +03:00
64672d3f1f Parse metallic & roughness pbr parameters from glTF materials 2023-08-01 22:27:53 +03:00
0836cf00a6 Properly log graphics api name in gfx::init 2023-07-22 00:49:15 +03:00
54b78e6c66 Android WIP: support OpenGL ES 3.2 and implement Android backend library 2023-07-18 15:43:14 +03:00
b910d16261 Grand app refactor: move main to sdl2 lib, make the rest of the engine independent of SDL2 2023-07-14 22:25:45 +03:00
93e5691d8a Implement writing png pixmaps 2023-06-06 13:21:50 +03:00
7ae3bbfe96 Support vertex colors in glTF parser 2023-03-30 20:46:31 +03:00
7ad2c92d31 Parse blender extras in glTF 2023-03-30 10:48:54 +03:00
21e35a988a Parse emission texture & KHR_materials_emissive_strength from glTF 2023-03-29 23:53:09 +03:00
063e8e43ba glTF animations 2023-03-26 23:51:51 +03:00
c26f626baf GCC 12 compilation fixes 2023-03-26 23:51:40 +03:00
1561162cf8 Parse glTF joints & weights attributes 2023-03-26 00:12:20 +03:00
0c2c950a8c Fix default scale when parsing glTF 2023-03-26 00:12:09 +03:00
d930ef6d93 Parse skins & animations in gltf parser 2023-03-25 19:50:32 +03:00
3bb0b53daf Support doubleSided property of gltf materials 2023-03-25 11:34:29 +03:00
d68242d59d Support material texture in gltf parser 2023-03-18 17:36:52 +03:00
ef6ef081d8 Support KHR_lights_punctual in gltf parser 2023-03-15 15:57:12 +03:00
cc7135a0f4 Warn about unknown pixel format instead of throwing 2023-02-28 01:36:17 +03:00
696ed71090 Add gfx memory usage utilities 2023-02-26 20:44:29 +03:00
ab13864021 Add node & material index to gltf_asset 2023-02-13 21:46:59 +03:00
5f63fb76f5 Add stride information to gltf parser 2023-02-13 18:04:08 +03:00
5e6cd060d7 Make io::read_full return util::blob 2023-02-10 21:15:19 +03:00
417c6f0080 Support more PNG color types 2023-02-05 00:33:53 +03:00
1582b341d3 Support child nodes & node transforms in gltf parser 2023-02-01 20:35:32 +03:00
0e84751ac9 Make gfx::gltf_mesh return empty primitive span if mesh wasn't found 2023-01-25 13:01:03 +03:00
ce1809e50d Support material names & emission in gltf parser 2023-01-24 12:01:51 +03:00