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

Function SetGlobalScale

engo.go:311–317  ·  view source on GitHub ↗

SetGlobalScale sets the GlobalScale to the given dimensions. If either dimension is less than or equal to zero, GlobalScale is set to (1, 1).

(p Point)

Source from the content-addressed store, hash-verified

309// SetGlobalScale sets the GlobalScale to the given dimensions. If either dimension is
310// less than or equal to zero, GlobalScale is set to (1, 1).
311func SetGlobalScale(p Point) {
312 if p.X <= 0 || p.Y <= 0 {
313 opts.GlobalScale = Point{X: 1, Y: 1}
314 return
315 }
316 opts.GlobalScale = p
317}
318
319// GetTitle returns the title of the game.
320func GetTitle() string {

Callers 3

initializeFunction · 0.92
TestSetGlobalScaleFunction · 0.85
TestAxisMouseFunction · 0.85

Calls

no outgoing calls

Tested by 3

initializeFunction · 0.74
TestSetGlobalScaleFunction · 0.68
TestAxisMouseFunction · 0.68