steve3d Posted December 9, 2013 Share Posted December 9, 2013 We only have the getWidth/getHeight from engine.app to get the engine window's width and height. So I think if we can also get the virtual descktop's size and number of monitors and each monitor's resolution by some simple api calls. so we can set the best fullscreen mode depend on the monitor's resolution. Link to comment
frustum Posted December 25, 2013 Share Posted December 25, 2013 You can use Interface plugin to obtain system information regarding number of monitors and their resolutions. engine.interface.getNumScreens() engine.interface.getScreenWidth() engine.interface.getScreenHeight() engine.interface.getScreenPositionX() engine.interface.getScreenPositionY() Moreover this plugin gives access to engine window position control. Link to comment
steve3d Posted December 26, 2013 Author Share Posted December 26, 2013 ah, thanks, these functions don't exists in unigine manual. and another question, is there any possible to have interface plugin loaded but limit all WidgetWindow/WidgetDialog not to use interface plugin to create a seperate window? I want to use these function but I don't want any external window creatation. because in that way, any operation in that window will make engine exit fullscreeen mode. Link to comment
silent Posted December 26, 2013 Share Posted December 26, 2013 Hi Steve, If I understand you correctly, you can use video_fullscreen 2 instead of video_fullscreen 1 command to avoid such behavior. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
steve3d Posted December 26, 2013 Author Share Posted December 26, 2013 ok, thank you, I just forgot the video_fullscreen 2 command can avoid the problem. Link to comment
Recommended Posts