make GLMatrix::to_uniform() const
This commit is contained in:
parent
932b0b55f6
commit
ca50407d90
@ -192,7 +192,7 @@ void GLMatrix::ortho(GLfloat left, GLfloat right,
|
||||
multiply(mult);
|
||||
}
|
||||
|
||||
void GLMatrix::to_uniform(GLint uniform)
|
||||
void GLMatrix::to_uniform(GLint uniform) const
|
||||
{
|
||||
glUniformMatrix4fv(uniform, 1, GL_FALSE, &m_mat[0][0]);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ class GLMatrix
|
||||
void ortho(GLfloat left, GLfloat right,
|
||||
GLfloat bottom, GLfloat top,
|
||||
GLfloat z_near, GLfloat z_far);
|
||||
void to_uniform(GLint uniform);
|
||||
void to_uniform(GLint uniform) const;
|
||||
|
||||
void push();
|
||||
void pop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user