X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=flat_input.h;h=9266659596ad8026f7993380c3cf1053a655714f;hp=69c1a6f14d00b2b5a64205133aad3853d23a31eb;hb=3fbc6a0e7ecc008b0bdafcbc576b79c24117859e;hpb=ab636361e865c389fe60584562372ec39ac4c511 diff --git a/flat_input.h b/flat_input.h index 69c1a6f..9266659 100644 --- a/flat_input.h +++ b/flat_input.h @@ -7,7 +7,7 @@ // comes from a single 2D array with chunky pixels. class FlatInput : public Input { public: - FlatInput(ImageFormat format, unsigned width, unsigned height); + FlatInput(ImageFormat format, MovitPixelFormat pixel_format, unsigned width, unsigned height); // Create the texture itself. We cannot do this in the constructor, // because we don't necessarily know all the settings (sRGB texture, @@ -56,6 +56,7 @@ public: private: ImageFormat image_format; + MovitPixelFormat pixel_format; GLenum format; GLuint pbo, texture_num; bool needs_update, finalized;