| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //go:build js
- // +build js
- package glfw
- var hints = make(map[Hint]int)
- type Hint int
- const (
- AlphaBits Hint = iota
- DepthBits
- StencilBits
- Samples
- Focused
- Iconified
- Maximized
- Visible
- Hovered
- Resizable
- Decorated
- Floating
- AutoIconify
- CenterCursor
- TransparentFramebuffer
- FocusOnShow
- ScaleToMonitor
- ClientAPI
- ContextVersionMajor
- ContextVersionMinor
- ContextRobustness
- ContextReleaseBehavior
- OpenGLForwardCompatible
- OpenGLDebugContext
- OpenGLProfile
- // goxjs/glfw-specific hints for WebGL.
- PremultipliedAlpha
- PreserveDrawingBuffer
- PreferLowPowerToHighPerformance
- FailIfMajorPerformanceCaveat
- )
- func WindowHint(target Hint, hint int) {
- hints[target] = hint
- }
|