Documentation ¶
Overview ¶
Package debugtools provides structures to aid in development debugging of graphical programs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugMouseRelease ¶
DebugMouseRelease will print the position and button pressed of the mouse when the mouse is released, if the given key is held down at the time. If no key is given, it will always be printed
func EnumerateDebugRenderableKeys ¶
func EnumerateDebugRenderableKeys() []string
EnumerateDebugRenderableKeys lists all registered renderables by key. It does not check to see if the associated renderables are still valid in any respect.
func GetDebugRenderable ¶
func GetDebugRenderable(rName string) (render.Renderable, bool)
GetDebugRenderable returns whatever renderable is stored under the input string, if any.
func SetDebugRenderable ¶
func SetDebugRenderable(rName string, r render.Renderable)
SetDebugRenderable stores a renderable under a name in a package global map. this is used by some built in debugConsole helper functions.
Types ¶
type Rtree ¶
type Rtree struct { *collision.Tree Thickness int render.LayeredPoint OutlineColor color.RGBA ColorMap map[collision.Label]color.RGBA DrawDisabled bool Context *scene.Context }
An Rtree wraps around a collision tree and can draw debug rectangles for every entity in the tree.
func NewThickColoredRTree ¶
func NewThickColoredRTree(ctx *scene.Context, t *collision.Tree, thickness int, colorMapping map[collision.Label]color.RGBA) *Rtree
NewThickColoredRTree creates a wrapper around tree that colors spaces up to a thickness based on a coloring map
func NewThickRTree ¶
NewThickRTree creates a wrapper around tree that colors spaces up to a thickness