Discover Packages
github.com/vron/gioe
dui
package
Version:
v0.0.0-...-c4a1d86
Opens a new window with list of versions in this module.
Published: May 6, 2020
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package dui implements a UI usefull for debugging a 2D physics engine
Draw blocks and starts drawing for ever.
SetBounds sets the simulation region that should be shown.
SetMeasure registers a measure (if the string measure is new) or updates
an previously registered one that should be shown to the user.
func (ui *DUI ) SetShapes(shapes [][][3]v2d .Vec )
SetShapes uses copies the data provided and will use that for displaying. Not that
the argument will not be retained after the call returns. It is thus safe for the caller
to re-use the same buffer for multiple frames.
Source Files
¶
Directories
¶
Command example shows a simple example of using dui to display debug info for a 2D physics simulation.
Command example shows a simple example of using dui to display debug info for a 2D physics simulation.
Click to show internal directories.
Click to hide internal directories.