Пример #1
0
func (self *Camera) LoadModelview(m *v.Matrix4) {
	gl.MatrixMode(gl.MODELVIEW)

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