Restructured internal code for graphics capabilities. Added love.graphics.getTextureTypes which returns a table of Texture Type to boolean supported fields.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-06-27 22:26:30 -03:00
parent 5941982422
commit 54a049e206
9 changed files with 81 additions and 84 deletions
+1 -3
View File
@@ -117,9 +117,6 @@ public:
void setWireframe(bool enable) override;
bool isSupported(Feature feature) const override;
bool isTextureTypeSupported(TextureType textype) const override;
double getSystemLimit(SystemLimit limittype) const override;
bool isCanvasFormatSupported(PixelFormat format) const override;
bool isCanvasFormatSupported(PixelFormat format, bool readable) const override;
bool isImageFormatSupported(PixelFormat format) const override;
@@ -131,6 +128,7 @@ public:
private:
love::graphics::StreamBuffer *newStreamBuffer(BufferType type, size_t size) override;
void initCapabilities() override;
void getAPIStats(int &drawcalls, int &shaderswitches) const override;
void endPass();