Skip to content

Commit

Permalink
Merge pull request #771 from gucio321/set-fps
Browse files Browse the repository at this point in the history
master window: add SetFPS method
  • Loading branch information
gucio321 authored Feb 21, 2024
2 parents 304f0b9 + 5c87fe9 commit 9f81cc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MasterWindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ func (w *MasterWindow) SetBgColor(bgColor color.Color) {
w.backend.SetBgColor(w.clearColor)
}

// SetTargetFPS sets target FPS of master window.
// Default for GLFW is 30.
func (w *MasterWindow) SetTargetFPS(fps uint) {
w.backend.SetTargetFPS(fps)
}

// GetPos return position of master window.
func (w *MasterWindow) GetPos() (x, y int) {
var xResult, yResult int32
Expand Down

0 comments on commit 9f81cc2

Please sign in to comment.