Jump to content

Getting engine.app through the C++ API


photo

Recommended Posts

Posted

Hi,

 

Once we've initialized the Unigine Engine via

m_pUnigine = Engine::init(UNIGINE_VERSION, argcLocal, argvLocal);

 

We'd like to get the functionality in engine.app in Unigine script in the C++ API

I was looking for a funtion like Engine::getApp() but could not find that or a similar one.

 

This is for convenience; of course we can implement callbacks for all the engine.app functions, but it would be better if we could get a pointer to the internal Unigine::App C++ class.

What would be the best way of doing this?

 

Thanks,

Ashwin.

Posted

Actually, it is not very clear what app callbacks you need. Nevertheless, will be implemented.

Posted

Actually, it is not very clear what app callbacks you need. Nevertheless, will be implemented.

 

Supposing I want to do App::getKeyState() , how can I do it if I do not have a pointer to the internal Unigine::App class? In my case the App is managed by Unigine.

That's why I requested something like Engine::getApp() (if it makes sense)

 

Thanks.

  • 1 month later...
×
×
  • Create New...