摘要:
_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 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文