X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2d.h;h=13073a2d74ea98cade27a9212229a365137e7175;hp=30eab26c47d648cd91bbc6ec7aab4c542ec7322e;hb=e92458a4a0e6191bff549a8b316dbbbd7c56e90f;hpb=0bea04fdbb08596dcf57210164d5dbb10308b4d7 diff --git a/source/texture2d.h b/source/texture2d.h index 30eab26c..13073a2d 100644 --- a/source/texture2d.h +++ b/source/texture2d.h @@ -54,13 +54,13 @@ public: this, and the image must have dimensions conforming to the specified storage. */ - void image(int level, PixelFormat fmt, GLenum type, const void *data); + void image(int level, PixelFormat fmt, DataType type, const void *data); /** Uploads a sub-image into the texture. Unlike full image upload, there are no constraints on the size of the sub-image. */ - void sub_image(int level, int x, int y, sizei wd, sizei ht, PixelFormat fmt, GLenum type, const void *data); + void sub_image(int level, int x, int y, sizei wd, sizei ht, PixelFormat fmt, DataType type, const void *data); /** Loads an image from a file and uploads it to the texture. If storage() has