mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Make internal vertex attribute code less OpenGL-specific.
--HG-- branch : minor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user