Merge pull request #384 from rocktavious/add-mul-matrix

Expose MultMatrix
This commit is contained in:
Milan Nikolic 2024-05-22 17:04:37 +02:00 committed by GitHub
commit b1a49c28b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,6 +90,12 @@ func Scalef(x float32, y float32, z float32) {
C.rlScalef(cx, cy, cz) C.rlScalef(cx, cy, cz)
} }
// MultMatrix - Multiply the current matrix by another matrix
func MultMatrix(m Matrix) {
f := MatrixToFloat(m)
C.rlMultMatrixf((*C.float)(&f[0]))
}
// Frustum . // Frustum .
func Frustum(left float64, right float64, bottom float64, top float64, znear float64, zfar float64) { func Frustum(left float64, right float64, bottom float64, top float64, znear float64, zfar float64) {
cleft := C.double(left) cleft := C.double(left)