trouble3524 Posted December 31, 2011 Posted December 31, 2011 Unigine SDK 2011-12-28 can use multi-window mode in Unigine Editor. I found the Unigine::App add three pure virtual function: vitrual void* App::getHandle() = 0; setMouseButton,setKeyState. but the sample was old version,it is did not inherit that three virtual function. I just delimit that three pure virtual function like this: void * UnigineWidget::getHandle() { return 0; } void UnigineWidget::setMouseButton(int mouse) { } void UnigineWidget::setKeyState(int key,int state) { } But I found when I quit Unigine Editor,and I clicked the render Window,my mouse is disappear,and the Window's keyPressEvent can NOT get anything. but it is in old Unigine Version 2011-10 was normal. why?????
trouble3524 Posted December 31, 2011 Author Posted December 31, 2011 And,I found when the render window in QWidget,I can NOT use the multi-window mode in Unigine Editor. the Unigine Widget can NOT drag out of Render Window. How to use this function in App(Qt)? I just because want to use the ulti-window mode function,so I upgrade my Unigine version,because upgrade engine once time will cost a lot of time. Thank you very much.
trouble3524 Posted December 31, 2011 Author Posted December 31, 2011 And,We did not want use UnigineScript to develop our game,because it is too hard to debug. So,we export the Unigine Source to dll and lib,and our C++ code import it. So,every upgrade Unigine will cost our a lot of time,because we have to spend much times to export the dll and lib.So, could you publish a export Unigine Edition in the future? Thank you.
manguste Posted February 7, 2012 Posted February 7, 2012 If you use Unigine dll from your C++ code and do not use scripting language, it's very easy. To export C++ engine classes, you just need to specify __declspec(dllexport) is in front of all classes and functions in headers, for example: class __declspec(dllexport) Player : public Node {
Recommended Posts