MicBosi / VisualizationLibrary

Visualization Library is a C++ middleware for high-performance 2D and 3D graphics applications based on OpenGL 1.x-4.x supporting Windows, Linux and Mac OS X.
http://VisualizationLibrary.org
Other
339 stars 94 forks source link

Allow vl::Object user data to be of any class for proper casting #105

Open MicBosi opened 8 years ago

MicBosi commented 8 years ago

VL_OBJECT_USER_DATA only allows to a vl::Object to point to a void*, it would be nice to have the option to be a user specified base class so that proper dynamic casting can be used when retrieving data. It has to be a naked pointer though.

MicBosi commented 8 years ago

This will be a breaking change as the meaning of the define will change.