|
1e963e3f36
|
WTF
|
2024-10-06 13:32:17 +02:00 |
|
|
114c8a0c5d
|
images (kinda) working again
the image example shows :3 but it errors a lot and shit
|
2024-10-06 13:29:47 +02:00 |
|
|
1dbb93543e
|
more "cleanup"
|
2024-10-06 00:56:48 +02:00 |
|
|
ae1925511d
|
remove all includes of stdbool.h
we are in C23 after all
|
2024-10-05 17:23:19 +02:00 |
|
|
37b332927c
|
switch to c23 because I'm epic
|
2024-10-05 17:01:47 +02:00 |
|
|
dbdbf09516
|
ANOTHER REFACTOR I'M GOING INSANE
THIS BASICALLY FULLY REVERTS THE OTHER REFACTOR I JUST DID
I THINK THE CODE IS BETTER NOW
|
2024-10-04 20:37:27 +02:00 |
|
|
61308ed427
|
stop exposing a few functions
|
2024-10-04 16:41:24 +02:00 |
|
|
a55d67b9b5
|
get rid of another useless function
|
2024-10-04 16:39:40 +02:00 |
|
|
960d1247f7
|
some more cleanup
|
2024-10-04 16:37:57 +02:00 |
|
|
63b841fe63
|
move some stuff into the vulkan backend
|
2024-10-04 16:22:25 +02:00 |
|
|
eb3a3680df
|
bit more header cleanup
|
2024-10-04 16:21:02 +02:00 |
|
|
ec513697f1
|
header cleanup and more
|
2024-10-04 00:00:52 +02:00 |
|
|
f7b2644d00
|
add missing license notices
|
2024-09-27 09:41:10 +02:00 |
|
|
0f0bd864f7
|
update repo url in derivation
|
2024-09-27 08:57:19 +02:00 |
|
|
e5692b7c75
|
Squashed commit of the following:
commit 73aaf0455c
Author: jacekpoz <jacekpoz@proton.me>
Date: Fri Sep 27 00:21:46 2024 +0200
get rid of last globals todo comment
commit 39555882f2
Author: jacekpoz <jacekpoz@proton.me>
Date: Fri Sep 27 00:20:25 2024 +0200
this is so ugly I'm killing myself
commit 8e1b7af2ad
Author: jacekpoz <jacekpoz@proton.me>
Date: Fri Sep 27 00:14:16 2024 +0200
Revert "get rid of 3 globals from swapchain"
This reverts commit f4b58624f1 .
commit f4b58624f1
Author: jacekpoz <jacekpoz@proton.me>
Date: Fri Sep 27 00:05:44 2024 +0200
get rid of 3 globals from swapchain
commit da193a44f4
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 26 23:47:24 2024 +0200
get rid of g_queue_family_indices
commit 687703a836
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 26 23:41:19 2024 +0200
add DeviceStuff to get rid of 2 more globals
commit 849b9d01bf
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 26 23:35:32 2024 +0200
get rid of another unnecessary global
commit e371324976
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 26 23:33:59 2024 +0200
what the fuck was that????????
commit e25016f88b
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 26 23:29:30 2024 +0200
get rid of globals by removing the draw module
commit c205b50a7e
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 26 00:24:23 2024 +0200
move queues to device.c
commit d698a52a9a
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 26 00:22:53 2024 +0200
rid command_pool from globals
commit 26dda0f7a5
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 26 00:12:47 2024 +0200
rid pipeline module of globals
commit e39fabf681
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 19:59:18 2024 +0200
clean up buffer.c from globals
commit 2f0c678d89
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 19:54:41 2024 +0200
further reduce g_dev usage
commit fc5695fce8
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 19:50:26 2024 +0200
wtf
commit e7663ea5d1
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 19:47:54 2024 +0200
remove unneeded init.h includes
commit 5683cc0228
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 19:43:21 2024 +0200
get rid of most uses of g_max_frames_in_flight
commit 46a00f9466
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 19:33:51 2024 +0200
finish ptk.c cleanup by removing key callback
commit 96721f78ee
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 19:33:20 2024 +0200
move cleanup stuff to vk_finish
commit 22f41e1172
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 19:30:00 2024 +0200
get rid of g_window use in ptk.c
commit 8d017e2268
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 19:22:39 2024 +0200
make module fields in draw.c static
commit 44fe0c5f7d
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 18:00:30 2024 +0200
get rid of current frame global
now I feel dirty because this feels like oop
commit ccf0e1481b
Author: jacekpoz <jacekpoz@proton.me>
Date: Wed Sep 25 17:58:18 2024 +0200
improve the resize callback
also gets rid of 1 global var
commit 6c20ddcbd9
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 13:00:53 2024 +0200
add todos about globals throughout the vulkan backend
commit 2d3c33cb75
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 12:56:12 2024 +0200
move sync objects to separate module
commit 15e74a9a17
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 12:48:54 2024 +0200
move command buffer allocation to separate module
commit 952d68f68f
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 12:41:59 2024 +0200
move all descriptor stuff into separate module
commit 8ee6070467
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 12:30:57 2024 +0200
add license notices
commit 04db7a3318
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 12:29:59 2024 +0200
separate buffer stuff into modules
commit 88b2154c16
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 12:03:16 2024 +0200
move command pool to its own module
commit 495c2f458a
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 11:58:35 2024 +0200
move descriptor set layout to its own module
commit 1bac9dcfee
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 11:57:30 2024 +0200
fix invalid VkDevice in vkGetDeviceQueue
commit 37381e2e1d
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 11:42:18 2024 +0200
move pipeline stuff to separate module
commit e664c74cb2
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 11:21:54 2024 +0200
make render pass a member in init
commit 854416f651
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 11:14:41 2024 +0200
move render pass to PTK_OPTION
commit 2e8a490fbe
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 10:40:59 2024 +0200
move VkDevice to PTK_OPTION
commit 65d6c42a47
Author: jacekpoz <jacekpoz@proton.me>
Date: Tue Sep 24 10:36:29 2024 +0200
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
commit 402e45c766
Author: jacekpoz <jacekpoz@proton.me>
Date: Sun Sep 22 20:23:10 2024 +0200
almost improve physical dev module
draw function needs some help
commit 7565731ef5
Author: jacekpoz <jacekpoz@proton.me>
Date: Sun Sep 22 20:13:54 2024 +0200
improve instance module
commit 9a28978380
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 12 12:39:00 2024 +0200
whoops
commit 578fde4a09
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Sep 12 12:35:56 2024 +0200
big refactor but still shit
|
2024-09-27 00:23:08 +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 |
|