Commit graph

178 commits

Author SHA1 Message Date
52bb516d5c Initialize gfx objects id to 0 in class instead of constructor 2022-11-30 17:31:47 +03:00
03976206ce Store allocated gfx::renderbuffer size 2022-11-30 17:26:43 +03:00
182de08811 Add gfx::renderbuffer::target 2022-11-30 17:25:13 +03:00
ce287c0416 Support loading data from util::span to gfx::buffer 2022-08-19 09:48:21 +03:00
5f3b07573e Support retrieving available GPU memory size 2022-08-14 22:59:14 +03:00
19d8637f7a Update gl.cpp 2022-08-14 22:40:20 +03:00
3ca9c8b16e Add buffer textures 2022-07-29 18:58:41 +03:00
f574850621 Fix setting up instanced VAO attribs using gfx::setup 2022-06-30 23:08:13 +03:00
bd7f8e6658 Add gfx::array::operator bool 2022-06-30 23:07:51 +03:00
b519391f83 Fix gfx::bone_transform::matrix 2022-06-23 00:10:17 +03:00
8d2f244d0d Support gfx::compile armature pose ignoring local bone coordinate systems 2022-06-22 18:04:39 +03:00
a439d33b0f Support setting uniform block indices in gfx::program 2022-06-22 18:03:04 +03:00
a9cb71629e Support binding gfx::buffer via glBindBufferBase 2022-06-22 18:01:35 +03:00
f0c63bac7a Support loading sRGB textures 2022-06-20 22:11:50 +03:00
0bddeaf865 Add ordered dither mask generation to gfx 2022-06-18 17:35:50 +03:00
302e5e888f Support gfx::texture::mirrored_repeat 2022-06-18 15:18:49 +03:00
9edf94be0c Clang compilation fixes 2022-06-11 13:58:54 +03:00
b0fd3562cf Add color hex output 2022-05-28 20:07:21 +03:00
b6fd6630dc Add color (un)premultiplication utils 2022-05-28 18:54:17 +03:00
7b99158b4d Add color from text parsing 2022-05-21 21:44:38 +03:00
f21fa3c2d6 Store texcoords as float in texture_view 2022-05-19 11:23:42 +03:00
a3d5a424dd Add sRGB <-> linear conversion for pixmaps 2022-05-17 12:54:08 +03:00
565ab68682 Add gfx::to_srgb/to_linear for colors 2022-05-17 12:54:08 +03:00
aa27b47723 Support item padding in gfx::texture_atlas 2022-05-14 00:01:45 +03:00
366a0653b5 Add image-load-store OpenGL extension 2022-04-22 10:37:14 +03:00
fc514577a1 Support compute shader in gfx::program 2022-04-22 10:21:14 +03:00
49607f5896 Update generated OpenGL wrapper to support compute shaders extension 2022-04-22 10:21:00 +03:00
30b3536d72 Replace query_array with a more useful query_poll 2022-04-21 23:16:45 +03:00
8d41e7fcd9 Add gfx::texture_atlas_2d::used_pixels() 2022-03-13 18:00:47 +03:00
39cbb8b60d Fix gfx::texture_view::size 2022-02-17 18:52:31 +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
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