mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Added 'shaderswitches' to love.graphics.getStats.
This commit is contained in:
@@ -167,6 +167,7 @@ public:
|
||||
size_t textureMemory;
|
||||
int drawCalls;
|
||||
int framebufferBinds;
|
||||
int shaderSwitches;
|
||||
} stats;
|
||||
|
||||
struct Bugs
|
||||
@@ -305,6 +306,11 @@ public:
|
||||
**/
|
||||
void bindFramebuffer(GLenum target, GLuint framebuffer);
|
||||
|
||||
/**
|
||||
* Calls glUseProgram.
|
||||
**/
|
||||
void useProgram(GLuint program);
|
||||
|
||||
/**
|
||||
* This will usually be 0 (system drawable), but some platforms require a
|
||||
* non-zero FBO for rendering.
|
||||
|
||||
Reference in New Issue
Block a user