Commit Graph

86 Commits

Author SHA1 Message Date
Roz K 7d35ac0e5b
Move vertex format to utils. 2023-01-07 06:30:08 +01:00
Roz K 7384a014ff
Improve enum declaration. 2023-01-06 18:42:58 +01:00
Roz K cb763962fd
Merge vertex and param formats. 2023-01-06 18:40:58 +01:00
Roz K 39c449a763
Add direct copy when output and input vertex formats are matching. 2023-01-06 18:16:10 +01:00
Roz K a02d8e4d7d
Fix unsigned packed vertex format. 2023-01-06 18:15:19 +01:00
Roz K 81d52086fe
Rework params packing. 2023-01-06 17:05:09 +01:00
Roz K 16c7c91508
Add function attributes to cmp_memcpy. 2023-01-06 17:03:21 +01:00
Roz K 9181d58ecd
Add template for packed ints and fix missing define. 2023-01-06 17:02:24 +01:00
Roz K a6ec35ebd1
Remove heavy optims flags from makefile and add predefined function attributes instead. 2023-01-06 17:00:11 +01:00
Roz K 596caef7ee
Move cmp_memcpy into directory utils. 2023-01-05 03:39:32 +01:00
Roz K f463db316f
Fix signed integers normalisation. 2023-01-04 15:24:18 +01:00
Roz K 59d13684be
Improve typing in render. 2023-01-04 12:41:05 +01:00
Roz K d6ec77207f
Cleanup includes. 2023-01-04 10:22:12 +01:00
Roz K b46b4bddba
Improve typing in render. 2023-01-04 09:33:49 +01:00
Roz K ebc6ededf3
Improve mesh struct after switching to mesh indices. 2023-01-04 09:06:13 +01:00
Roz K 74b6f58794
Fix redondant modification test in batch sorting. 2023-01-03 21:41:03 +01:00
Roz K 39a95e24c3
Switch to buckets sorting. 2023-01-03 21:31:36 +01:00
Roz K 3e0ea2560a
Improve compare-memcopy. 2023-01-03 20:50:18 +01:00
Roz K 558ec08614
Buckets sorting. 2023-01-03 16:06:11 +01:00
Roz K 211762c279
Remove obvious flags from makefile. 2023-01-03 16:05:37 +01:00
Roz K a5adfacdfd
Use mesh indices in batch. 2023-01-03 14:05:25 +01:00
Roz K d0741afda7
Stores meshes into vertices. 2023-01-03 12:59:07 +01:00
Roz K 66980e6ea9
Move vertices and indicies buffers to vertices. 2023-01-03 11:38:19 +01:00
Roz K a91a852887
Automatic batch freezing. 2023-01-03 11:10:37 +01:00
Roz K 357066b315
Cleanup makefile. 2023-01-03 11:10:14 +01:00
Roz K baac333b44
Batch freezing. 2023-01-03 05:28:24 +01:00
Roz K ed87f292ff
Split batch fill and batch draw. 2023-01-02 17:01:36 +01:00
Roz K afad17d517
Fix interface types and constness. 2023-01-02 12:14:13 +01:00
Roz K beca8798bf
Rename create_shader. 2023-01-01 08:09:37 +01:00
Roz K e80bbe2418
Remove begin_frame and end_frame, add clear_buffer. 2023-01-01 07:57:10 +01:00
Roz K ae3333e22e
Move samplers bindings to shaders. 2022-12-31 13:36:48 +01:00
Roz K 2095e335ea
More errors handling. 2022-12-31 12:26:41 +01:00
Roz K 6ec993c6f8
Some errors handling. 2022-12-31 11:52:26 +01:00
Roz K 38a692bc42
Disable dithering. 2022-12-31 11:50:09 +01:00
Roz K 7706fe3a26
Print max textures layers and max attribs. 2022-12-31 11:49:47 +01:00
Roz K 43d62948b7
Move vertex array and buffers from vertices to batch. 2022-12-31 09:38:18 +01:00
Roz K 1b9ce54100
Quit orphaning and use dynamic buffers. 2022-12-31 05:30:42 +01:00
Roz K 3b21e1610a
Batch commands memory optim. 2022-12-30 14:49:00 +01:00
Roz K 628f8bcaa4
Buffer orphaning and subrange update optims. 2022-12-30 14:14:32 +01:00
Roz K 306ac3d312
Add a parameter to enable/disable debug output. 2022-12-30 14:11:48 +01:00
Roz K 7db5304d40
Switch back to SoA parameters. 2022-12-30 10:50:56 +01:00
Roz K 414630ecfd
Better framebuffer config selection with sRGB. 2022-12-29 19:15:27 +01:00
Roz K ed6c852102
Rework GL framebuffer config selection. 2022-12-29 16:24:37 +01:00
Roz K 919ba9291f
Cleanup GL/GLX extensions. 2022-12-29 16:20:42 +01:00
Roz K 33abfd834a
Add mat4_orbit. 2022-12-29 08:11:12 +01:00
Roz K 269d7821c8
Cleanup vertex and params creation, and switch commands and params buffers to dynamic draw. 2022-12-27 06:27:08 +01:00
Roz K af0edd5e6d
Add set_param_mat3. 2022-12-27 06:20:18 +01:00
Roz K ad2e89f684
Cleanup mat4 setters. 2022-12-27 06:18:51 +01:00
Roz K 6b33f8285c
Add mat3 instances parameters. 2022-12-26 14:05:06 +01:00
Roz K 618e05bcaa
Dump extensions (commented out). 2022-12-26 14:04:39 +01:00