package glfw-ocaml

  1. Overview
  2. Docs

Window hints. Use with windowHint like this:

windowHint ~hint:WindowHint.Maximized ~value:true windowHint ~hint:WindowHint.OpenGLProfile ~value:CoreProfile windowHint ~hint:WindowHint.RefreshRate ~value:(Some 60) windowHint ~hint:WindowHint.DepthBits ~value:None windowHint ~hint:WindowHint.X11ClassName ~value:"MyApplicationName"

type _ t =
  1. | Focused : bool t
  2. | Resizable : bool t
  3. | Visible : bool t
  4. | Decorated : bool t
  5. | AutoIconify : bool t
  6. | Floating : bool t
  7. | Maximized : bool t
  8. | CenterCursor : bool t
  9. | TransparentFramebuffer : bool t
  10. | FocusOnShow : bool t
  11. | RedBits : int option t
  12. | GreenBits : int option t
  13. | BlueBits : int option t
  14. | AlphaBits : int option t
  15. | DepthBits : int option t
  16. | StencilBits : int option t
  17. | AccumRedBits : int option t
  18. | AccumGreenBits : int option t
  19. | AccumBlueBits : int option t
  20. | AccumAlphaBits : int option t
  21. | AuxBuffers : int option t
  22. | Stereo : bool t
  23. | Samples : int option t
  24. | SrgbCapable : bool t
  25. | RefreshRate : int option t
  26. | DoubleBuffer : bool t
  27. | ClientApi : client_api t
  28. | ContextVersionMajor : int t
  29. | ContextVersionMinor : int t
  30. | ContextRobustness : context_robustness t
  31. | OpenGLForwardCompat : bool t
  32. | OpenGLDebugContext : bool t
  33. | OpenGLProfile : opengl_profile t
  34. | ContextReleaseBehavior : context_release_behavior t
  35. | ContextNoError : bool t
  36. | ContextCreationApi : context_creation_api t
  37. | ScaleToMonitor : bool t
  38. | CocoaRetinaFramebuffer : bool t
  39. | CocoaFrameName : string t
  40. | CocoaGraphicsSwitching : bool t
  41. | X11ClassName : string t
  42. | X11InstanceName : string t
OCaml

Innovation. Community. Security.