Revert most render pass API changes. The APIs need more work and iteration before they’re better to use than the old setCanvas APIs.

love.graphics.captureScreenshot has not been reverted.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-12-11 16:33:05 -04:00
parent 0a8c6f3ee6
commit 2a47a8c9e2
13 changed files with 512 additions and 661 deletions
+8 -10
View File
@@ -61,14 +61,6 @@ void gammaCorrectColor(Colorf &c);
**/
void unGammaCorrectColor(Colorf &c);
class RenderOutsidePassException : public love::Exception
{
public:
RenderOutsidePassException()
: Exception("Cannot draw outside of a render pass!")
{}
};
class Graphics : public Module
{
public:
@@ -193,7 +185,7 @@ public:
struct Stats
{
int drawCalls;
int renderPasses;
int canvasSwitches;
int shaderSwitches;
int canvases;
int images;
@@ -224,6 +216,12 @@ public:
}
};
struct OptionalColorf
{
Colorf c;
bool enabled;
};
virtual ~Graphics();
// Implements Module.
@@ -261,7 +259,7 @@ public:
**/
virtual bool isActive() const = 0;
virtual bool isPassActive() const = 0;
virtual bool isCanvasActive() const = 0;
static bool getConstant(const char *in, DrawMode &out);
static bool getConstant(DrawMode in, const char *&out);