r/C_Programming • u/digitalradiostudio • Sep 25 '26
Question Starting again C
Hi i want try to make a extreme lightweight pixelgame ( i don't have really details about the game :) ) with glfw and and opengl to go back to c. Does anyone have tips to make it lightweight ?
22
Upvotes
13
u/-goldenboi69- Sep 25 '26
Glfw is pretty lightweight already.
9
u/bktech2021 Sep 25 '26
i think you should check sdl or raylib. glfw way is always doable but you will need to maintain a lot of library code, for no reason.
1
u/Ok_Outlandishness906 Sep 25 '26
i would use sdl. it is doable and not too complex .
1
u/chrism239 Sep 25 '26
What do you mean by lightweight - learning curve, or computing resources when running?
1
u/Sergey5588 Sep 25 '26
maybe RGFW its just single header
1
u/Total-Box-5169 Sep 25 '26
How many pixels we are talking about? If you really want to make it lightweight then opengl is overkill, unless you plan to add tons of visual effects to make it look like a pachinko machine.
1
u/Kingwolf4 Sep 26 '26
Give zig a try and mabye Odin. Both are superb languages
1
u/Still_Explorer Sep 26 '26
If you start with Raylib better to look at "render to texture" first and get this problem out of the way.
Always think in virtual screen coordinates and use the actual screen for drawing the texture only.
https://www.raylib.com/examples/core/loader.html?name=core_render_texture
1
u/Candid_Zebra1297 Sep 29 '26
I think sdl is a little easier, especially if you want sound effects and extra game stuff later on.
4
u/[deleted] Sep 25 '26
[removed] — view removed comment