How to use TrayManager?
Posted: Mon Jul 16, 2018 8:00 am
Ogre Version: 1.11.1
Operating System: Linux marek-pc 4.16.18-1-MANJARO #1 SMP PREEMPT Tue Jun 26 15:27:59 UTC 2018 x86_64 GNU/Linux
Render System: OpenGL 3+ Render Subsystem
Hello there,
I've got troubles implementing TrayManager. Followed tutorials on: https://ogrecave.github.io/ogre/api/latest/trays.html
But I can't figure out what exactly to write in place of mWindow or how to use rendersystem.
Trying to modify bootstrap.cpp and add there only traymanager.
I have added only this line into code:
OgreBites::TrayManager* mTrayMgr = new OgreBites::TrayManager("InterfaceName", mWindow, this);
and also included ogretrays.h
but how to modify Window?
Error during compiling:
Thank you for any suggestions
Operating System: Linux marek-pc 4.16.18-1-MANJARO #1 SMP PREEMPT Tue Jun 26 15:27:59 UTC 2018 x86_64 GNU/Linux
Render System: OpenGL 3+ Render Subsystem
Hello there,
I've got troubles implementing TrayManager. Followed tutorials on: https://ogrecave.github.io/ogre/api/latest/trays.html
But I can't figure out what exactly to write in place of mWindow or how to use rendersystem.
Trying to modify bootstrap.cpp and add there only traymanager.
I have added only this line into code:
OgreBites::TrayManager* mTrayMgr = new OgreBites::TrayManager("InterfaceName", mWindow, this);
and also included ogretrays.h
but how to modify Window?
Error during compiling:
Code: Select all
[marek@marek-pc build]$ make
[ 33%] Built target 2_CamerasAndShadows
[ 50%] Building CXX object CMakeFiles/0_Bootstrap.dir/Bootstrap.cpp.o
/run/media/marek/cd998326-6c5a-4cd3-b3ff-d425a0c06ae4/OgreSDK/Tutorials/Bootstrap.cpp: In member function ‘virtual void MyTestApp::setup()’:
/run/media/marek/cd998326-6c5a-4cd3-b3ff-d425a0c06ae4/OgreSDK/Tutorials/Bootstrap.cpp:72:84: error: ‘mWindow’ was not declared in this scope
OgreBites::TrayManager* mTrayMgr = new OgreBites::TrayManager("InterfaceName", mWindow, this);
^~~~~~~
/run/media/marek/cd998326-6c5a-4cd3-b3ff-d425a0c06ae4/OgreSDK/Tutorials/Bootstrap.cpp:72:84: note: suggested alternative: ‘mWindows’
OgreBites::TrayManager* mTrayMgr = new OgreBites::TrayManager("InterfaceName", mWindow, this);
^~~~~~~
mWindows
make[2]: *** [CMakeFiles/0_Bootstrap.dir/build.make:63: CMakeFiles/0_Bootstrap.dir/Bootstrap.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/0_Bootstrap.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
[marek@marek-pc build]$