Added 'shaderswitches' to love.graphics.getStats.

This commit is contained in:
Alex Szpakowski
2016-04-02 18:14:52 -03:00
parent b365574bff
commit 901cc362df
7 changed files with 35 additions and 64 deletions
+6
View File
@@ -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.