From 2bf31f2fbe7631c05dd602bdcdee396ee58a933e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sun, 19 Apr 2015 09:34:46 -0400 Subject: [PATCH] lib/android: add ANativeWindow::set_buffers_geometry MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/android/native_app_glue.nit | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/android/native_app_glue.nit b/lib/android/native_app_glue.nit index 2202827..d99f5a9 100644 --- a/lib/android/native_app_glue.nit +++ b/lib/android/native_app_glue.nit @@ -368,4 +368,13 @@ end # Android NDK's structure to control the native window for drawing extern class ANativeWindow `{ ANativeWindow* `} + # Change the format and size of the window buffers + # + # All arguments can be set to 0 to use the default devices values. + # `width` and `height` must both be set to 0 or have significant values. + # + # `format` is a value specified by EGL. + fun set_buffers_geometry(width, height, format: Int): Bool `{ + return ANativeWindow_setBuffersGeometry(self, (int32_t)width, (int32_t)height, (int32_t)format); + `} end -- 1.7.9.5