示例#1
0
文件: camera.go 项目: pzsz/glutils
func (self *Camera) LoadModelview(m *v.Matrix4) {
	gl.MatrixMode(gl.MODELVIEW)

	fu := self.ModelviewMatrix.Mul(m)
	gl.LoadMatrixf(fu.ToArray32())
}
示例#2
0
文件: camera.go 项目: pzsz/glutils
func (self *Camera) LoadProjection() {
	gl.MatrixMode(gl.PROJECTION)
	gl.LoadMatrixf(self.ProjectionMatrix.ToArray32())
}