package ocamlsdl2

  1. Overview
  2. Docs
type context = Sdlgl.context
val create_context : win:Sdlwindow.t -> context
val make_current : win:Sdlwindow.t -> ctx:context -> int
val unload_library : unit -> unit
val extension_supported : extension:string -> bool
val set_swap_interval : interval:int -> unit
val get_swap_interval : unit -> int
val swap_window : Sdlwindow.t -> unit
val delete_context : context -> unit
type gl_attr = Sdlgl.gl_attr =
  1. | GL_RED_SIZE
  2. | GL_GREEN_SIZE
  3. | GL_BLUE_SIZE
  4. | GL_ALPHA_SIZE
  5. | GL_BUFFER_SIZE
  6. | GL_DOUBLEBUFFER
  7. | GL_DEPTH_SIZE
  8. | GL_STENCIL_SIZE
  9. | GL_ACCUM_RED_SIZE
  10. | GL_ACCUM_GREEN_SIZE
  11. | GL_ACCUM_BLUE_SIZE
  12. | GL_ACCUM_ALPHA_SIZE
  13. | GL_STEREO
  14. | GL_MULTISAMPLEBUFFERS
  15. | GL_MULTISAMPLESAMPLES
  16. | GL_ACCELERATED_VISUAL
  17. | GL_RETAINED_BACKING
  18. | GL_CONTEXT_MAJOR_VERSION
  19. | GL_CONTEXT_MINOR_VERSION
  20. | GL_CONTEXT_EGL
  21. | GL_CONTEXT_FLAGS
  22. | GL_CONTEXT_PROFILE_MASK
  23. | GL_SHARE_WITH_CURRENT_CONTEXT
val set_attribute : gl_attr -> int -> unit
val get_attribute : gl_attr -> int
OCaml

Innovation. Community. Security.