X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpixelstore.h;h=5229556709b5119bb5157bc70ff3646d80309df3;hp=0c430300d9be0b5bb9c89c6bdb65c2629b741fce;hb=6b0a93110454cc8d84d0d9b9b29fe9d0ecbaa4d5;hpb=055f553b1a75f44e72f3c2b5a1c98c1e1e8f3f30 diff --git a/source/pixelstore.h b/source/pixelstore.h index 0c430300..52295567 100644 --- a/source/pixelstore.h +++ b/source/pixelstore.h @@ -10,6 +10,13 @@ namespace GL { class PixelStore: public BindableWithDefault { private: + enum ParameterMask + { + SIZE, + ORIGIN, + ALIGNMENT + }; + unsigned row_length; unsigned image_height; unsigned skip_pixels; @@ -22,6 +29,10 @@ public: 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);