Sign in to follow this  

When to start Win32 API/OpenGL/D3D Programming? (C++)

This topic is 4039 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'm currently just programming with the console at the moment. Would it be a good idea to continue, or should I start to program with any of the above three? I have by no means conquered everything I can do with the console, but I'd really like to start some sort of graphic programming.

Share this post


Link to post
Share on other sites
I think it depends on your comfort level.

I want to say WIN32 programming is more complicated but that's not necessarily true. It's more "wordy" and you'll have to deal with message loops.

Personally, I'd recommend reading through Windows Programming by Petzold for a good overview. There's probably newer books that cover the same material, but this one is *the* original WIN32 bible, I think.

You don't need to know all the stuff in that book, but it'll definitely make your life easier in the long run.

On the other hand. If you know that you never want to code WIN32, but instead want to simply get into graphics, you could jump right into DirectX using the DXUT libraries included with the DirectX SDK, or you could look at GLUT for OpenGL. They hide a lot of the WIN32 stuff.

Share this post


Link to post
Share on other sites
Personally, I recommend avoiding them for some time. Many, many, many beginners have problems moving to them. Even if they get things working, they then can't do anything non-trivial with them since they don't have the general programming and application design experience. You'll benefit greatly by sticking to the console and focusing at learning your syntax and programming in general.

If you do though decide against it, Petzold's book is highly recommended for beginners.

Share this post


Link to post
Share on other sites
Not to add any confusion to things, but you could look at a library layer such as SDL ( http://www.libsdl.org ) which is a mature library that hides away the win32 specific implementation.

It's also doubly-easy to integrate it with OpenGL so that you could always take advantage of the Nehe tutorials as suggested..

But if you *need* to focus on strict Win32 coding, then Petzold is a great choice..

hth,

Share this post


Link to post
Share on other sites

This topic is 4039 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this