Commit d1f3993f authored by Janis Born's avatar Janis Born

add Uinform1ui, Uniform1uiControl

parent 131477ee
......@@ -55,6 +55,9 @@ protected:
};
typedef UniformControl<Uniform1i> Uniform1iControl;
#if (ACGL_OPENGL_VERSION >= 30)
typedef UniformControl<Uniform1ui> Uniform1uiControl;
#endif
typedef UniformControl<Uniform1f> Uniform1fControl;
typedef UniformControl<Uniform2f> Uniform2fControl;
typedef UniformControl<Uniform3f> Uniform3fControl;
......
......@@ -92,6 +92,20 @@ ACGL_SMARTPOINTER_TYPEDEFS(Uniform1i)
//=========================
#if (ACGL_OPENGL_VERSION >= 30)
class Uniform1ui : public UniformData<GLuint>, public Uniform
{
public:
Uniform1ui(void) : UniformData<GLuint>() {}
virtual ~Uniform1ui(void) {}
void apply(GLint _location) const { glUniform1ui(_location, mValue); }
};
ACGL_SMARTPOINTER_TYPEDEFS(Uniform1ui)
#endif
//=========================
class Uniform1f : public UniformData<GLfloat>, public Uniform
{
public:
......
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