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
@@ -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();