]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture1d.cpp
Remove remaining deprecated things from the core classes
[libs/gl.git] / source / core / texture1d.cpp
index df8dd06c75c705e06b31547b0501ea4a86e1c1fb..7c3f02ab5f97988af099937eb6ed52254542b332 100644 (file)
@@ -1,4 +1,3 @@
-#include <msp/core/raii.h>
 #include <msp/gl/extensions/arb_direct_state_access.h>
 #include <msp/gl/extensions/arb_texture_storage.h>
 #include <msp/gl/extensions/msp_texture1d.h>
@@ -88,13 +87,6 @@ void Texture1D::image(unsigned level, const void *data)
        allocated |= 1<<level;
 }
 
-void Texture1D::image(unsigned level, PixelComponents comp, DataType type, const void *data)
-{
-       if(comp!=get_components(format) || type!=get_component_type(format))
-               throw incompatible_data("Texture1D::image");
-       image(level, data);
-}
-
 void Texture1D::sub_image(unsigned level, int x, unsigned wd, const void *data)
 {
        if(width==0)
@@ -115,13 +107,6 @@ void Texture1D::sub_image(unsigned level, int x, unsigned wd, const void *data)
        }
 }
 
-void Texture1D::sub_image(unsigned level, int x, unsigned wd, PixelComponents comp, DataType type, const void *data)
-{
-       if(comp!=get_components(format) || type!=get_component_type(format))
-               throw incompatible_data("Texture1D::sub_image");
-       sub_image(level, x, wd, data);
-}
-
 void Texture1D::image(const Graphics::Image &img, unsigned lv)
 {
        if(img.get_height()!=1)