hint_wasm.go 677 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //go:build wasm
  2. package glfw
  3. var hints = make(map[Hint]int)
  4. type Hint int
  5. const (
  6. AlphaBits Hint = iota
  7. DepthBits
  8. StencilBits
  9. Samples
  10. Focused
  11. Iconified
  12. Maximized
  13. Visible
  14. Hovered
  15. Resizable
  16. Decorated
  17. Floating
  18. AutoIconify
  19. CenterCursor
  20. TransparentFramebuffer
  21. FocusOnShow
  22. ScaleToMonitor
  23. ClientAPI
  24. ContextVersionMajor
  25. ContextVersionMinor
  26. ContextRobustness
  27. ContextReleaseBehavior
  28. OpenGLForwardCompatible
  29. OpenGLDebugContext
  30. OpenGLProfile
  31. // goxjs/glfw-specific hints for WebGL.
  32. PremultipliedAlpha
  33. PreserveDrawingBuffer
  34. PreferLowPowerToHighPerformance
  35. FailIfMajorPerformanceCaveat
  36. )
  37. func WindowHint(target Hint, hint int) {
  38. hints[target] = hint
  39. }