Skip to content

Commit

Permalink
Merge pull request #441 from JupiterRider/SetBlendMode
Browse files Browse the repository at this point in the history
#437 take rl.BlendMode instead of int32
  • Loading branch information
gen2brain authored Oct 24, 2024
2 parents d4e03b2 + badf94c commit 20a76b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion raylib/rlgl_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func CheckErrors() {
}

// SetBlendMode - Set blending mode
func SetBlendMode(mode int32) {
func SetBlendMode(mode BlendMode) {
cmode := C.int(mode)
C.rlSetBlendMode(cmode)
}
Expand Down
4 changes: 2 additions & 2 deletions raylib/rlgl_purego.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ func CheckErrors() {
}

// SetBlendMode - Set blending mode
func SetBlendMode(mode int32) {
rlSetBlendMode(mode)
func SetBlendMode(mode BlendMode) {
rlSetBlendMode(int32(mode))
}

// SetBlendFactors - Set blending mode factor and equation (using OpenGL factors)
Expand Down

0 comments on commit 20a76b2

Please sign in to comment.