Skip to content

Commit

Permalink
Merge pull request #384 from rocktavious/add-mul-matrix
Browse files Browse the repository at this point in the history
Expose MultMatrix
  • Loading branch information
gen2brain authored May 22, 2024
2 parents 7430a4e + 4a4f1ef commit b1a49c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions raylib/rlgl_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ func Scalef(x float32, y float32, z float32) {
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 .
func Frustum(left float64, right float64, bottom float64, top float64, znear float64, zfar float64) {
cleft := C.double(left)
Expand Down

0 comments on commit b1a49c2

Please sign in to comment.