mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Added the ability to use custom mipmaps in Images, via love.graphics.newImage(filename, {mipmap1, mipmap2, ...}). Resolves issue #1064.
All mipmap levels must be present if custom mipmaps are used (and their sizes must be half the size of the previous mipmap level, rounded down.) Image:getData now returns all custom mipmaps in an Image.
This commit is contained in:
@@ -107,12 +107,12 @@ public:
|
||||
/**
|
||||
* Gets the width of a sub-image at the specified mipmap level.
|
||||
**/
|
||||
int getWidth(int miplevel) const;
|
||||
int getWidth(int miplevel = 0) const;
|
||||
|
||||
/**
|
||||
* Gets the height of a sub-image at the specified mipmap level.
|
||||
**/
|
||||
int getHeight(int miplevel) const;
|
||||
int getHeight(int miplevel = 0) const;
|
||||
|
||||
/**
|
||||
* Gets the format of the compressed data.
|
||||
|
||||
Reference in New Issue
Block a user