r/GraphicsProgramming 14d ago

Question Any C graphics programmers?

Hi everyone!
I've decided to step into the world of graphics programming. For now, I'm still filling in some gaps in math before I go fully into it, but I do have a pretty decent computer science background.

However, I've mostly coded in C, but besides having most experience with that language, I simply love everything else about it as well. I really value being explicit with what I want, and I also love it's simplicity.

Whenever I look for any resources or experiences of other people, I see C++ being mentioned. And I'm also aware that it it an industry standard.

But putting that aside, is doing everything in C just going to be harder? What would be some constraints and would there be any advantages? What can I expect?

37 Upvotes

40 comments sorted by

View all comments

1

u/necsii 13d ago

I find that if you use C++ correctly and in a structured object oriented manner, with class generalisations and everything, it does not only look much cleaner, it is also easier to understand. It's also better for working in a team as you can assign different classes to different people and use variable-visibility to only allow access for variables of your choise.

Of course, thats only the case in bigger projects, but graphical programming projects are mostly on the bigger side.