started implementing dynamic widget allocation by xml tag

This commit is contained in:
2017-01-29 17:42:23 +00:00
parent 7436706b37
commit 16c1b6481e
10 changed files with 94 additions and 46 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#include "util.hpp"
class Shader
{
@@ -6,7 +7,19 @@ class Shader
public:
bool create(std::string vertex, std::string fragment);
void use();
void u_vec4(std::string name, const glm::vec4& v);
void u_mat4(std::string name, const glm::mat4& m);
void u_int(std::string name, int i);
void u_vec4(const char* name, const glm::vec4& v);
void u_mat4(const char* name, const glm::mat4& m);
void u_int(const char* name, int i);
};
enum class kShader : uint16_t
{
Color = const_hash("color"),
};
class ShaderManager
{
public:
static void use(kShader id);
static void use(const char* name);
};