13 #ifndef OSGUTIL_CUBEMAPGENERATOR_ 
   14 #define OSGUTIL_CUBEMAPGENERATOR_ 
   16 #include <osgUtil/Export> 
   21 #include <osg/Referenced> 
   22 #include <osg/TextureCubeMap> 
   47         void generateMap(
bool use_osg_system = 
true);
 
   53         inline void set_pixel(
int index, 
int c, 
int r, 
const osg::Vec4 &color);
 
   65         typedef std::vector<osg::ref_ptr<osg::Image> > Image_list;
 
  113             vec.
x() / vec.
length() / 2 + 0.5f,
 
  114             vec.
y() / vec.
length() / 2 + 0.5f,
 
  115             vec.
z() / vec.
length() / 2 + 0.5f,
 
CubeMapGenerator & operator=(const CubeMapGenerator &)
void set_pixel(int index, int c, int r, const osg::Vec4 &color)
T clampBetween(T v, T minimum, T maximum)
virtual ~CubeMapGenerator()
osg::Image * getImage(osg::TextureCubeMap::Face face)
OSG_EXPORT std::ostream & notify(const NotifySeverity severity)
value_type length() const 
static osg::Vec4 vector_to_color(const osg::Vec3 &vec)
Shader generator framework.