#define MSP_GL_RENDERABLE_H_
#include <string>
+#include <msp/core/attributes.h>
#include <msp/core/inttypes.h>
#include <msp/geometry/boundingsphere.h>
#include "tag.h"
/** Returns a key used for grouping Renderables in an InstanceScene. The
returned value is treated as opaque. */
- virtual IntPtr get_instance_key() const { return 0; }
+ DEPRECATED virtual IntPtr get_instance_key() const { return 0; }
/** Returns the model matrix of the Renderable. Null is returned if no such
matrix exists. The matrix should be in world space for some effects to work
/** Renders the Renderable. Implementors should take care to return the
renderer to the state it was in, for example by using Renderer::Push. */
- virtual void render(Renderer &, const Tag & = Tag()) const = 0;
+ virtual void render(Renderer &, Tag = Tag()) const = 0;
};
} // namespace Msp