How to display some graphics?
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
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.
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.
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
It isn''t that hard (if you have a book, the docs are heck);
Then you can draw some pictures REALLY FAST!
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?
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!)
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
Popular Topics
Advertisement