MCPcopy Index your code
hub / github.com/g3n/engine / GetFramebufferSize

Method GetFramebufferSize

window/canvas.go:552–556  ·  view source on GitHub ↗

GetFramebufferSize returns the framebuffer size.

()

Source from the content-addressed store, hash-verified

550
551// GetFramebufferSize returns the framebuffer size.
552func (w *WebGlCanvas) GetFramebufferSize() (width int, height int) {
553
554 // TODO device pixel ratio
555 return w.canvas.Get("width").Int(), w.canvas.Get("height").Int()
556}
557
558// GetSize returns this window's size in screen coordinates.
559func (w *WebGlCanvas) GetSize() (width int, height int) {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected