started implementing dynamic widget allocation by xml tag
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user