MCPcopy
hub / github.com/EngoEngine/engo / CanvasScale

Function CanvasScale

engo_mobile_bind.go:69–71  ·  view source on GitHub ↗

CanvasScale is the current scale of the canvas from the original window size

()

Source from the content-addressed store, hash-verified

67
68// CanvasScale is the current scale of the canvas from the original window size
69func CanvasScale() float32 {
70 return CanvasWidth() / WindowWidth()
71}
72
73// DestroyWindow destroies the window.
74func DestroyWindow() { /* nothing to do here? */ }

Callers 4

PreMethod · 0.92
PrepareCullingMethod · 0.92
PreMethod · 0.92
PrepareCullingMethod · 0.92

Calls 2

CanvasWidthFunction · 0.70
WindowWidthFunction · 0.70

Tested by

no test coverage detected