engine_close ()
Closes the engine (acknex.dll).
Remarks:
- Can only be called from an external application, not from a script
or plugin.
- The engine must be opened before it can be closed. It can be
opened and closed repeatedly, but open and close calls must not be nested.
Example:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdlib.h>
#include "adll.h"
int APIENTRY WinMain(HINSTANCE hInstance, // application instance handle
HINSTANCE hPrevInstance, // always zero
LPTSTR lpCmdLine, // application command line
int nCmdShow) // window flags
{
engine_open("arena.wmb");
while (engine_frame());
engine_close();
return 0;
}
See also:
engine_open,
engine_status
► latest
version online