#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include "adll.h" // Include the engine data types, variables, and functions
int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd) // application instance handle, // always zero // application command line // window flags
{
// The engine_open() function returns a pointer to a struct of
// engine variables. We don't want to load a script or level here, so we just pass NULL.
ENGINE_VARS *ev = engine_open(NULL);
if (!ev) return 1; // acknex.dll not found
//Add Content Folders Paths
add_folder("terrains");
add_folder("images");
add_folder("models");
level_load("dh.wmb");
engine_frame();
//Initialize The Graphics Environment
SETV(fps_max,60);
video_set(1024,768,32,0);
while (engine_frame()) {
//Main Loop
}
engine_close();
return 0;
}