Esempio n. 1
0
//	Sets all values in this 3x3 matrix (32-bit) from the specified 3x3 matrix (64-bit).
func (me *GlMat3) Load(mat *unum.Mat3) {
	me[0], me[3], me[6] = gl.Float(mat[0]), gl.Float(mat[3]), gl.Float(mat[6])
	me[1], me[4], me[7] = gl.Float(mat[1]), gl.Float(mat[4]), gl.Float(mat[7])
	me[2], me[5], me[8] = gl.Float(mat[2]), gl.Float(mat[5]), gl.Float(mat[8])
}
Esempio n. 2
0
//	Sets all values in this 4x4 matrix (32-bit) from the specified 4x4 matrix (64-bit).
func (me *GlMat4) Load(mat *unum.Mat4) {
	me[0], me[4], me[8], me[12] = gl.Float(mat[0]), gl.Float(mat[4]), gl.Float(mat[8]), gl.Float(mat[12])
	me[1], me[5], me[9], me[13] = gl.Float(mat[1]), gl.Float(mat[5]), gl.Float(mat[9]), gl.Float(mat[13])
	me[2], me[6], me[10], me[14] = gl.Float(mat[2]), gl.Float(mat[6]), gl.Float(mat[10]), gl.Float(mat[14])
	me[3], me[7], me[11], me[15] = gl.Float(mat[3]), gl.Float(mat[7]), gl.Float(mat[11]), gl.Float(mat[15])
}
Esempio n. 3
0
func (me *FxProc) SetMixWeight(weight float64) {
	me.weight = gl.Float(weight)
}