Implement asynchronous loading.
This commit is contained in:
@@ -5,6 +5,9 @@
|
|||||||
namespace fmri
|
namespace fmri
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Base class for anything to be drawn to the screen.
|
||||||
|
*/
|
||||||
class Drawable
|
class Drawable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -12,6 +15,14 @@ namespace fmri
|
|||||||
|
|
||||||
virtual void draw(float time) = 0;
|
virtual void draw(float time) = 0;
|
||||||
virtual void patchTransparancy();
|
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();
|
virtual void glLoad();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user