Archived

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

Krak

Help

Recommended Posts

Okay, I''m a complete newbie to Win32 and OpenGL programming. I''ve done console programming for a while, and I''m quite comfortable with it, and I think it may be time to move on to something more professional. I looked into Win32 and OpenGL, and I dont understand most of the code...is that normal for most programmers? Should I proceed anyway? And a few questions about APIs: 1.) What''s the easiest API to learn? 2.) What''s the most useful API to learn if I want to evetually become a game programmer? 3.) Do different game consoles have their own APIs? Thanks in advance.

Share this post


Link to post
Share on other sites
1. Whichever''s closer to your line of thinking. If you''re a die-hard OOP man who eats and sleeps inheritance and polymorphism, DirectX is probably closer to your line of thinking. If you''re more aligned with procedural and state-based programming, go for OpenGL.

2. They''re both commonly used. They are also very similar. Once you know one well, it isn''t very hard to learn the other.

3. Most consoles allow direct access to hardware, and vendors offer middleware to present a simpler API. The XBox uses a modified version of DirectX.



How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
As far as graphics go, it''s pretty much a religious war. OpenGL might be a little easier for a beginner to figure out because it takes a lot less initial code to get something running, but once you get past the initialization, the two aren''t that far apart. Just pick one and go with it. Once you learn one, the other should be fairly easy to pick up. If you want to eventually port your programs to other PC operating systems like Linux or Mac OS, you''ll want to use OpenGL

For not graphics things like input and audio, you''ll probably end up using DirectX either way unless you decide to use a library that wraps it, like SDL.

Share this post


Link to post
Share on other sites
I suggest, just for learning purposes that you consider using glut and openGL. glut is a library for openGL that takes care of all the win32 stuff for you allowing you to focus on learning openGL and get objects on the screen with minimal code. When your programs get real big, glut will be insufficient and you''ll have to learn something else, but it will probably be a little while before you get that far.

Share this post


Link to post
Share on other sites
quote:
Original post by Krak
I looked into Win32 and OpenGL, and I dont understand most of the code...is that normal for most programmers? Should I proceed anyway?



When you started playing with a computer did you understand all of it? I highly doubt you did. Only way to get better is through experience/reading. So to answer that question, you''ll always run into things you don''t understand/totally grasp. Just keep at it and you''ll eventually see the light at the end of the tunnel.


~

Share this post


Link to post
Share on other sites
quote:
Original post by Krak
OpenGL goes hand and hand with Win32, right?

Does it go hand in hand w/ Win32 when you''re making professional games for game consoles?


No, because you dont use win32 when you''re developing for a games console.
Go for GL if you think of a computer as a state machine, otherwise, if you wanna go industry standard, go DirectX.
I prefer OpenGL personally, because its nice to be able to access the latest features in graphics cards through extensions rather than having to wait for a brand new version of DirectX. Its a personal thing.

Share this post


Link to post
Share on other sites