mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user