X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpixelstore.h;h=80032c3c3fdc7bee3eb62d76ff2cc16e43b6f563;hp=0c430300d9be0b5bb9c89c6bdb65c2629b741fce;hb=20af6dd2f04caa224d8cae00befc97d010a1ed08;hpb=055f553b1a75f44e72f3c2b5a1c98c1e1e8f3f30 diff --git a/source/pixelstore.h b/source/pixelstore.h index 0c430300..80032c3c 100644 --- a/source/pixelstore.h +++ b/source/pixelstore.h @@ -10,6 +10,13 @@ namespace GL { class PixelStore: public BindableWithDefault { private: + enum ParameterMask + { + SIZE = 1, + ORIGIN = 2, + ALIGNMENT = 4 + }; + 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);