#437 take rl.BlendMode instead of int32

This commit is contained in:
JupiterRider 2024-10-23 21:36:14 +02:00
parent b7833eeae8
commit badf94c433
2 changed files with 3 additions and 3 deletions

View file

@ -454,7 +454,7 @@ func CheckErrors() {
} }
// SetBlendMode - Set blending mode // SetBlendMode - Set blending mode
func SetBlendMode(mode int32) { func SetBlendMode(mode BlendMode) {
cmode := C.int(mode) cmode := C.int(mode)
C.rlSetBlendMode(cmode) C.rlSetBlendMode(cmode)
} }

View file

@ -597,8 +597,8 @@ func CheckErrors() {
} }
// SetBlendMode - Set blending mode // SetBlendMode - Set blending mode
func SetBlendMode(mode int32) { func SetBlendMode(mode BlendMode) {
rlSetBlendMode(mode) rlSetBlendMode(int32(mode))
} }
// SetBlendFactors - Set blending mode factor and equation (using OpenGL factors) // SetBlendFactors - Set blending mode factor and equation (using OpenGL factors)