Getting it to compile on Linux
Samuel sent me an email demonstrating how to get the tutorials to compile in Linux.... i haven't tryed cos i use win32 but i think they should work :)
just change WinMain to something like:
bool active = false;
void Init();
void Main();
void End();
#ifdef __WIN32__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
// WINMAIN ////////////////////////////////////////////////
int WINAPI WinMain( HINSTANCE hinstance,
HINSTANCE hprevinstance,
LPSTR lpcmdline,
int ncmdshow)
{
Init();
active = true;
while(active)
{
Main();
}
End();
return(0);
}
#else
int main (int, char **)
{
Init();
active = true;
while(active)
{
Main();
}
End();
}
#endif