09 2017 档案
摘要:CMake自带的FindZLIB.cmake只有ZLIB_LIBRARY,而没有ZLIB_LIBRARY_DEBUG 将下面的代码保存成FindZLIB.cmake,替换掉D:\Program Files (x86)\CMake\share\cmake-3.3\Modules\FindZLIB.cm
阅读全文
摘要:1、新建一个Unity5.6.2f1工程,导入正版Bluetooth LE for iOS tvOS and Android.unitypackage2、用JD-GUI反编译工具查看unityandroidbluetoothlelib.jar3、将反编译的代码拷贝出来,建立对应的文件目录,4、在Ec
阅读全文
摘要:void OnGUI() { if (Event.current != null && Event.current.type == EventType.mouseDown) { if (Input.GetMouseButton(0)) { Ray ray = Camera.ma...
阅读全文
摘要:osg::Node* createPyramidModel() { // create the root node which will hold the model. osg::Group* root = new osg::Group(); // turn off lighting root->getOrCreateStateSet()->setMode(GL...
阅读全文