Shaders can now handle objects

This commit is contained in:
Robert 2021-01-22 01:42:58 +01:00
parent 107e207a83
commit 7d3213166b
3 changed files with 44 additions and 2 deletions

View file

@ -15,6 +15,7 @@ namespace oglu
{
class Color;
class AbstractTexture;
class Transformable;
typedef std::shared_ptr<AbstractTexture> Texture;
@ -305,10 +306,32 @@ namespace oglu
*
* @param[in] location Location of the uniform
* @param[in] v0 Value to set the uniform to
* @param[in] ignoreAlpha Index of the texture unit
* @param[in] index Index of the texture unit
*/
void SetUniform(GLint location, const Texture& v0, GLbyte index = 0);
/**
* @brief Set uniform mat4.
*
* Sets the specified uniform to the transformation matrix of a
* Transformable object
*
* @param[in] name Name of the uniform
* @param[in] v0 Value to set the uniform to
*/
void SetUniform(const GLchar* name, Transformable& v0, GLboolean transpose = GL_FALSE);
/**
* @brief Set uniform mat4.
*
* Sets the specified uniform to the transformation matrix of a
* Transformable object
*
* @param[in] location Location of the uniform
* @param[in] v0 Value to set the uniform to
*/
void SetUniform(GLint location, Transformable& v0, GLboolean transpose = GL_FALSE);
/**
* @brief Set array of uniform float.
*