Jump to content
  • Advertisement

Archived

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

neos

c vs c++ for game dev

This topic is 5576 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Guest Anonymous Poster
"...speed advantages..."

wrongo

Share this post


Link to post
Share on other sites
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
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
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!