49 virtual bool update(
double time,
double timeDelta);
58 void uniform(
string const & name, t value)
63 shader->uniform(name,value);
100 template<
typename t_fnc>
149 typedef map<string,unique_ptr<SimpleMesh>>
mesh_map;
168 template<
typename t_fnc>
map< string, unique_ptr< SimpleMesh > > mesh_map
Transformation m_transformation
vector< vec3 > m_positions
SimpleMeshes(Application *app)
SimpleMeshInstance * createInstance(bool pickable=true)
set< SimpleMeshInstance * > m_instances
void prepareDraw(DrawArgs &args, Shader *shader)
SimpleMesh(Application *app, string const &name, t_fnc fnc)
map< string, function< void(Shader *)> > m_uniforms
void uniform(string const &name, t value)
void drawAllInstances(DrawArgs &args, Shader *shader)
Transformation & getTransform()
SimpleMesh * create(string const &name, t_fnc fnc)
void unregisterInstance(SimpleMeshInstance *obj)
void drawAll(DrawArgs &args)
virtual ~SimpleMeshInstance()
virtual bool update(double time, double timeDelta)
SimpleMeshInstance(Application *app, SimpleMesh *mesh, bool pickable=true)