X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fmoof%2Fdrawable.hh;fp=src%2Fmoof%2Fdrawable.hh;h=3882995fe900aceb46ed455433a44ebe81d5d8cf;hb=831f04d4bc19a390415ac0bbac4331c7a65509bc;hp=0000000000000000000000000000000000000000;hpb=299af4f2047e767e5d79501c26444473bda64c64;p=chaz%2Fyoink diff --git a/src/moof/drawable.hh b/src/moof/drawable.hh new file mode 100644 index 0000000..3882995 --- /dev/null +++ b/src/moof/drawable.hh @@ -0,0 +1,41 @@ + +/*] Copyright (c) 2009-2010, Charles McGarvey [************************** +**] All rights reserved. +* +* vi:ts=4 sw=4 tw=75 +* +* Distributable under the terms and conditions of the 2-clause BSD license; +* see the file COPYING for a complete text of the license. +* +**************************************************************************/ + +#ifndef _MOOF_DRAWABLE_HH_ +#define _MOOF_DRAWABLE_HH_ + +/** + * \file drawable.hh + * Representation for an object that can be drawn to the screen. + */ + +#include + + +namespace moof { + + +/** + * Interface for anything that can be drawn. + */ +class drawable +{ +public: + virtual ~drawable() {} + + virtual void draw(scalar alpha) const = 0; +}; + + +} // namespace moof + +#endif // _MOOF_DRAWABLE_HH_ +