Merge pull request #382 from JFAexe/cgo-waittime

Add missing WaitTime
This commit is contained in:
Milan Nikolic 2024-05-07 11:00:21 +02:00 committed by GitHub
commit 0b93fbfb6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -718,6 +718,12 @@ func PollInputEvents() {
C.PollInputEvents()
}
// WaitTime - Wait for some time (halt program execution)
func WaitTime(seconds float64) {
cseconds := (C.double)(seconds)
C.WaitTime(cseconds)
}
// Fade - Returns color with alpha applied, alpha goes from 0.0f to 1.0f
func Fade(col color.RGBA, alpha float32) color.RGBA {
ccolor := colorCptr(col)