Module Osg.Fog


module Fog: sig .. end
Fog - encapsulates OpenGL fog state.

type t 
osg::Fog holder

type mode =
| LINEAR (*= GL_LINEAR*)
| EXP (*= GL_EXP*)
| EXP2 (*= GL_EXP2*)

type fog_coordinate_source =
| FOG_COORDINATE (*= GL_FOG_COORDINATE*)
| FRAGMENT_DEPTH (*= GL_FRAGMENT_DEPTH*)
val create' : unit -> t
val to_state_attribute : t -> Osg.State_attribute.t
val set_mode : t -> mode -> unit
val set_fog_coordinate_source : t -> fog_coordinate_source -> unit
val set_density : t -> float -> unit
val set_start : t -> float -> unit
val set_end : t -> float -> unit
val set_color : t -> Osg.Vec4.t -> unit
val create : ?mode:mode ->
?fog_coordinate_source:fog_coordinate_source ->
?density:float ->
?start:float ->
?end_:float -> ?color:Osg.Vec4.t -> unit -> Osg.State_attribute.t
val labl_create : ?mode:mode ->
?fog_coordinate_source:fog_coordinate_source ->
?density:float ->
?start:float -> ?end_:float -> ?color:Osg.Vec4.t -> unit -> t