打开CMD.exe命令行窗口,通过 chcp命令改变代码页 UTF-8的代码页为65001,ANSI/OEM - 简体中文 GBK为936,window default OEM - 美国为437 如果chcp命令得到437,那么一定不能显示中文,此时的中文为???.如果是乱码,那么一定字符码不是UTF-8 refer to http://zfj-rails.iteye.com/blog/778022 * 437 — The original IBM PC code page * 932
#include <osgGA/StateSetManipulator> #include <osgViewer/ViewerEventHandlers> // add the state manipulator显示统计数据W键显示网格 L键控制光照 viewer->addEventHandler( new osgGA::StateSetManipulator(viewer->getCamera()->getOrCreateStateSet()) ); //