Make internal vertex attribute code less OpenGL-specific.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-10-25 23:12:39 -03:00
parent b0c5bf2156
commit 15cc540e4c
28 changed files with 369 additions and 230 deletions
+2 -3
View File
@@ -32,6 +32,7 @@
#include "Quad.h"
#include "vertex.h"
#include "depthstencil.h"
#include "Resource.h"
// C
#include <stddef.h>
@@ -56,7 +57,7 @@ enum TextureType
* Base class for 2D textures. All textures can be drawn with Quads, have a
* width and height, and have filter and wrap modes.
**/
class Texture : public Drawable
class Texture : public Drawable, public Resource
{
public:
@@ -145,8 +146,6 @@ public:
Quad *getQuad() const;
virtual ptrdiff_t getHandle() const = 0;
static bool validateFilter(const Filter &f, bool mipmapsAllowed);
static int getMipmapCount(int w, int h);