]> git.sesse.net Git - casparcg/blobdiff - accelerator/ogl/util/texture.h
set svn:eol-style native on .h and .cpp files
[casparcg] / accelerator / ogl / util / texture.h
index 78fd008c4623474115a70b92faa1b6a9b5ebdae5..c9d2762d59b6ab5ce75c14fad798dda0ffc744ff 100644 (file)
@@ -1,73 +1,73 @@
-/*\r
-* Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>\r
-*\r
-* This file is part of CasparCG (www.casparcg.com).\r
-*\r
-* CasparCG is free software: you can redistribute it and/or modify\r
-* it under the terms of the GNU General Public License as published by\r
-* the Free Software Foundation, either version 3 of the License, or\r
-* (at your option) any later version.\r
-*\r
-* CasparCG is distributed in the hope that it will be useful,\r
-* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-* GNU General Public License for more details.\r
-*\r
-* You should have received a copy of the GNU General Public License\r
-* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.\r
-*\r
-* Author: Robert Nagy, ronag89@gmail.com\r
-*/\r
-\r
-#pragma once\r
-\r
-#include <common/memory.h>\r
-\r
-#include <cstddef>\r
-\r
-namespace caspar { namespace accelerator { namespace ogl {\r
-               \r
-class buffer;\r
-class device;\r
-\r
-class texture sealed\r
-{\r
-       texture(const texture&);\r
-       texture& operator=(const texture&);\r
-public:        \r
-\r
-       // Static Members\r
-\r
-       // Constructors\r
-\r
-       texture(int width, int height, int stride);\r
-       texture(texture&& other);\r
-       ~texture();\r
-       \r
-       // Methods\r
-\r
-       texture& operator=(texture&& other);\r
-               \r
-       void copy_from(buffer& source);\r
-       void copy_to(buffer& dest);\r
-                       \r
-       void attach();\r
-       void clear();\r
-       void bind(int index);\r
-       void unbind();\r
-\r
-       // Properties\r
-\r
-       int width() const;\r
-       int height() const;\r
-       int stride() const;     \r
-       std::size_t size() const;\r
-\r
-       int id() const;\r
-\r
-private:\r
-       struct impl;\r
-       spl::unique_ptr<impl> impl_;\r
-};\r
-       \r
+/*
+* Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>
+*
+* This file is part of CasparCG (www.casparcg.com).
+*
+* CasparCG is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* CasparCG is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
+*
+* Author: Robert Nagy, ronag89@gmail.com
+*/
+
+#pragma once
+
+#include <common/memory.h>
+
+#include <cstddef>
+
+namespace caspar { namespace accelerator { namespace ogl {
+               
+class buffer;
+class device;
+
+class texture sealed
+{
+       texture(const texture&);
+       texture& operator=(const texture&);
+public:        
+
+       // Static Members
+
+       // Constructors
+
+       texture(int width, int height, int stride);
+       texture(texture&& other);
+       ~texture();
+       
+       // Methods
+
+       texture& operator=(texture&& other);
+               
+       void copy_from(buffer& source);
+       void copy_to(buffer& dest);
+                       
+       void attach();
+       void clear();
+       void bind(int index);
+       void unbind();
+
+       // Properties
+
+       int width() const;
+       int height() const;
+       int stride() const;     
+       std::size_t size() const;
+
+       int id() const;
+
+private:
+       struct impl;
+       spl::unique_ptr<impl> impl_;
+};
+       
 }}}
\ No newline at end of file