package oplot

  1. Overview
  2. Docs

Module Oplot.InternalSource

Plot objects

Sourceval has_anim : Plt.plot_object -> bool
Sourceval gllist_empty : unit -> Plt.gllist

Opengl rendering and interface

Sourcetype gl_handler =
  1. | SDL
  2. | GLUT
  3. | GTK
Sourceval set_default_gl : gl_handler -> unit
Sourceval init : unit -> unit

Set various rendering values to their defaults.

Sourceval get_mouse_x : unit -> int
Sourceval get_mouse_y : unit -> int
Sourceval set_mouse_x : int -> unit
Sourceval set_mouse_y : int -> unit
Sourceval get_window_height : unit -> int
Sourceval get_frame_length : unit -> int

Get the target frame duration in ms.

Sourceval set_frame_length : int -> unit
Sourceval gtk_mainloop : Plt.plot_object -> int
Sourceval gl_init : ?show:bool -> unit -> unit
Sourceval gl_resize : unit -> unit
Sourceval scale : float -> float

multiply by the GL_SCALE

Sourceval iscale : int -> int

multiply by the GL_SCALE and round

Sourceval set_line_width : ?dev:Plt.plot_device -> float -> unit
Sourceval set_point_size : ?dev:Plt.plot_device -> float -> unit
Sourceval get_light : unit -> bool
Sourceval toggle_light : unit -> unit

Toggle 3D lighting

Sourceval force_refresh : unit -> unit
Sourceval gl_mouse_motion : int -> int -> unit
Sourceval interrupt : unit -> unit

Low-level rendering

Sourceval latex_to_sdl : string -> int -> Sdlvideo.surface

Shell interaction with other programs

Sourceexception Shell_error of int * string
Sourceval oplot_dir : string

The directory shared by oplot and goplot for various assets

Sourceval has_latex : bool

Whether LaTeX is detected on the computer

Sourceval has_gs : bool

Whether gs ghostscript is detected on the computer

Sourceval pngalpha : unit -> bool

Whether gs supports the pngalpha device

Sourceval has_fig2dev : bool

Whether fig2dev is detected on the computer

Sourceval first_time : unit -> bool

Whether the $HOME/.oplot directory already exists