X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fpixelstore.h;fp=source%2Fcore%2Fpixelstore.h;h=0000000000000000000000000000000000000000;hb=a92362ad19b65f66b98e0dc4d034da5e4eb5cf36;hp=80032c3c3fdc7bee3eb62d76ff2cc16e43b6f563;hpb=94969468a611b0d968021479b60e3f039e348c85;p=libs%2Fgl.git diff --git a/source/core/pixelstore.h b/source/core/pixelstore.h deleted file mode 100644 index 80032c3c..00000000 --- a/source/core/pixelstore.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef MSP_GL_PIXELSTORE_H_ -#define MSP_GL_PIXELSTORE_H_ - -#include -#include "bindable.h" - -namespace Msp { -namespace GL { - -class PixelStore: public BindableWithDefault -{ -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