Module Osg.Geometry


module Geometry: sig .. end
Geometry is an instance of Osg.Drawable that abstracts out work with OpenGL vertex, normal, color, texture coordinate and other arrays, allows drawing in Osg.Geode with necessary Osg.State_set using Osg.Primitive_sets.

type t 
osg::Geometry holder.

type attribute_binding =
| BIND_OFF
| BIND_OVERALL
| BIND_PER_PRIMITIVE_SET
| BIND_PER_PRIMITIVE
| BIND_PER_VERTEX
val create' : unit -> t
val to_drawable : t -> Osg.Drawable.t
val set_vertex_array : t -> Osg.Osg_array.t -> unit
val set_vertex_array_vec3 : t -> Osg.Vec3_array.t -> unit
val set_normal_array : t -> Osg.Osg_array.t -> unit
val set_normal_array_vec3 : t -> Osg.Vec3_array.t -> unit
val set_normal_binding : t -> attribute_binding -> unit
val set_color_array : t -> Osg.Osg_array.t -> unit
val set_color_array_vec4 : t -> Osg.Vec4_array.t -> unit
val set_color_binding : t -> attribute_binding -> unit
val set_tex_coord_array : t -> int -> Osg.Osg_array.t -> unit
val set_tex_coord_array_vec3 : t -> int -> Osg.Vec3_array.t -> unit
val add_primitive_set : t -> Osg.Primitive_set.t -> unit
val create : ?vertex_array:Osg.Osg_array.t ->
?normal_array:Osg.Osg_array.t ->
?normal_binding:attribute_binding ->
?color_array:Osg.Osg_array.t ->
?color_binding:attribute_binding ->
?tex_coord_array:int * Osg.Osg_array.t ->
?primitive_sets:Osg.Primitive_set.t list -> unit -> Osg.Drawable.t
Simplified creation of geometry object, drawable returned.
val labl_create : ?vertex_array:Osg.Osg_array.t ->
?normal_array:Osg.Osg_array.t ->
?normal_binding:attribute_binding ->
?color_array:Osg.Osg_array.t ->
?color_binding:attribute_binding ->
?tex_coord_array:int * Osg.Osg_array.t ->
?primitive_sets:Osg.Primitive_set.t list -> unit -> t
Simplified creation of geometry object.