Module Osg.Material


module Material: sig .. end
Material -- encapsulates OpenGL glMaterial state.

type t 
osg::Material holder

type face =
| FRONT
| BACK
| FRONT_AND_BACK

type color_mode =
| AMBIENT (*GL_AMBIENT*)
| DIFFUSE (*GL_DIFFUSE*)
| SPECULAR (*GL_SPECULAR*)
| EMISSION (*GL_EMISSION*)
| AMBIENT_AND_DIFFUSE (*GL_AMBIENT_AND_DIFFUSE*)
| OFF (*means that associated GLMode and Override is disabled*)
val create' : unit -> t
val to_state_attribute : t -> Osg.State_attribute.t
val set_color_mode : t -> color_mode -> unit
val set_ambient : t -> face -> Osg.Vec4.t -> unit
val set_diffuse : t -> face -> Osg.Vec4.t -> unit
val set_specular : t -> face -> Osg.Vec4.t -> unit
val set_emission : t -> face -> Osg.Vec4.t -> unit
val set_shininess : t -> face -> float -> unit
val set_transparency : t -> face -> float -> unit
val set_alpha : t -> face -> float -> unit
val create : ?color_mode:color_mode ->
?ambient:face * Osg.Vec4.t ->
?diffuse:face * Osg.Vec4.t ->
?specular:face * Osg.Vec4.t ->
?emission:face * Osg.Vec4.t ->
?shininess:face * float ->
?transparency:face * float ->
?alpha:face * float -> unit -> Osg.State_attribute.t
Simplified creation of material state attribute object.
val labl_create : ?color_mode:color_mode ->
?ambient:face * Osg.Vec4.t ->
?diffuse:face * Osg.Vec4.t ->
?specular:face * Osg.Vec4.t ->
?emission:face * Osg.Vec4.t ->
?shininess:face * float ->
?transparency:face * float ->
?alpha:face * float -> unit -> t
Simplified creation of material object.