android :: ANativeWindow :: defaultinit
android :: ANativeWindow :: set_buffers_geometry
Change the format and size of the window buffersandroid $ ANativeWindow :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
android :: ANativeWindow :: defaultinit
core :: Object :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).android :: ANativeWindow :: set_buffers_geometry
Change the format and size of the window buffers
# 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
lib/android/native_app_glue.nit:394,1--405,3