Skip to content

Commit

Permalink
Merge pull request #382 from JFAexe/cgo-waittime
Browse files Browse the repository at this point in the history
Add missing WaitTime
  • Loading branch information
gen2brain authored May 7, 2024
2 parents f406ea4 + 19429cd commit 0b93fbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions raylib/rcore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b93fbf

Please sign in to comment.