make GLMatrix::to_uniform() const

This commit is contained in:
josh committed 2012-09-16 12:39:42 -04:00
1 parent 932b0b55f6
commit ca50407d90
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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]);
}
+1 -1
View File
@@ -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();