mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Move some OpenGL-specific Image code into the GL backend
This commit is contained in:
@@ -113,15 +113,13 @@ protected:
|
||||
Image(TextureType textype, PixelFormat format, int width, int height, int slices, const Settings &settings);
|
||||
|
||||
void uploadImageData(love::image::ImageDataBase *d, int level, int slice, int x, int y);
|
||||
virtual void uploadByteData(PixelFormat pixelformat, const void *data, size_t size, int level, int slice, const Rect &r) = 0;
|
||||
virtual void uploadByteData(PixelFormat pixelformat, const void *data, size_t size, int level, int slice, const Rect &r, love::image::ImageDataBase *imgd = nullptr) = 0;
|
||||
|
||||
virtual void generateMipmaps() = 0;
|
||||
|
||||
// The settings used to initialize this Image.
|
||||
Settings settings;
|
||||
|
||||
Slices data;
|
||||
|
||||
MipmapsType mipmapsType;
|
||||
bool sRGB;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user