Jump to content
  • Advertisement
Sign in to follow this  
Pixar

Object-oriented game programming

This topic is 3086 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

I have moved from C# to C++ and now I have a problem. All C++ tutorials for windows applications with WinMain() function use procedure-oriented programming. But I am used to divide big problem into small pieces. So I can't understand how can I make everything from classes as in java, for example. Is there a sample?
Thanxs in advance.

Share this post


Link to post
Share on other sites
Advertisement
This explains how you can use the Windows API to store and retrieve a pointer to your own structure/class: http://msdn.microsoft.com/en-us/library/ff381400(VS.85).aspx

Share this post


Link to post
Share on other sites
It's not "procedure-oriented programming" the term is "procedural programming".
Actually C++ is a multi-paradigm language. You can be every bit as object-oriented as Java, or as procedural as C.
All you need is an example program and there are literally millions of programs on the net which you could look at. What type of program are you looking at writing? A Windows forms type of application, or an OpenGL application, or something else...?

Do you know about Google's code search?

Share this post


Link to post
Share on other sites
Quote:
Original post by iMalc
It's not "procedure-oriented programming" the term is "procedural programming".

Thanx.

Quote:
Original post by iMalc
What type of program are you looking at writing? A Windows forms type of application, or an OpenGL application, or something else...?

OpenGL + WinAPI + OOP. This link http://msdn.microsoft.com/en-us/library/ff381400(VS.85).aspx was useful.


Quote:
Original post by iMalc
Do you know about Google's code search?

Thanx for link.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!