GetFramebufferSize returns the framebuffer size.
()
| 550 | |
| 551 | // GetFramebufferSize returns the framebuffer size. |
| 552 | func (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. |
| 559 | func (w *WebGlCanvas) GetSize() (width int, height int) { |