]> git.sesse.net Git - casparcg/blobdiff - accelerator/ogl/util/texture.h
Disable audio output when closing a bf device after playback.
[casparcg] / accelerator / ogl / util / texture.h
index 66405a34feb1bcdd1fee9d35c1eecd5e9e0103d0..aa2b0cda27e248f1a06157c50616291adcef4f2c 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <common/memory.h>
 
+#include <boost/property_tree/ptree_fwd.hpp>
+
 #include <cstddef>
 
 namespace caspar { namespace accelerator { namespace ogl {
@@ -30,7 +32,7 @@ namespace caspar { namespace accelerator { namespace ogl {
 class buffer;
 class device;
 
-class texture /* final */
+class texture final
 {
        texture(const texture&);
        texture& operator=(const texture&);
@@ -40,7 +42,7 @@ public:
 
        // Constructors
 
-       texture(int width, int height, int stride);
+       texture(int width, int height, int stride, bool mipmapped);
        texture(texture&& other);
        ~texture();
        
@@ -61,10 +63,12 @@ public:
        int width() const;
        int height() const;
        int stride() const;     
+       bool mipmapped() const;
        std::size_t size() const;
 
        int id() const;
 
+       static boost::property_tree::wptree info();
 private:
        struct impl;
        spl::unique_ptr<impl> impl_;