bobobo1618
Member
|
Header declaration for main function
Hi,
Is there somewhere I can find the definition for the main function? I would like to bind it to script, this would mean I do not need source access yet would still be able to create my script bindings
|
|
12-10-2010 02:42 PM |
|
Esenthel
Administrator
|
RE: Header declaration for main function
Hi, there's no access to the main function
|
|
12-10-2010 03:07 PM |
|
bobobo1618
Member
|
RE: Header declaration for main function
Why?
|
|
12-10-2010 03:25 PM |
|
Esenthel
Administrator
|
RE: Header declaration for main function
InitPre, Init, Shut, Update, Draw - these are the main functions in EE
|
|
12-10-2010 03:34 PM |
|
bobobo1618
Member
|
RE: Header declaration for main function
So if I call these functions externally, my program will run as desired?
|
|
12-11-2010 01:53 AM |
|
Esenthel
Administrator
|
RE: Header declaration for main function
No,
every main function is handled by the engine automatically.
You should not call the main engine functions, but instead - call your custom functions from inside the EE main functions.
Just look at the C++ tutorials.
You can only manually initialize the engine when loading game from DLL - check SDK\Extra\Tutorial - Loading Game from DLL
|
|
12-11-2010 02:00 AM |
|
bobobo1618
Member
|
RE: Header declaration for main function
This code seems windows only. What happens on Mac/iPhone?
|
|
12-11-2010 01:14 PM |
|
Esenthel
Administrator
|
RE: Header declaration for main function
on Mac/iPhone you don't use DLL's, but just like every other tutorial, InitPre, Init, Shut, Update, Draw
simply - don't initialize the engine manually, let the engine initialize by itself
|
|
12-11-2010 03:46 PM |
|
bobobo1618
Member
|
RE: Header declaration for main function
deal I was going to use SWIG which would allow me to integrate about 40 different languages with esenthel but now I have moved to angelscript which fits my needs perfectly and is programmed into the C++
|
|
12-13-2010 02:18 PM |
|