Win32 programming

Started by
9 comments, last by dx elliot 19 years, 7 months ago
Hey Everyone, I know quite a bit of C++ and have made a few shell programs but I want to get into graphics. I was thinking of starting with Win32 because I hear you can, at first, make simple 2D games but then you can move up to D3D or OGL later. Is this a good path to take? Are there any good online tutorials for making a window and 2D graphics in Win32?
............Could Jesus microwave a burrito so hot that he himself could not eat it?
Advertisement
Try SDL. Its really easy to use and will generally give you a good feel for the 2D graphics stuff before moving on. I personally use it and love it.

The website is www.libsdl.org and there are tutorials over at cone3d.gamedev.net if your interested.

good luck, btw.

c

edit: i looked at both when i started, and SDL is a much easier learning curve, but if you are looking into doing DirectX, then go with the Win32 API. OpenGL can be rendered with SDL, so if you want to do OpenGL, do SDL.
gib.son
In my oppinion, Win32 is not something that can be easily comprehended by reading an online tutorial unless you already have alot of experience in learning API's etc. My recommendation, if you're serious about Win32, is that you pick up a copy of "Programming Windows 5th Edition" by Charles Petzold. It's expensive, but well worth it if you want to learn the Win API.

As for making games in Win32, I have done so myself. I coded up a 2d chess game using C++ as the sole language. For graphics I used bitmaps that I drew previously in photoshop/flash. However, you're not restricted to just using pre-made bitmaps. So yea, making 2d games in pure Win32 is feasible.

Anyway, thats my 2 cents.
Personally, I moved right into DirectX, because I'm never really going to use the Windows GDI anyways. But I guess you can make an overly simple game just to familiarize yourself with the structure of a game. Perhaps some game made entirely out of rectanges? Those are pretty easy, I believe. Just make sure you form good habits from the start [wink].
.:<<-v0d[KA]->>:.
GDI is ok for basic 2D graphics. just gets more difficult when you need the graphics to be fast. i posted a simple Win32/GDI game with source here, for those who are interested.

SDL and Allegro are great, but i'd recommend learning Win32 anyways. seems like it has helped me in the long run a lot more.
As your leader, I encourage you from time to time, and always in a respectful manner, to question my logic. If you're unconvinced that a particular plan of action I've decided is the wisest, tell me so, but allow me to convince you and I promise you right here and now, no subject will ever be taboo. Except, of course, the subject that was just under discussion. The price you pay for bringing up either my Chinese or American heritage as a negative is - I collect your f***ing head.
Quote:In my oppinion, Win32 is not something that can be easily comprehended by reading an online tutorial...

Easier that than Xlib! ;)
i don't really see why everyone want to go 2D>3D i mean just go for DX from the start sure there is some common knownledge beetween both but learning it 1 way or the other won't be harder & instead of lot of gdi junk u'll have learned lot of usefull stuff (it's not like D3D is a superset of gdi & learning the later will help with the 1st it only mean u'll have to learn both instead of just one if u go 2D 1st)
Quote:Original post by ranakor
i don't really see why everyone want to go 2D>3D i mean just go for DX from the start sure there is some common knownledge beetween both but learning it 1 way or the other won't be harder & instead of lot of gdi junk u'll have learned lot of usefull stuff (it's not like D3D is a superset of gdi & learning the later will help with the 1st it only mean u'll have to learn both instead of just one if u go 2D 1st)


IMO you are wrong here. aside from GDI elements used by DirectX (like fonts), it is better for beginners to start in 2D. after all 3D games evolved from 2D and 2D still teaches basic game development skills that make you a much better 3D programmer. the same concept as beginners starting with consoles intead of GUIs. yes, they will not use cout in the end, but it allows you to focus on other areas aside from interface.

i would rather say teaching DirectDraw over GDI, but i would still say GDI is much easier to learn and a usefull skill in all windows based applications.

just my two cents.
As your leader, I encourage you from time to time, and always in a respectful manner, to question my logic. If you're unconvinced that a particular plan of action I've decided is the wisest, tell me so, but allow me to convince you and I promise you right here and now, no subject will ever be taboo. Except, of course, the subject that was just under discussion. The price you pay for bringing up either my Chinese or American heritage as a negative is - I collect your f***ing head.
Here's what I'm going through right now.
I have found a good book to take you through the basic windows programming from a game programmers point of view and to get the start of a good 2D game is published by SAMS, written by Andre LaMothe, Tricks of the Windows Game Programming Gurus, ISBN: 0-672-31361-8. I read a lot of other books and read a lot of other online garbage, I knew a lot about programming win32 appz and such but this book was still applicable. I hope you can get a hold of a copy its a great read.
=Loren Tapia=

This topic is closed to new replies.

Advertisement