3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_OBJETCINSTANCE_H_
9 #define MSP_GL_OBJETCINSTANCE_H_
18 Represents a single instance of an Object. An application can derive another
19 class from this and overload the hook functions to specify location and other
20 instance-specific parameters for the rendered objects.
28 ObjectInstance(const Object &);
32 Hook function, called from Object just before rendering the mesh.
34 virtual void setup_render() const { }
37 Hook function, called from Object right after rendering the mesh.
39 virtual void finish_render() const { }
41 virtual unsigned get_detail_level() const { return 0; }