module Material: sig
.. end
Material -- encapsulates OpenGL
glMaterial
state.
type
t
type
face =
| |
FRONT |
| |
BACK |
| |
FRONT_AND_BACK |
type
color_mode =
| |
AMBIENT |
| |
DIFFUSE |
| |
SPECULAR |
| |
EMISSION |
| |
AMBIENT_AND_DIFFUSE |
| |
OFF |
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.