I have now read this book and I know the basics of data structures also. What's the best way to make graphics in c? I have linux on my computer if that affects to this.
I want to make simple games to improve my programming skills.
Tip Your Landlord Shirt $21.68 |
UFOs Are A Psyop Shirt $21.68 |
Tip Your Landlord Shirt $21.68 |
>he fell for meme so hard he can't even find opengl on his own
Look up Raylib.
Alternatively OpenGL or SDL if you wanna work barebones.
https://googlethatforyou.com?q=opengl%20programming%20in%20c
import graphics.h
compile with turbo borland for x86
This is the only way, OP.
Turbo C is the future.
hey indian hey indian
monster friends to the boys and the girls
hey indian hey indian
champions of the digital world
Raylib's entire thing is being the new graphics.h.
x11, sdl, opengl, vulkan, glfw, egl, graphics.h, writing directly to the frame buffer... lots of options available for you ^.^
>x11
>opengl
>vulkan
>egl
Don't bother with these, they will be too complex for
.
>sdl
For making 2D games.
>glfw
For making 3D games.
OP, if you can't get along with either SDL or GLFW, I'm afraid using straight C/C++ for programming games will be out of your league.
the only thing out of this league is my dick in your bussy
Well.... yes.
I'm just being direct and saving OP some time.
(Granted, I could've worded it a bit more "sensitively," but aren't you all just the worst Black folk to ever set afoot on this wretched planet?)
Being a coding god is not necessarily necessary to work with games, only if you want to create high-performance engines or bleeding edge stuff, and even then, hardware has become very forgiving.
There's Unity and Godot that try to make it accesible for those not too adept at forcing rocks to do maths. SDL and GLFW are as easy as it gets to do basic game development in C/C++, it's the most straightforward filter, pass or die, simple as.
learnopengl.com
raytracing.github.io
There are better C books now. Unless you're coding on Unix mainframes you're going to run into a lot of bullshit of trying to figure out what the frick they're talking about quite often.
Like what books?
Effective C is pretty good.
King's Modern Approach
KING!
So should I read the modern approach now?
just do maths and have fun.
I shipped a game with C++/SFML
learncpp.com
no need to thank me ill be on my way out
Like this
that's actually a good example, got anything else like a rotating cube or starfield?
>What's the best way to make graphics in c?
Use GLFW as a wrapper to access opengl or vulcan api.
Im using C and SDL3. They have a Vulkan backend for the 2D API. They are going to have a simple 3D API similar to Raylib and you can pass shaders. Personally I am banging out Tetris and making my own assets and did the same with Pong and Galaga per lazy foos advice. Also spent a year learning linear algebra. Plan on making a simple 3D engine on SDL3 when the 3D API is out soon. Trying to make a top down paintball esque twin stick shooter.
What is the Love2d equivalent for C?
sir, you can't do graphics in c. if you want to do graphics in c you will have to upgrade your subscription to c++.
Just use raylib