]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pixelstore.h
Rearrange soucre files into subdirectories
[libs/gl.git] / source / pixelstore.h
diff --git a/source/pixelstore.h b/source/pixelstore.h
deleted file mode 100644 (file)
index 80032c3..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef MSP_GL_PIXELSTORE_H_
-#define MSP_GL_PIXELSTORE_H_
-
-#include <msp/graphics/image.h>
-#include "bindable.h"
-
-namespace Msp {
-namespace GL {
-
-class PixelStore: public BindableWithDefault<PixelStore>
-{
-private:
-       enum ParameterMask
-       {
-               SIZE = 1,
-               ORIGIN = 2,
-               ALIGNMENT = 4
-       };
-
-       unsigned row_length;
-       unsigned image_height;
-       unsigned skip_pixels;
-       unsigned skip_rows;
-       unsigned skip_images;
-       unsigned alignment;
-
-public:
-       PixelStore();
-
-       static PixelStore from_image(const Graphics::Image &);
-
-private:
-       void update_parameter(int) const;
-
-public:
-       void set_canvas_size(unsigned, unsigned);
-       void set_origin(unsigned, unsigned, unsigned);
-       void set_alignment(unsigned);
-
-       void bind() const;
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif