Some work towards OpenGL ES 2+ support for love 0.10.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-01-19 23:32:16 -04:00
parent 1253e3aae1
commit 1124612c1f
12 changed files with 181 additions and 43 deletions
+21 -1
View File
@@ -27,7 +27,8 @@
#include "common/Matrix.h"
// GLAD
#include "libraries/glad/gladfuncs.hpp"
//#include "libraries/glad/gladfuncs.hpp"
#include <gladf/gladfuncs.hpp>
// C++
#include <vector>
@@ -79,6 +80,11 @@ public:
VENDOR_MESA_SOFT, // Software renderer.
VENDOR_APPLE, // Software renderer.
VENDOR_MICROSOFT, // Software renderer.
VENDOR_IMGTEC,
VENDOR_ARM,
VENDOR_QUALCOMM,
VENDOR_BROADCOM,
VENDOR_VIVANTE,
VENDOR_UNKNOWN
};
@@ -242,6 +248,17 @@ public:
**/
BlendState getBlendState() const;
/**
* This will usually be 0 (system drawable), but some platforms require a
* non-zero FBO for rendering.
**/
GLuint getDefaultFBO() const;
/**
* Gets the ID for love's default texture (used for "untextured" primitives.)
**/
GLuint getDefaultTexture() const;
/**
* Helper for setting the active texture unit.
*
@@ -336,6 +353,9 @@ private:
Viewport viewport;
Viewport scissor;
GLuint defaultFBO;
GLuint defaultTexture;
BlendState blend;
// The last ID value used for pseudo-instancing.