OpenGL 2.1 is now required to use love.graphics (resolves issue #779.)

Removed love.graphics.isSupported("canvas", "shader", "npot", "subtractive", and "mipmap"), since those features are all guaranteed by the minimum system requirements.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2014-03-12 02:26:32 -03:00
parent a94637ef2b
commit caa61563cc
19 changed files with 247 additions and 559 deletions
+10 -4
View File
@@ -104,11 +104,16 @@ public:
OpenGL();
/**
* Initializes some required context state based on current and default
* OpenGL state. Call this directly after creating an OpenGL context!
* Initializes the active OpenGL context.
**/
void initContext();
/**
* Sets up some required context state based on current and default OpenGL
* state. Call this directly after initializing an OpenGL context!
**/
void setupContext();
/**
* Marks current context state as invalid and deletes OpenGL objects owned
* by this class instance. Call this directly before potentially deleting
@@ -214,9 +219,10 @@ public:
/**
* Sets the texture filter mode for the currently bound texture.
* Returns the actual amount of anisotropic filtering set.
* The anisotropy parameter of the argument is set to the actual amount of
* anisotropy that was used.
**/
float setTextureFilter(graphics::Texture::Filter &f);
void setTextureFilter(graphics::Texture::Filter &f);
/**
* Returns the texture filter mode for the currently bound texture.