How to display some graphics?

Started by
14 comments, last by Le0 21 years, 5 months ago
Hello all, im trying to make an othello game, as my first one, but im not sure what lib i should use to displays some pics. Could anyone give me some ideas please ? thanks
"The bible is probably the most genocidal book ever written!" Noam Chomsky
Advertisement
Use the Win32 GDI.
Allegro is very good

allegro.cc
would it be possible to use directx?
"The bible is probably the most genocidal book ever written!" Noam Chomsky
Make it work right in Win32 first.
Then try to convert it to DirectX/OpenGL.
RPD=Role-Playing-Dialogue. It's not a game,it never was. Deal with it.
First of all, what are you using?
DOS Consoles, Win32 Windows...

if DOS:
"Walk before you crawl."
Grap some code on how to make a window application,
then use GDI to load an image ( look up MSDN ).
Then use HDC to get the screen surface and put the picture on it with BitBlt.

if Win32:
WinApi is very useful, you should check out some neat functions on msdn.
Same thing: GDI to load image, HDC to transfer the image to the surface.
Try Allegro, its Keen!

And

The forums at Allegro.cc are Super Helpful and Friendly!
If you really want to learn some really cool stuff try Direct X;
It isn''t that hard (if you have a book, the docs are heck);
Then you can draw some pictures REALLY FAST!

Nick
Nick
it will be a win32 prog, and i think i will make some kind of tetris or othello clone. what would be better directx or winapi?
"The bible is probably the most genocidal book ever written!" Noam Chomsky
Depends. The GDI is somewhat simpler than DirectX, but it''s much slower. That shouldn''t matter much for a tetris/othello game, though.

If you have the time to learn it, I would recommend DirectX. It is much more powerful, and you can do a lot more cool stuff with it (3D!)

This topic is closed to new replies.

Advertisement