8#ifndef CO_INSTANCERENDERER_H
9#define CO_INSTANCERENDERER_H
24#include <util/common.h>
42 osg::ref_ptr<osg::Geometry>
geom;
56 int addObject(std::string textureName,
float width,
float height);
Definition: ARToolKit.h:33
Definition: coInstanceRenderer.h:29
osg::Geode * getGeode()
Definition: coInstanceRenderer.h:34
void addInstances(osg::Vec3Array &positions)
osg::StateSet * stateSet
Definition: coInstanceRenderer.h:46
osg::ref_ptr< osg::Geode > geode
Definition: coInstanceRenderer.h:41
float height
Definition: coInstanceRenderer.h:45
std::string textureName
Definition: coInstanceRenderer.h:44
void createTwoQuadGeometry(float width, float height)
int numInstances
Definition: coInstanceRenderer.h:43
coInstanceObject(std::string textureName, float width, float height)
osg::ref_ptr< osg::Geometry > geom
Definition: coInstanceRenderer.h:42
virtual ~coInstanceObject()
Definition: coInstanceRenderer.h:49
virtual ~coInstanceRenderer()
static coInstanceRenderer * instance()
osg::ref_ptr< osg::Group > instanceObjects
Definition: coInstanceRenderer.h:61
int addObject(std::string textureName, float width, float height)
int numObjects
Definition: coInstanceRenderer.h:59
void addInstances(osg::Vec3Array &positions, int type)
std::vector< coInstanceObject * > objects
Definition: coInstanceRenderer.h:60