app_gl.go 389 B

123456789101112131415
  1. //go:build !ci && !android && !ios && !mobile
  2. // +build !ci,!android,!ios,!mobile
  3. package app
  4. import (
  5. "fyne.io/fyne/v2"
  6. "fyne.io/fyne/v2/internal/driver/glfw"
  7. )
  8. // NewWithID returns a new app instance using the appropriate runtime driver.
  9. // The ID string should be globally unique to this app.
  10. func NewWithID(id string) fyne.App {
  11. return newAppWithDriver(glfw.NewGLDriver(), id)
  12. }