Archived

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

TheFiend

Win32 API ?'s

Recommended Posts

TheFiend    122
Does the Win32 API just set up windows, or can it be used for timers and stuff? And is SDL just an alternative to Win32 API, or does it have many more features? ANd do you use SDL to create windows, or do you have to use SDL in conjunction with Win32? Looking forward to some speedy answers .

Share this post


Link to post
Share on other sites
Colin Jeanne    1114
The Win32 API allows you to use everything from windows to timers to Winsock. All the actions that a Windows program performs use the Win32 API.

SDL, from what I understand, is a cross-platform graphics wrapper. If the SDL creates windows on Windows it is using the Win32 API. What SDL does not provide you could create yourself with the Win32 API.



Qui fut tout, et qui ne fut rien
Invader''s Realm

Share this post


Link to post
Share on other sites
void*    292
SDL is cross-platform to Win32, Linux, and BeOS...

If you write your code correctly (don''t put anything in that requires win32 .dlls or Qt libraries, for instance) you can write the same game to all three platforms without doing the three flavors of low-level platform access yourself...

It''s even open-source so you can see how they do it.

If you only plan on releasing for Windows, or if you want to use DirectX, then SDL won''t have a huge advantage for you -- you could just use the Win32 entry code (WinMain, winproc, etc.) instead.

Share this post


Link to post
Share on other sites