module Camera: sig
.. end
Camera - is a subclass of Transform which represents encapsulates the settings of a Camera.
type
t
val create' : unit -> t
val to_node : t -> Osg.Node.t
val to_group : t -> Osg.Group.t
val to_transform : t -> Osg.Transform.t
val to_cull_settings : t -> Osg.Cull_settings.t
cast to
Osg.Cull_settings
- WARNING - it keeps pointer to cull settings,
so if camera is garbage collected, you can get memory error
val get_projection_matrix : t -> Osg.Matrix.t
val get_view_matrix : t -> Osg.Matrix.t
val get_viewport : t -> Osg.Viewport.t
val set_projection_matrix : t -> Osg.Matrix.t -> unit
val set_view_matrix : t -> Osg.Matrix.t -> unit
val set_viewport : t -> Osg.Viewport.t -> unit
val gl_COLOR_BUFFER_BIT : int
val gl_DEPTH_BUFFER_BIT : int
val gl_ACCUM_BUFFER_BIT : int
val gl_STENCIL_BUFFER_BIT : int
val set_clear_mask : t -> int -> unit
Set the clear mask used in glClear().
Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT.
type
transform_order =
| |
PRE_MULTIPLY |
| |
POST_MULTIPLY |
val set_transform_order : t -> transform_order -> unit
val set_clear_color : t -> Osg.Vec4.t -> unit
val set_compute_near_far_mode : t -> Osg.Cull_settings.compute_near_far_mode -> unit
val set_reference_frame : t -> Osg.Transform.reference_frame -> unit
type
render_order =
| |
PRE_RENDER |
| |
NESTED_RENDER |
| |
POST_RENDER |
val set_render_order : t -> render_order -> unit
type
render_target_implementation =
| |
FRAME_BUFFER_OBJECT |
| |
PIXEL_BUFFER_RTT |
| |
PIXEL_BUFFER |
| |
FRAME_BUFFER |
| |
SEPARATE_WINDOW |
val set_render_target_implementation : t -> render_target_implementation -> unit
type
buffer_component =
| |
DEPTH_BUFFER |
| |
STENCIL_BUFFER |
| |
COLOR_BUFFER |
| |
COLOR_BUFFER0 |
| |
COLOR_BUFFER1 |
| |
COLOR_BUFFER2 |
| |
COLOR_BUFFER3 |
| |
COLOR_BUFFER4 |
| |
COLOR_BUFFER5 |
| |
COLOR_BUFFER6 |
| |
COLOR_BUFFER7 |
val attach_texture : t -> buffer_component -> Osg.Texture.t -> unit
val create : ?projection_matrix:Osg.Matrix.t ->
?view_matrix:Osg.Matrix.t ->
?viewport:Osg.Viewport.t ->
?clear_mask:int ->
?transform_order:transform_order ->
?clear_color:Osg.Vec4.t ->
?compute_near_far_mode:Osg.Cull_settings.compute_near_far_mode ->
?reference_frame:Osg.Transform.reference_frame ->
?render_order:render_order ->
?render_target_implementation:render_target_implementation ->
?textures:(buffer_component * Osg.Texture.t) list ->
?children:Osg.Node.t list -> unit -> Osg.Node.t
Simplified creation of camera, node returned.
val labl_create : ?projection_matrix:Osg.Matrix.t ->
?view_matrix:Osg.Matrix.t ->
?viewport:Osg.Viewport.t ->
?clear_mask:int ->
?transform_order:transform_order ->
?clear_color:Osg.Vec4.t ->
?compute_near_far_mode:Osg.Cull_settings.compute_near_far_mode ->
?reference_frame:Osg.Transform.reference_frame ->
?render_order:render_order ->
?render_target_implementation:render_target_implementation ->
?textures:(buffer_component * Osg.Texture.t) list ->
?children:Osg.Node.t list -> unit -> t
Simplified creation of camera