Commit Graph

66 Commits

Author SHA1 Message Date
c3a6390404 draw text correctly 2025-09-09 19:10:04 +02:00
db63b2c6b1 layout actually works now 2025-09-08 23:43:59 +02:00
869c7871f9 minor changes 2025-09-06 12:50:36 +02:00
0f7d5a6506 working example of the new layout system 2025-09-05 13:10:16 +02:00
5e5c912092 use the specified allocator for the element caches 2025-08-29 19:24:52 +02:00
4a690fdeb5 actually useful calculator example 2025-08-20 17:33:25 +02:00
00299bec0b fix calculator demo
turns out it was an incorrect handling of  scissor test
2025-08-16 10:10:06 +02:00
be00c87c6a implement a convenient macro to start and end a div 2025-08-14 22:16:54 +02:00
8d79f13fd6 added another demo ui 2025-07-14 12:59:07 +02:00
80d17d7b33 unified button element 2025-07-13 20:08:18 +02:00
b48c413d2d changed text (glyph) placement 2025-07-10 11:05:39 +02:00
5ae9b05223 moved style to style.css 2025-07-07 11:37:56 +02:00
9afb0d2acd better default style handling 2025-07-06 23:50:36 +02:00
777e974841 use new style system 2025-07-05 16:37:08 +02:00
9fc1d90455 simple style import with a subset of css 2025-07-04 11:17:42 +02:00
c49a689304 get_elem now also pushes into the tree and check the correct type 2025-07-01 16:03:11 +02:00
1de4fd78b8 better checkboxes 2025-07-01 15:28:08 +02:00
586e81935c improved the api to not require explicit labels everywhere 2025-06-30 18:24:50 +02:00
972c9b581d text input box 2025-06-30 13:10:00 +02:00
5b0169cd94 better input handling 2025-06-17 18:23:36 +02:00
b411718c94 add fps counter 2025-06-15 23:47:09 +02:00
865c7dabaa indirect rendering 2025-06-15 00:26:27 +02:00
0ef2bceeec handle scissor and vsync 2025-06-14 15:09:34 +02:00
cda2f27a49 Batch uploads to the gpu 2025-06-14 14:49:53 +02:00
458c45d2b9 using the new renderer 2025-06-12 19:49:43 +02:00
79a2d66880 update project to c3 0.7.1 2025-05-05 16:23:26 +02:00
7c6f7d31d2 quick and dirty checkbox 2025-02-07 23:46:21 +01:00
52f3929a42 renamed ATlAS_RGBA32 to ATLAS_R8G8B8A8 2025-02-06 23:51:15 +01:00
e09107af98 simpler main 2025-02-06 23:44:03 +01:00
588a417413 checkbox and msdf sprite rendering 2025-02-04 22:40:44 +01:00
c53b9eed5e MAYBE correct layout with next_row and next_column 2025-02-01 01:01:13 +01:00
de64746fdf renamed libraries 2025-01-31 12:20:19 +01:00
07857fcd44 switch to c3s' vendor raylib 5.5 2025-01-30 19:38:53 +01:00
fbe631b4b4 better sprites 2025-01-30 18:36:47 +01:00
b317951c32 first working prototype of sprite drawing 2025-01-29 01:10:18 +01:00
78e2c64da6 implemented adaptive size divs 2024-12-26 22:58:43 +01:00
16adfd7cc5 idk look at the changes 2024-12-25 12:30:35 +01:00
169b5e1dfd cull commands that result in zero-area bounding boxes 2024-12-23 15:49:46 +01:00
a0c6a3b2cb work on button with label 2024-12-20 19:50:58 +01:00
f7985f8c7f track focused and hovered elements 2024-12-20 01:45:10 +01:00
1088083e1e stuff, mostly renaming variables 2024-12-19 15:24:39 +01:00
a481269022 work on div sliders, major changes
* Ids are now keyed based on the parent's id, this means that an element can have
  the same label when placed in different divs
* Divs now enable the scissor test, this way the elements cannot draw outside of
  the parent div bounds
* Introduced a LAYOUT_ABSOLUTE that disables all layout logic, for internal use
* Divs now draw scrollbars using the slider_hor and slider_ver elements
2024-12-18 20:04:23 +01:00
499f6dc79b removed force update 2024-12-18 15:10:17 +01:00
8d4b353e88 a lot of work on sliders 2024-12-18 14:58:40 +01:00
c0e9565bf6 idk some stuff 2024-12-17 11:26:59 +01:00
c1a7b4fcdb display timing statistics 2024-12-16 17:06:46 +01:00
3a7655a3f0 specify texture id in the sprite command 2024-12-16 17:05:44 +01:00
2e60e4c5b8 fix font alpha channel 2024-12-16 14:07:44 +01:00
bca29c537c scissor command 2024-12-15 22:29:07 +01:00
6d8300f9d9 better font atlas implementation 2024-12-15 21:39:26 +01:00