#include <osg/PointSprite>
#include <osg/BlendFunc>
#include <osg/StateAttribute>
#include <osg/Point>
#include <osg/Geometry>
#include <osg/Texture2D>
#include <osg/TexEnv>
#include <osgDB/ReadFile>
#include <osgProducer/Viewer>
#include <osg/GLExtensions>
Include dependency graph for osgpointsprite.cpp:
Functions | |
osg::Geode * | makeGalaxy (unsigned nvertices) |
osg::StateSet * | makeStateSet (float size) |
int | main (int, char *[]) |
|
Make the galaxy of points |
|
Formula for the two spirals |
|
Setup cool blending Setup the point sprites Give some size to the points to be able to see the sprite Disable depth test to avoid sort problems and Lighting The texture for the sprites |