Archived

This topic is now archived and is closed to further replies.

neos

c vs c++ for game dev

Recommended Posts

neos    122
Is there any specific advantage to using either c over c++ or vise-versa for 3d games, on windows, using opengl?

Share this post


Link to post
Share on other sites
chad wilson    122
Well im new too but I think people used to use C because of speed advantages but now that processing power is so great it doesnt make that big a differnce anymore. I think C++ is the way to go because with classes you can contain everything in code block for easy maintanence.

just my two cents, might only be worth a peso though

Share this post


Link to post
Share on other sites
Alpha_ProgDes    6936
well because they had this discussion already in another thread.
and they beat it to death.

in short no.
in long... before there used to be, but now because of
technilogical(sp?) advances, no.

the SEARCH now works.
so before asking a question research it first.
and it''s between "active topics" and "login".

Share this post


Link to post
Share on other sites
Max_Payne    757
C++ OOP code is easier to maintain and modern game programming APIs (DirectX, OpenGL 2.0) use C++. Inheritance, and just classes in general are very useful for organizing your code.

Share this post


Link to post
Share on other sites
Jason Doucette    122
You should learn and understand the usefulness of encapsulation, which can be done in C or C++. If you use C++, you sort of force yourself to use it, which is good, but it does not mean that it can only be done in C++. I would recommend learning C++ anyway, since it will be easier to follow examples of other people''s tutorial code, which is often written in C++. It is also not that difficult to learn with the proper tutorial.

Jason Doucette - my online résumé page: www.jasondoucette.com
projects, real-time graphics, artificial intelligence, world records, wallpapers/desktops

Share this post


Link to post
Share on other sites