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
5548692979
add headers during installation in the drv
2024-08-13 01:06:41 +02:00
f95c47d7f7
move LD_LIBRARY_PATH=./target from flake to example makefile
2024-08-13 00:50:40 +02:00
b74186b130
add -fPIC to CFLAGS
2024-08-13 00:43:49 +02:00
80a8069106
add license file
2024-08-13 00:15:12 +02:00
641d86e6fa
add eupl license text to all relevant files
2024-08-13 00:12:48 +02:00
6967f4106e
set ptk log level to debug in dev shell
2024-08-09 12:50:07 +02:00
935ca0e340
improve header guards
...
the following names are reserved to the language implementation:
- (C and C++) starting with an underscore and a capital letter
- (C++) containing any amount of double underscores
https://en.wikipedia.org/wiki/Include_guard#Discussion
2024-08-09 11:45:00 +02:00
71519ed429
add strict aliasing article to c resources
2024-08-08 22:44:28 +02:00
ff0f3ab4fe
add the book of shaders to credits
2024-08-08 22:27:50 +02:00
02f3d42d19
replace vulkan spec link with the better one
2024-08-08 22:19:01 +02:00
02152c51e8
add specialization blog to vulkan resources
2024-08-08 22:17:08 +02:00
e86f4cdd45
move ellipse component type to specialization
2024-08-08 22:16:24 +02:00
e420ab1ef7
add credits
2024-08-08 22:05:05 +02:00
e1ea3c764f
improve example makefile
2024-08-08 21:54:54 +02:00
c1d26dc69c
fix example makefile
2024-08-08 21:54:37 +02:00
213d1eec3a
remove init test
...
doesn't really make sense to have a test launch a gui app
instead I can do that stuff in examples/ and test manually
2024-08-08 21:49:15 +02:00
b2b5087309
add examples dir
...
sorry for the makefile it's shit
2024-08-08 21:48:39 +02:00
9477218b69
improve test makefile
2024-08-08 21:41:35 +02:00
6d80dc7717
move ptk_vec to include
2024-08-08 20:33:56 +02:00
98296bdcd0
correct PtkVec member names
2024-08-08 20:16:35 +02:00
d3d3de971f
fix ellipse top left calculations
2024-08-08 20:07:09 +02:00
f30af266e0
remove unneeded position from frag shader
2024-08-08 19:58:53 +02:00
36176e1ea6
switch from cglm to my own vector types
2024-08-08 19:53:02 +02:00
5c8557d1ab
rename ptk_vec to ptk_list
2024-08-08 19:17:53 +02:00
b2052fb6c4
Squashed commit of the following:
...
commit 88aed48fa7
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Aug 8 18:31:22 2024 +0200
make ellipses work (thanks krizej!!!)
commit 78cca6becd
Author: jacekpoz <jacekpoz@proton.me>
Date: Thu Aug 8 17:42:19 2024 +0200
some tests
2024-08-08 19:14:50 +02:00
b39df59588
fix normalizing positions
2024-08-08 16:26:45 +02:00
786529c25e
remove swapchain extent debugs
2024-08-08 15:23:01 +02:00
6b89ff963a
fix black screen
2024-08-08 15:19:43 +02:00
0401884144
inherit name in nix shell
2024-08-08 15:08:51 +02:00
81c039c70e
update nix package src path
2024-08-08 15:07:52 +02:00
2370255fed
add gnumake to nix package deps
2024-08-08 15:07:11 +02:00
f4a51c730e
move nix package up a dir
2024-08-08 14:48:07 +02:00
ab70af6d7d
fix c docs heading
2024-08-08 14:45:21 +02:00
db1d342022
move shaderc from shell to package
2024-08-08 14:42:06 +02:00