d4fabf437c
reformat the code by enabeling assignment- and declaration alignment.
2025-10-09 12:17:04 +02:00
cebe0df8a2
move /src/error.? to /src/util/error.?
2025-10-09 12:16:38 +02:00
aa58d931aa
move /src/util/intdef.h to /src/util/types.h
2025-10-09 12:16:06 +02:00
6eb7d126da
create a custom definition for size_t and ssize_t, which is ssize and usize, for conveinience.
2025-09-18 10:39:57 +02:00
76c992efdc
note about the memory leak I could not locate within my code.
...
hint: I couldn't locate it, because it isn't in my code.
2025-09-15 15:14:08 +02:00
28b98705f5
refactor the lot a bit, for clairity.
2025-09-15 15:08:15 +02:00
057b234251
fix: don't free window twice
2025-09-15 15:07:41 +02:00
dc3abf992b
handle window exits more gracefully and appropriately.
2025-09-15 14:23:03 +02:00
1e10fec9c6
rename input callback to something more appropriate.
2025-09-15 14:12:18 +02:00
b04ce9998f
fix: shader hex code is formatted incorrectly
2025-09-15 11:59:39 +02:00
f20171c0d7
fix: using the linker for generating a .o file is a feature for only GNU ld.
...
Now utilising a process to generate a .c file using `xxd`, and compiling
those to object files.
2025-09-15 11:59:39 +02:00
07f4ea34d2
macro flipped const char
2025-09-10 12:07:00 +02:00
0baadfca75
update copyright information in all files
...
the comment was using single-line comments, I prefer multi-line comments
now.
This bothered me for much too long.
2025-08-29 09:36:55 +02:00
5c57a77ad4
remove types.h, and start using intdef.h
2025-08-08 12:37:31 +02:00
1d5df8df0a
apply new formatting rules to the whole project
2025-07-24 16:29:03 +02:00
600fa0f25e
add map colour definitions.
2025-07-07 14:27:28 +02:00
9de6e7f92e
fix: window resize updates happen each update.
2025-07-03 11:52:27 +02:00
80b8b65b73
define short-hand types for int32/uint32 et cetera
2025-06-20 20:39:59 +02:00
ad66d9465a
remove unused header
2025-06-20 12:35:26 +02:00
16e0c9a95e
use vec2 to store window position
2025-06-18 13:28:03 +02:00
38aa65942f
cleanup shader code
...
added a cast to uintptr_t, since we're (pretty) certain that both array
pointers point to the same array.
Other than that, made the shader initialization code more consise
2025-06-16 13:40:53 +02:00
87af7f293f
remove double include
2025-06-16 13:40:53 +02:00
047b4155c3
make the three triangles of the screen
2025-06-16 13:40:53 +02:00
fe097f9d69
cleanup
2025-06-16 13:40:53 +02:00
6997e08b05
add copyright information and code cleanup
2025-06-15 14:29:28 +02:00
7dd464349f
rework logging to be more optimised, and some minor improvements.
...
removed function definitions and opted for using macros instead.
It now does not have a set limit when it comes to printing (at least,
it's the stdc's limit again). However, it is now no longer possible to
use a character pointer to print information to the screen.
2025-06-12 18:09:23 +02:00
a7fb6136ea
fix: renamed some symbols which were causing some compatibility problems
...
__FILE_NAME__ and GLFW_CONTEXT_DEBUG were causing problems in the CI
pipeline, thus I deemed them unreliable.
__FILE_NAME__ is not __FILE__ which is more universally used across
compilers.
and GLFW_CONTEXT_DEBUG has been replaced with GLFW_OPENGL_DEBUG_CONTEXT,
which is a legacy definition, which plays nicer on older platforms.
(like ubuntu)
2025-06-11 17:56:22 +02:00
89a82a6be2
use a geometry shader to render rectangles
2025-06-06 18:10:30 +02:00
ed7a157ee3
add shader compilation error logging
2025-06-06 18:09:49 +02:00
c5d3449abc
rename shader files
2025-06-06 18:09:49 +02:00
56749e2379
code semantic fixups
2025-06-06 18:09:49 +02:00
5f4389d9f9
provide a better method of embedding shaders within the source code
2025-06-06 18:09:49 +02:00
5ae974d84f
move from float3 to float2, and general cleanup
2025-06-05 00:13:05 +02:00
3fbc1f50ab
hello, triangle
...
I wrote some code to get a triangle drawn to the screen.
This took much more effort than it should've...
2025-06-03 14:18:56 +02:00
991c071920
improve OpenGL initialization
...
added more comments, logging and made some default values more explicit
2025-06-03 14:16:56 +02:00
Quinn
f0ab423e36
add OpenGL bootstrapping code
2025-06-02 12:41:00 +02:00
Quinn
8c78ffdca5
implement input and rework window implementation
...
moved the window variable as a constant in the window module, and
implement more of GLFW logic, including some basic input handling.
2025-06-02 12:41:00 +02:00
Quinn
76e3547313
rename window/render* to io/window*
...
this makes more sense, as we'll add more source files in this category
2025-06-02 12:41:00 +02:00