perfgraph

package
v0.0.0-...-d6e8631 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2018 License: Zlib Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PerfGraph

type PerfGraph struct {
	// contains filtered or unexported fields
}

PerfGraph shows FPS counter on NanoVGo application

func NewPerfGraph

func NewPerfGraph(name, fontFace string) *PerfGraph

NewPerfGraph creates PerfGraph instance

func (*PerfGraph) GetGraphAverage

func (pg *PerfGraph) GetGraphAverage() float32

GetGraphAverage returns average value of graph.

func (*PerfGraph) RenderGraph

func (pg *PerfGraph) RenderGraph(ctx *nanovgo.Context, x, y float32)

RenderGraph shows graph

func (*PerfGraph) UpdateGraph

func (pg *PerfGraph) UpdateGraph() (timeFromStart, frameTime float32)

UpdateGraph updates timer it is needed to show graph

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL