Merge pull request #441 from JupiterRider/SetBlendMode

#437 take rl.BlendMode instead of int32
This commit is contained in:
Milan Nikolic 2024-10-24 07:58:50 +02:00 committed by GitHub
commit 20a76b285d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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)