全部博文(51)
发布时间:2015-12-04 15:15:21
sphereShape = new osg::Sphere(center, radius);//textureosg::ref_ptr<osg::Image> image = osgDB::readImageFile(filePath);if (!image.get()){std::cout<<"open file is failed!"<<std::endl;return NULL;}osg::ref_ptr<osg::Texture2D> texture = new osg::Texture2D;texture->setDataVariance(osg::Object:.........【阅读全文】
发布时间:2015-12-02 17:01:42
//osg/ShapeDrawable.cppvoid DrawShapeVisitor::apply(const Sphere& sphere){ GLBeginEndAdapter& gl = _state.getGLBeginEndAdapter(); gl.PushMatrix(); gl.Translated(sphere.getCenter().x(),sphere.getCenter().y(),sphere.getCenter().z()); boo.........【阅读全文】