Commit Graph

307 Commits

Author SHA1 Message Date
Quinn
404c234054 write NBT format specification
fix typos

Signed-off-by: Quinn
<99677023+thepigeongenerator@users.noreply.github.com>
2025-06-02 12:41:00 +02:00
Quinn
fcc2c35ce8 cleanup markdown 2025-06-02 12:41:00 +02:00
Quinn
27df65992f start writing minecraft data specification, which is my summerisation of how the formats are stored, to help me later 2025-06-02 12:41:00 +02:00
Quinn
0d7f6395d2 pedantic fix: renamed uri from master to main 2025-06-02 12:41:00 +02:00
Quinn
19208fe3e5 update badges to be correct 2025-06-02 12:41:00 +02:00
Quinn
8b410a492a rename validate to ci/bin, and split up workflows
This is mainly to improve the clairity of the workflows, also allowing
them to be used for the different "badges", showing the state of each.
2025-06-02 12:41:00 +02:00
Quinn
32c024d849 add development notice to README 2025-06-02 12:41:00 +02:00
Quinn
f0ab423e36 add OpenGL bootstrapping code 2025-06-02 12:41:00 +02:00
Quinn
9120e37c26 add glad into the compilation for openGL function entry points 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
9ade61e006 add GLFW error callback 2025-06-02 12:41:00 +02:00
Quinn
7c4ba05eee clean up error header to not use modifiers on each implementation
implementaitons do not need modifiers if the definition already has
these.
Also move the comments to be above the implementations, rather than
behind the definitions.
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
Quinn
cf908a2f65 add -j argument to speed up compillation on the cloud
-j tells make to not set a limit to the amount of jobs it can use
parralel to one another.
We just gotta make sure the makefile supports the paralelsation
correctly, currently it should be.
2025-06-02 12:41:00 +02:00
Quinn
ef9f472018 make compile_commands.json file creation be more linked to individual targets, than just having it locally.
this way, when recompiling for a new target, firstly. A full clean is
not necessary. Secondly, switching between targets updates the symlink
at project root accordingly.
2025-06-02 12:41:00 +02:00
Quinn
62e0c149cc flip the DEBUG condition to check for non-0, rather than 1.
this way debug can be set to `true` or anything other than `0`, to
enable it, which makes more semantic sense.
2025-06-02 12:41:00 +02:00
Quinn
bb7cbd22d5 change profile log type from warn to mesg 2025-06-02 12:41:00 +02:00
Quinn
0dacc79cac fix: windows compilation
windows needed some special things when it came to including packages.
2025-06-02 12:41:00 +02:00
Quinn
cf1759a5c3 License under MIT
added the MIT licence and provided the relevant information in the
different source files.
2025-06-02 12:41:00 +02:00
Quinn
ef0063d9aa implement some basic rendering boilerplate 2025-05-01 16:48:48 +02:00
Quinn
538f20f733 remove references of rust in README.md 2025-05-01 16:48:47 +02:00
Quinn
e839128c2e remove rust from config files 2025-05-01 16:48:47 +02:00
Quinn
c57ff88f70 use new docker image
not using rust anymore, and really need to be able to use the package we
need
2025-05-01 16:48:46 +02:00
Quinn
9e0708b49f don't make the functions extern anymore, as we're no longer doing ffi. 2025-05-01 16:48:46 +02:00
Quinn
401854002f remove rust/cargo from compilation
it has become clear that incorperating rust in this project was a
mistake, since I don't understand it well enough for it to be useful,
and at this rate it'd be faster to use GLFW in C than in rust.
2025-05-01 16:48:45 +02:00
Quinn
87117931f7 create rust implementation 2025-05-01 16:48:44 +02:00
Quinn
1a3f555fca write error header file
write a header for logging and abrubtly exiting the code.
2025-05-01 16:48:44 +02:00
Quinn
40720a53c8 write attributes in a header for ease of use
this handles different compilers automatically and just provides a
common method of using the attributes. Plus, it's less characters!
2025-05-01 16:48:43 +02:00
Quinn
ae565abab3 add libc and glfw to cargo, so rust can access them as well 2025-05-01 16:48:42 +02:00
Quinn
f61a72c680 include glfw libraries in the makefile 2025-05-01 16:48:41 +02:00
Quinn
0c74252a2f use NDEBUG instead of DEBUG as preprocessor. 2025-05-01 16:48:41 +02:00
Quinn
5a47a1d02f fix: editorconfig should not have root=true, as settings should be able to be overridden 2025-05-01 16:48:40 +02:00
Quinn
95f6d9b9d9 fix: makefile unable to convert the src/%.c paths into obj/$arch/$prof/%.o paths
had to include the src/ path in the shell finding, due to it otherwise
prefixing with ./src (it was aparrently also including files from
target/)
2025-05-01 16:48:40 +02:00
Quinn
7fe877fcbf move dir definitions before source definitions 2025-05-01 16:48:39 +02:00
Quinn
33ffa6d89e rework makefile logging to be more readable
added the log categories explicitly, removing the need for specifying
the log colour with each log
2025-05-01 16:48:38 +02:00
Quinn
64691550bd use a more dynamic makefile
- remove CLANG env, as it might be confused for the compiler. And it
doesn't fit the build system that well anyway. (as we're compiling based
on file extension already)
- locate source files using find, rather than a bunch of wildcards.
- rename TARGET to BIN and store DIR_BIN and DIR_OBJ for the output
directories
- use pattern matchin for C object file creation, rather than specifying
all the sources manually
- remove directory target as directory creation is handled by the
recipe's themselves now.
2025-05-01 16:48:38 +02:00
Quinn
c363fb6481 use bear whenever available, rather than only when debugging 2025-05-01 16:48:37 +02:00
Quinn
eeb219a5b4 fix: no such thing as '$default-branch' 2025-05-01 16:48:37 +02:00
Quinn
35f38f8980 fix: get rid of linter warning 2025-05-01 16:48:36 +02:00
Quinn
85bb26a08c use cargo instead of rustc 2025-05-01 16:48:35 +02:00
Quinn
663c2f5991 write the README.md to contain more information 2025-05-01 16:48:35 +02:00
Quinn
961b8796ee use printf instead of echo due to some minor issues 2025-05-01 16:48:34 +02:00
Quinn
d6409f5473 workflow fixes
- checkout@latest is not allowed, reverted back to checkout@v4
- set rust to use the stable release
2025-05-01 16:48:34 +02:00
Quinn
ec06481a36 write todo comments 2025-05-01 16:48:33 +02:00
Quinn
f6458ddc46 implement validate
validate hasn't fully been finished yet, linting still needs to be added
and we'll add unit tests as well, but that's when I've actually written
the tests.
2025-05-01 16:48:32 +02:00
Quinn
417c110187 move to using a custom docker image instead of trying to manage the dependencies ourselves 2025-05-01 16:48:32 +02:00
Quinn
4c0f0a5aa9 introduce target flags for linking step 2025-05-01 16:48:31 +02:00
Quinn
2754fcbe3f warnings as errors 2025-05-01 16:48:30 +02:00
Quinn
c913e62fcc seperate rust flags out of the rust compilation command
for consistency and able to specify a target now, which is still
relevant for linking, despite not using the standard library
2025-05-01 16:48:30 +02:00
Quinn
801ed6ba76 always compile as static library 2025-05-01 16:48:29 +02:00