diff --git a/src/fmri/Drawable.hpp b/src/fmri/Drawable.hpp index 60f2b31..186d36d 100644 --- a/src/fmri/Drawable.hpp +++ b/src/fmri/Drawable.hpp @@ -5,6 +5,9 @@ namespace fmri { + /** + * Base class for anything to be drawn to the screen. + */ class Drawable { public: @@ -12,6 +15,14 @@ namespace fmri virtual void draw(float time) = 0; virtual void patchTransparancy(); + /** + * Do any GL related initialization. + * + * GL initialization cannot be done in a separate thread, which + * is where the constructor might be called. + * + * The default implementation does nothing. + */ virtual void glLoad(); protected: