]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.h
Fix Texture2D::get_data_size to use get_pixel_size
[libs/gl.git] / source / texture.h
index 3e050db57f359cc0d3a9f514d828491c6a81cce0..1b80e950f08d93e54debd3bdc8b14ae4c7f458ac 100644 (file)
@@ -81,6 +81,7 @@ protected:
        private:
                void init();
 
+               void external_image(const std::string &);
                void filter(TextureFilter);
                void generate_mipmap(bool);
                void image_data(const std::string &);
@@ -108,6 +109,7 @@ protected:
 
        unsigned id;
        GLenum target;
+       PixelFormat ifmt;
        TextureFilter min_filter;
        TextureFilter mag_filter;
        float max_anisotropy;
@@ -127,8 +129,11 @@ public:
 
 protected:
        static DataType get_alloc_type(PixelFormat);
+       void set_internal_format(PixelFormat);
 
        void update_parameter(int) const;
+       void set_parameter_i(GLenum, int) const;
+       void set_parameter_f(GLenum, float) const;
 public:
        void set_min_filter(TextureFilter);
        void set_mag_filter(TextureFilter);
@@ -187,6 +192,9 @@ public:
        virtual UInt64 get_data_size() const { return 0; }
 };
 
+
+bool is_mipmapped(TextureFilter);
+
 } // namespace GL
 } // namespace Msp