About Store Forum Documentation Contact
Donations:
206$/mo



Post Reply 
Header declaration for main function
Author Message
bobobo1618 Offline
Member

Post: #1
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 smile
12-10-2010 02:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Header declaration for main function
Hi, there's no access to the main function
12-10-2010 03:07 PM
Find all posts by this user Quote this message in a reply
bobobo1618 Offline
Member

Post: #3
RE: Header declaration for main function
Why?
12-10-2010 03:25 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Header declaration for main function
InitPre, Init, Shut, Update, Draw - these are the main functions in EE
12-10-2010 03:34 PM
Find all posts by this user Quote this message in a reply
bobobo1618 Offline
Member

Post: #5
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
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
Find all posts by this user Quote this message in a reply
bobobo1618 Offline
Member

Post: #7
RE: Header declaration for main function
This code seems windows only. What happens on Mac/iPhone?
12-11-2010 01:14 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
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
Find all posts by this user Quote this message in a reply
bobobo1618 Offline
Member

Post: #9
RE: Header declaration for main function
deal smile 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
Find all posts by this user Quote this message in a reply
Post Reply