]> git.sesse.net Git - casparcg/blobdiff - core/mixer/gpu/device_buffer.h
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
[casparcg] / core / mixer / gpu / device_buffer.h
index 6a02d15ce42ed48ab97676f81a52bd275ad170ba..f329f72c4ee0d9af6f00d010f8561e95e00bf743 100644 (file)
 \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
@@ -39,24 +35,21 @@ public:
        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