|
|
@@ -278,10 +278,14 @@ func (w *glfwWindow) SwapBuffers() {
|
|
|
|
|
|
// Size returns this window size in screen coordinates
|
|
|
func (w *glfwWindow) Size() (width int, height int) {
|
|
|
-
|
|
|
return w.win.GetSize()
|
|
|
}
|
|
|
|
|
|
+// FramebufferSize returns framebuffer size of this window
|
|
|
+func (w *glfwWindow) FramebufferSize() (width int, height int) {
|
|
|
+ return w.win.GetFramebufferSize()
|
|
|
+}
|
|
|
+
|
|
|
// SetSize sets the size, in screen coordinates, of the client area of this window
|
|
|
func (w *glfwWindow) SetSize(width int, height int) {
|
|
|
|