Jump to content
  • Advertisement

Archived

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

Le0

How to display some graphics?

This topic is 5744 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

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

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Allegro is very good

allegro.cc

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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!)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!