Method: Ray::Window#resize

Defined in:
ext/window.c

#resize(size) ⇒ Object Also known as: size=

Resizes the window

Parameters:



104
105
106
107
108
109
110
111
112
# File 'ext/window.c', line 104

static
VALUE ray_window_resize(VALUE self, VALUE size) {
  say_vector2 c_size = ray_convert_to_vector2(size);
  if (!say_window_resize(ray_rb2window(self), c_size.x, c_size.y)) {
    rb_raise(rb_eRuntimeError, "%s", say_error_get_last());
  }

  return size;
}