Object-oriented game programming

Started by
2 comments, last by Pixar 13 years, 9 months ago
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.
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
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?
"In order to understand recursion, you must first understand recursion."
My website dedicated to sorting algorithms
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.

This topic is closed to new replies.

Advertisement