Commit 42e0e9af authored by Philip Trettner's avatar Philip Trettner

removed 1D vectors

parent af31c1cc
......@@ -137,12 +137,6 @@ struct uniform<float[]> : uniform_base
// non-array types
#define GLOW_IMPL_COMP_UNIFORM_NO_ARRAY(ns, type, base_type, gl_type, uniform_suffix) \
template <> \
struct uniform<ns::type##1> : uniform_base \
{ \
uniform(UsedProgram& prog, std::string_view name) : uniform_base(prog, name, 1, GL_##gl_type) {} \
void operator=(ns::type##1 const& v) const { glUniform##1##uniform_suffix(location, v.TG_IMPL_MEMBER(base_type, 0)); } \
}; \
template <> \
struct uniform<ns::type##2> : uniform_base \
{ \
......@@ -175,15 +169,6 @@ struct uniform<float[]> : uniform_base
#define GLOW_IMPL_COMP_UNIFORM(ns, type, base_type, gl_type, uniform_suffix, c_type) \
GLOW_IMPL_COMP_UNIFORM_NO_ARRAY(ns, type, base_type, gl_type, uniform_suffix); \
template <> \
struct uniform<ns::type##1 []> : uniform_base \
{ \
uniform(UsedProgram& prog, std::string_view name) : uniform_base(prog, name, -1, GL_##gl_type) {} \
void operator=(array_view<const ns::type##1> v) const \
{ \
glUniform##1##uniform_suffix##v(location, int(v.size()), reinterpret_cast<c_type const*>(v.data())); \
} \
}; \
template <> \
struct uniform<ns::type##2 []> : uniform_base \
{ \
uniform(UsedProgram& prog, std::string_view name) : uniform_base(prog, name, -1, GL_##gl_type##_VEC2) {} \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment