#pragma comment(lib,"OpenThreadsd.lib")
#pragma comment(lib,"osgd.lib")
#pragma comment(lib,"osgViewerd.lib")
#pragma comment(lib,"osgDBd.lib")
#pragma comment(lib,"osgGAd.lib")
#include <osgViewer/Viewer>
#include <osgDB/ReadFile>
#include <osg/MatrixTransform>
#include <osg/Geometry>
#include <osg/Group>
#include <osg/Node>
#include <osg/Geode>
#include <osgGA/StateSetManipulator>
#include <iostream>
float circle[72][2]={0};
#define PI 3.1415926f
void InitCircle(int Radiu)
{
float angle = 0.0f;
for(int i=0; i<72; i++)
{
circle[i][0] = Radiu * cos(angle);
circle[i][1] = Radiu * sin(angle);
angle += 2.0 * PI / 72.0f;
}
}
osg::ref_ptr<osg::Node>CreateCircle(int Radiu)
{
InitCircle(Radiu);
osg::ref_ptr<osg::Vec3Array>pointArray = new osg::Vec3Array();
osg::ref_ptr<osg::Geometry>geo
osg 透明度显示方式
最新推荐文章于 2025-01-21 10:55:11 发布