2011年3月22日
摘要: _itoa_s 函数原型如下:errno_t _itoa_s( int value, char *buffer, size_t sizeInCharacters, //存放结果的字符数组长度 int radix);使用如下char buffer[2]=""; for (int i=0;i<10;i++) { _itoa_s(i,buffer,2,10);//10表示10进制2表示字符长度buffer表示存放结果 std::string file=buffer; imageSquence->addImage(osgDB::readImageFile("D 阅读全文
posted @ 2011-03-22 17:05 jackdesk 阅读(36563) 评论(2) 推荐(2) 编辑
摘要: #include<osg/ImageSequence>#include<osg/Texture2D>#include<osg/Geometry>#include<osg/Geode>#include<osgDB/ReadFile>#include<osgViewer/Viewer>voidcreateTexture2D(osg::StateSet&ss,osg::Image*image){osg::ref_ptr<osg::Texture2D>texture=newosg::Texture2D;text 阅读全文
posted @ 2011-03-22 16:52 jackdesk 阅读(4048) 评论(0) 推荐(1) 编辑
摘要: #include<osg/BlendFunc>#include<osg/Geode>#include<osg/ShapeDrawable>#include<osgAnimation/EaseMotion>#include<osgDB/ReadFile>#include<osgViewer/Viewer>classFadeCallback:publicosg::NodeCallback{public:FadeCallback(){_motion=newosgAnimation::InOutCubicMotion;}virtu 阅读全文
posted @ 2011-03-22 16:19 jackdesk 阅读(1753) 评论(0) 推荐(0) 编辑