\r
#include <memory>\r
\r
-#include "GL/glew.h"\r
-\r
namespace caspar { namespace core {\r
\r
-class host_buffer;\r
-\r
class device_buffer : boost::noncopyable\r
{\r
public:\r
size_t width() const;\r
size_t height() const;\r
\r
- void bind();\r
void bind(int index);\r
void unbind();\r
-\r
- void clear();\r
-\r
- void attach(int index = 0);\r
-\r
- void begin_read(host_buffer& source);\r
+ \r
+ void begin_read();\r
bool ready() const;\r
private:\r
friend class ogl_device;\r
device_buffer(size_t width, size_t height, size_t stride);\r
\r
+ int id() const;\r
+\r
struct implementation;\r
safe_ptr<implementation> impl_;\r
};\r
\r
-GLenum format(size_t stride);\r
+unsigned int format(size_t stride);\r
\r
}}
\ No newline at end of file