05 2015 档案
摘要:以下是一个简单的模型读取程序:#include #include #include void main(){ osgViewer::Viewer viewer; osg::Group *root = new osg::Group(); root->addChild(osgDB:...
阅读全文
摘要:代码如下: //需要添加两个库:osgUtild.lib、osgTextd.lib#include #include #include #include #include #include #include #include #include #include #include #include ...
阅读全文
摘要:直接上代码:#include #include #include #include #include #include #include #include #include #include void main(){ osgViewer::Viewer viewer; viewer....
阅读全文
摘要:现在为Hello World添加一些键盘响应事件。 //需要多添加两个库:osgGAd.lib、osgd.lib代码如下:#include #include #include #include void main(){ osgViewer::Viewer viewer; viewe...
阅读全文
摘要:对于从未接触过OSG的我来说,首先需要一个入门教程。在OSG论坛逛了半天,再加上google,最终决定使用《OSG程序设计》这本书。 下面就贴出书中的第一个例子:Hello World。 使用vs2010新建一个win32控制台应用程序,然后配置一下osg环境,接下来就可以上代码了。 //...
阅读全文
摘要:ps top 可以按一定规则对top的结果进行排序 kill netstat jobs 参考文档: http://man.linuxde.net/netstat netstat 的10个基本用法
阅读全文
摘要:首先我想说的是,osg是有二进制安装包的:http://openscenegraph.alphapixel.com/osg/downloads/free-openscenegraph-binary-downloads(也不叫二进制安装包,就是别人预先编译好的)。我认为,如果只是简单的用下osg,...
阅读全文
摘要:此文简单记录我学习linux的过程 (排名不怎么分先后)1. 《鸟哥的linux私房菜》2. 《unix/linux编程实践教程》 (看的电子版)3. 《unix环境高级编程》4. Linux的概念与体系 (读起来很舒服的博客)http://www.cnblogs.com/vamei/ar...
阅读全文
摘要:题目描述:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):T...
阅读全文
摘要:题目描述:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn'...
阅读全文
摘要:题目描述:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space ...
阅读全文
摘要:题目描述:Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen l...
阅读全文
摘要:const和#define的区别:1. 编译器处理方式不同define宏是在预处理阶段展开。const常量是编译运行阶段使用。2. 类型和安全检查不同define宏没有类型,不做任何类型检查,仅仅是展开。const常量有具体的类型,在编译阶段会执行类型检查。3. 存储方式不同define宏定义不占内...
阅读全文