X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=flat_input.h;h=9266659596ad8026f7993380c3cf1053a655714f;hp=69c1a6f14d00b2b5a64205133aad3853d23a31eb;hb=fdfef2b631a081892b65c4411f17d2b7c57f3ee4;hpb=9dcbd93164611ea111cc29519c18193d4f571ac1 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;