全部博文(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.........【阅读全文】
发布时间:2015-09-08 14:50:16
<span id="mt9" class="sentence" data-guid="66234c0f0e13157f0d1b9411003fba13" data-source="One reason order is significant is that transformations like rotation and scaling are done with respect to the origin of the coordinate system." xml:space="preserve" style="font-family:'Microsoft YaHei UI', 'Mi.........【阅读全文】