Module OcsfmlWindow.ContextSettings

module ContextSettings: sig .. end
Structure defining the settings of the OpenGL context attached to a window.

ContextSettings.t allows to define several advanced settings of the OpenGL context attached to a window.

All these settings have no impact on the regular SFML rendering (graphics module) -- except the anti-aliasing level, so you may need to use this structure only if you're using SFML as a windowing system for custom OpenGL rendering.

Please note that these values are only a hint. No failure will be reported if one or more of these values are not supported by the system; instead, SFML will try to find the closest valid match. You can then retrieve the settings that the window actually used to create its context, with window.get_settings.

type t = {
   depth_bits : int; (*Bits of the depth buffer.*)
   stencil_bits : int; (*Bits of the stencil buffer.*)
   antialising_level : int; (*Level of antialiasing.*)
   major_version : int; (*Major number of the context version to create.*)
   minor_version : int; (*Minor number of the context version to create.*)
}
val create : ?depth_bits:int ->
?stencil_bits:int ->
?antialising_level:int ->
?major_version:int ->
?minor_version:int -> unit -> t