r/learnprogramming • • 21d ago

Custom low-level game engine lang and libs

I am planning to make a non-euclidian space game engine from scratch because i intend to make warps and anomalies with math rather than with chunking a bunch of rooms and gluing them with portals. I've been programming on java so far, but i want to move to some lower-level language for this occasion and i am looking for opinions. For graphics i would like only pixel RGB array lib with driver connection and nothing else since i am making my own painting logic.

1 Upvotes

4 comments sorted by

1

u/light_switchy 20d ago

For graphics i would like only pixel RGB array lib with driver connection and nothing else

What do you mean by "driver connection":

Do you need hardware accelerated rendering, or are you aiming for a software renderer?

1

u/AbnormalSpaceLover 20d ago

I mean i need the lib to take in only an array of integer sets, with each set having a slot for red, green and blue value. Then translate it into whatever-hardware-is-being-used's logic. I might be using incorrect terminology, i never worked with this stuff before

1

u/jacksonanna373 20d ago

C++ is the easiest hop from Java if you want low-level control; Rust if you want ownership to be part of the learning curve. Keep the pixel buffer and upload layer small - the coordinate system is where the real weirdness will live.

1

u/AbnormalSpaceLover 20d ago

I don't mind the difficulty, my goal is to strip as many unnecessary "if"s and variables related to the settings that aren't being used or not meant to change state