04db7a3318
separate buffer stuff into modules
2024-09-24 12:29:59 +02:00
88b2154c16
move command pool to its own module
2024-09-24 12:03:16 +02:00
495c2f458a
move descriptor set layout to its own module
2024-09-24 11:58:35 +02:00
1bac9dcfee
fix invalid VkDevice in vkGetDeviceQueue
2024-09-24 11:57:30 +02:00
37381e2e1d
move pipeline stuff to separate module
2024-09-24 11:42:18 +02:00
e664c74cb2
make render pass a member in init
2024-09-24 11:21:54 +02:00
854416f651
move render pass to PTK_OPTION
2024-09-24 11:14:41 +02:00
2e8a490fbe
move VkDevice to PTK_OPTION
2024-09-24 10:40:59 +02:00
65d6c42a47
go back to global vars
...
I dislike this strongly but it's better to keep them in init.c I think
this is all internals either way right now I just wanna clean things up
so that introducing different backends isn't tedious
2024-09-24 10:36:29 +02:00
402e45c766
almost improve physical dev module
...
draw function needs some help
2024-09-22 20:23:10 +02:00
7565731ef5
improve instance module
2024-09-22 20:13:54 +02:00
9a28978380
whoops
2024-09-12 12:39:00 +02:00
578fde4a09
big refactor but still shit
2024-09-12 12:35:56 +02:00
3a2a80f70a
add PTK_LIST_GROW
2024-09-11 01:04:18 +02:00
7dc9a329ad
improve swapchain framebuffer creation
2024-09-10 23:59:51 +02:00
b31dd0d797
watch default.nix in direnv
2024-09-10 14:33:06 +02:00
73d14d1908
add helper component functions that take an id
2024-09-10 10:17:30 +02:00
a6d741b995
add get_component_id()
2024-09-10 09:56:39 +02:00
40c8d69690
add default case to vk_result_string
2024-09-09 23:54:06 +02:00
1037eaaeff
Squashed commit of the following:
...
commit 51a16fcec3
Author: jacekpoz <jacekpoz@proton.me>
Date: Mon Sep 9 23:07:46 2024 +0200
mark all components to be updated during initialization
commit 7952918cdb
Author: jacekpoz <jacekpoz@proton.me>
Date: Mon Sep 9 23:07:31 2024 +0200
clear caches before updating component
commit 40c2329b3c
Author: jacekpoz <jacekpoz@proton.me>
Date: Mon Sep 9 22:25:22 2024 +0200
implement vertex and index caches
hopefully these work and actually help with performance
commit be1ae4c531
Author: jacekpoz <jacekpoz@proton.me>
Date: Mon Sep 9 21:11:52 2024 +0200
initial tree impl without any updating logic
2024-09-09 23:52:15 +02:00
8581e336d5
whoops forgot !!!
2024-09-09 19:59:06 +02:00
7c63947056
actually use the index buffer properly
2024-09-09 18:54:46 +02:00
35cf6c593d
introduce index buffer (doesn't optimize anything yet)
2024-09-08 17:08:11 +02:00
af7e527ff2
fix list growing when inintial size is 0
2024-09-08 16:56:15 +02:00
5f3362a929
hehe :-)
2024-09-08 16:22:13 +02:00
b30ff30ed0
move even more arrays to the ptk ones
2024-09-08 12:59:38 +02:00
5c8a21b375
more usage of PTK_LIST and PTK_ARRAY
2024-09-08 12:53:37 +02:00
59f4ed89d4
add a few more cflags to the makefile
2024-09-08 12:14:41 +02:00
273094de29
add eupl notice to button example
2024-09-08 12:00:31 +02:00
cb3d1d6f7c
remove redundant header from ptk_list.h
2024-09-05 00:21:58 +02:00
3b73c51cb9
add enumerated versions of each macro and consts
2024-09-04 20:39:09 +02:00
ed9c34e243
add ptk list iterator macro
2024-09-04 20:27:53 +02:00
3f2df4ace8
add self param to on_press
2024-09-04 19:42:59 +02:00
04ff88c4e6
improve _add_PtkList performance
2024-08-23 08:43:51 +02:00
e2e486a215
add empty lines between links in resouces
...
stupid fucking markdown
2024-08-14 00:27:48 +02:00
ccdd8601d2
add initial window size tiling workaround
2024-08-14 00:18:59 +02:00
1461293594
add PtkRGB docs
2024-08-14 00:09:32 +02:00
db5d004c43
make the button example gay
2024-08-14 00:09:17 +02:00
a06c109665
add HSV support and convertion helper functions
2024-08-14 00:08:59 +02:00
60cc86ec41
rename PtkColor to PtkRGB
2024-08-13 18:59:52 +02:00
b8b2698434
extract colors to ptk_color.h and add HSV
2024-08-13 18:57:54 +02:00
061e5799f9
make on_press only activate when action is GLFW_PRESS
2024-08-13 17:01:03 +02:00
e2a0e79df8
upgrade button example
2024-08-13 16:58:00 +02:00
fa136d89a9
improve component handling
2024-08-13 16:43:42 +02:00
daf5f0c4cc
make all member variables static
2024-08-13 15:17:19 +02:00
f03c3260ce
rename global window to member window in ptk.c
2024-08-13 15:15:48 +02:00
db65f8d5bf
use children[0] for the hitbox in PtkClickable
2024-08-13 15:14:13 +02:00
3231124346
Squashed commit of the following:
...
commit ef2fdaab86
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 14:22:09 2024 +0200
improve all vector types by deunionifying them
commit e994825668
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 14:19:56 2024 +0200
use w and h for radii in ellipse intersects
commit 2eb53fb8a3
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 13:47:03 2024 +0200
add PTK_LIST_CLEAR
commit a63f65067d
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 13:46:29 2024 +0200
remove semicolon from filled macro
commit 4ac6a1bb70
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 13:31:13 2024 +0200
...
commit 5142127ae0
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 12:50:08 2024 +0200
add clickable to components if encountered
commit b1f31b7965
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 12:41:52 2024 +0200
stupid fucking switch syntax
commit 8ff74e7235
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 12:40:05 2024 +0200
remove redundant vertex update
commit 448e9fed14
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 12:10:48 2024 +0200
handle button hitboxes properly
commit a4025fa924
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 12:04:11 2024 +0200
add more const on local variables
commit c7386ddfbf
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 12:02:24 2024 +0200
fix rect triangle comments (xd)
commit ca212ac65e
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 11:57:33 2024 +0200
spam const over local variables and function parameters
commit 43707826d9
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 11:31:50 2024 +0200
improve rect triangle init readability
commit 2b3f4c58c4
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 02:08:18 2024 +0200
set ellipse rect's type to the ellipse's type
commit 4872e59e16
Merge: 336aadc
565aa4d
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 01:29:01 2024 +0200
Merge branch 'main' into button
commit 336aadc7a0
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 01:25:13 2024 +0200
whoops forgot about this one
commit 29f0d9f56a
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 01:22:45 2024 +0200
improve component initialization
compound literals zero-initialize all omitted fields including
children.size, now we don't have to explicitly do that in each function
commit 913286e9e7
Merge: 425e670
520b0b9
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 01:18:39 2024 +0200
Merge branch 'main' into button
commit 425e6709b4
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 01:16:38 2024 +0200
initialize children size to 0 on childless components
commit 70ef0e030f
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 01:13:39 2024 +0200
fix vertex input attribute description
commit 44204b5677
Merge: 0788992
f95c47d
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 01:03:26 2024 +0200
Merge branch 'main' into button
commit 0788992af4
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 00:45:13 2024 +0200
remove vk_clickable from components
commit 7cc71d3177
Merge: 3020724
b74186b
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 00:44:02 2024 +0200
Merge branch 'main' into button
commit 3020724319
Merge: 83c7968
80a8069
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 00:18:31 2024 +0200
Merge branch 'main' into button
commit 83c7968d48
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Aug 13 00:03:51 2024 +0200
a few component changes before separating them from shapes
commit 4b1fdf8e04
Author: jacekpoz <jacekpoz@proton.me>
Date: Mon Aug 12 23:49:52 2024 +0200
rename button to clickable in one more place
commit 6aeb2124d9
Author: jacekpoz <jacekpoz@proton.me>
Date: Mon Aug 12 23:49:39 2024 +0200
improve box creation
commit af3066ab7b
Author: jacekpoz <jacekpoz@proton.me>
Date: Mon Aug 12 23:48:39 2024 +0200
add pointer versions of add and remove all in ptk list
commit b95ddb45a0
Author: jacekpoz <jacekpoz@proton.me>
Date: Mon Aug 12 23:48:14 2024 +0200
rename button to clickable
commit 50197a6a21
Author: jacekpoz <jacekpoz@proton.me>
Date: Sun Aug 11 21:09:02 2024 +0200
change default component members and add PTK_COMPONENT_DEFINE
commit 2b5be4c732
Author: jacekpoz <jacekpoz@proton.me>
Date: Sun Aug 11 21:07:53 2024 +0200
extract PTK_LIST_STATIC_INIT into PTK_ARRAY
commit 276138043d
Author: jacekpoz <jacekpoz@proton.me>
Date: Fri Aug 9 22:04:01 2024 +0200
make the example target not remove the binary
commit c101379150
Author: jacekpoz <jacekpoz@proton.me>
Date: Fri Aug 9 17:16:35 2024 +0200
initial button test
2024-08-13 14:39:11 +02:00
565aa4d157
add ./target back to LD_LIBRARY_PATH in flake
2024-08-13 01:28:42 +02:00
520b0b97a0
fix braces in amogus example
2024-08-13 01:18:10 +02:00