X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fbufferable.h;h=d49f0149ca4cb79bd659d8abeccdf7ce579cdf13;hb=11a5d4f2a35dfdcf61e16d4fcfba22e20ea6a3db;hp=b2b25765af2ef67b88c3c9e91bb7e785ee97b1b5;hpb=6d2e2a0bb28496a8c25b441009bdd2a1a1e72d81;p=libs%2Fgl.git diff --git a/source/core/bufferable.h b/source/core/bufferable.h index b2b25765..d49f0149 100644 --- a/source/core/bufferable.h +++ b/source/core/bufferable.h @@ -2,12 +2,11 @@ #define MSP_GL_BUFFERABLE_H_ #include +#include "buffer.h" namespace Msp { namespace GL { -class Buffer; - /** Base class for things that can store data in buffers. Multiple Bufferables may be put in the same buffer. @@ -26,11 +25,10 @@ public: { private: const Bufferable &bufferable; - char *mapped_address; + Buffer::AsyncTransfer transfer; public: AsyncUpdater(const Bufferable &); - ~AsyncUpdater(); void upload_data(); };