X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=flat_input.h;h=90c038678f2e429fd775c3770510a0bf4605a9b3;hp=2e14488ea7d983da1cad04ea6a31fb99d4b06fb3;hb=42c35394ef92bb5179fc4879cb55b866fd422d28;hpb=fdad0932f08649e69e824ee73a787671a5bc93a5 diff --git a/flat_input.h b/flat_input.h index 2e14488..90c0386 100644 --- a/flat_input.h +++ b/flat_input.h @@ -27,6 +27,8 @@ public: // Uploads the texture if it has changed since last time. void set_gl_state(GLuint glsl_program_num, const std::string& prefix, unsigned *sampler_num); + unsigned get_width() const { return width; } + unsigned get_height() const { return height; } ColorSpace get_color_space() const { return image_format.color_space; } GammaCurve get_gamma_curve() const { return image_format.gamma_curve; }