mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Centralize NPOT support check for image, export it to isSupported
This commit is contained in:
@@ -37,7 +37,6 @@ namespace graphics
|
||||
{
|
||||
namespace opengl
|
||||
{
|
||||
|
||||
/**
|
||||
* A drawable image based on OpenGL-textures. This class takes ImageData
|
||||
* objects and create textures on the GPU for fast drawing.
|
||||
@@ -138,6 +137,8 @@ namespace opengl
|
||||
bool loadVolatile();
|
||||
void unloadVolatile();
|
||||
|
||||
static bool hasNpot();
|
||||
|
||||
private:
|
||||
|
||||
void drawv(const Matrix & t, const vertex * v) const;
|
||||
|
||||
Reference in New Issue
Block a user