Click here to Skip to main content
16,016,168 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
**This is not a bug, rather a question on the best way to write an engine using pure C and custom rasterizer**
I'd like to know the most organized and best way to create a game engine using SDL2, a custom rasterizer and most importantly, C17. On a side note, suggest any graphics library better than SDL2 on you answer if you know one.

What I have tried:

Please do not send links to tutorials, as I'm better off just reading a 7 paragraph text than watching 20 videos in a row. Other than that, I do not have anything else to say. Thank you to anyone who will answer.
Posted
Comments
Dave Kreskowiak 27-Feb-24 9:54am    
"7 paragraphs". That's cute. What you're asking would take a large book to describe. You're not going to get a comprehensive answer to this question in any forum because the textboxes you're allowed to type in are just way too small to cover all of the material required to answer the question.
KarstenK 28-Feb-24 1:13am    
you are at a real beginner level in asking such questions. Without hard work - you will fail in life.
C is some basic level language not the best for complex tasks because of the lack of framerorks for higher tasks.

We can't tell you.
Why not? Because we don't - can't - know enough about your project, or your abilities, or the environment your engine will run under, or how it is supposed to communicate with external apps (which the job of an engine after all!). We don't know how far you have got so far, or even if you have started anything yet. Heck, we don't even know what kind of game engine you are talking about, let alone what you consider "the best way" to write code! "Best" is a subjective thing: it could mean "fastest", "smallest", "most flexible", "easiest to maintain", or any of another dozen possible criteria.

All we know is what you have told us: "I want to write this thing in C" - but to be honest if you want to write a game engine, that's not a good start: it lacks a lot of really useful features such as object orientation which make your job a load easier.

Sorry, but you are going to have to sit down and work out exactly what you are trying to produce (and why; there is a lot of wheel reinvention potential here) before you can even begin to ask that question of yourself, let alone people thousands of KM away who only get to see exactly what you type!
 
Share this answer
 
v2
This is how : Getting started with the SDL2 library for Game Development[^]

Why should anyone write another tutorial for you when there plenty of them already? This was from the first page of links from a search at DDG.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900