Example #1
0
func (self *Camera) LoadModelview(m *v.Matrix4) {
	gl.MatrixMode(gl.MODELVIEW)

	fu := self.ModelviewMatrix.Mul(m)
	gl.LoadMatrixf(fu.ToArray32())
}
Example #2
0
func (self *Camera) LoadProjection() {
	gl.MatrixMode(gl.PROJECTION)
	gl.LoadMatrixf(self.ProjectionMatrix.ToArray32())
}