mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Make internal vertex attribute code less OpenGL-specific.
--HG-- branch : minor
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "common/StringMap.h"
|
||||
#include "Texture.h"
|
||||
#include "ShaderStage.h"
|
||||
#include "Resource.h"
|
||||
|
||||
// STL
|
||||
#include <string>
|
||||
@@ -45,7 +46,7 @@ namespace graphics
|
||||
class Graphics;
|
||||
|
||||
// A GLSL shader
|
||||
class Shader : public Object
|
||||
class Shader : public Object, public Resource
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -185,8 +186,6 @@ public:
|
||||
void checkMainTextureType(TextureType textype, bool isDepthSampler) const;
|
||||
void checkMainTexture(Texture *texture) const;
|
||||
|
||||
virtual ptrdiff_t getHandle() const = 0;
|
||||
|
||||
static bool validate(ShaderStage *vertex, ShaderStage *pixel, std::string &err);
|
||||
|
||||
static bool initialize();
|
||||
|
||||
Reference in New Issue
Block a user