ext/view.c
void Init_ray_view() {
  ray_cView = rb_define_class_under(ray_mRay, "View", rb_cObject);
  rb_define_alloc_func(ray_cView, ray_view_alloc);
  rb_define_method(ray_cView, "initialize", ray_view_init, -1);
  rb_define_method(ray_cView, "initialize_copy", ray_view_init_copy, 1);

  rb_define_method(ray_cView, "size", ray_view_size, 0);
  rb_define_method(ray_cView, "size=", ray_view_set_size, 1);

  rb_define_method(ray_cView, "center", ray_view_center, 0);
  rb_define_method(ray_cView, "center=", ray_view_set_center, 1);

  rb_define_method(ray_cView, "viewport", ray_view_viewport, 0);
  rb_define_method(ray_cView, "viewport=", ray_view_set_viewport, 1);

  rb_define_method(ray_cView, "matrix", ray_view_matrix, 0);
  rb_define_method(ray_cView, "matrix=", ray_view_set_matrix, 1);
}
/*
 * Document-class: Ray::View
 *
 * A view is a way to apply some transformations to all the drawables at once,
 * by defining a projection. It also determines the region of the screen where
 * the view will draw.
 */
Document-class: Ray::View
A view is a way to apply some transformations to all the drawables at once,
by defining a projection. It also determines the region of the screen where
the view will draw.
Document - class : Ray :: View A view is a way to apply some transformations to all the drawables at once by defining a projection . It also determines the region of the screen where the view will draw .
void Init_ray_view() {
  ray_cView = rb_define_class_under(ray_mRay, "View", rb_cObject);
  rb_define_alloc_func(ray_cView, ray_view_alloc);
  rb_define_method(ray_cView, "initialize", ray_view_init, -1);
  rb_define_method(ray_cView, "initialize_copy", ray_view_init_copy, 1);
  rb_define_method(ray_cView, "size", ray_view_size, 0);
  rb_define_method(ray_cView, "size=", ray_view_set_size, 1);
  rb_define_method(ray_cView, "center", ray_view_center, 0);
  rb_define_method(ray_cView, "center=", ray_view_set_center, 1);
  rb_define_method(ray_cView, "viewport", ray_view_viewport, 0);
  rb_define_method(ray_cView, "viewport=", ray_view_set_viewport, 1);
  rb_define_method(ray_cView, "matrix", ray_view_matrix, 0);
  rb_define_method(ray_cView, "matrix=", ray_view_set_matrix, 1);
}
void Init_ray_view ( ) { ray_cView = rb_define_class_under ( ray_mRay , " " , rb_cObject ) ; rb_define_alloc_func ( ray_cView , ray_view_alloc ) ; rb_define_method ( ray_cView , " " , ray_view_init , -1 ) ; rb_define_method ( ray_cView , " " , ray_view_init_copy , 1 ) ; rb_define_method ( ray_cView , " " , ray_view_size , 0 ) ; rb_define_method ( ray_cView , " " , ray_view_set_size , 1 ) ; rb_define_method ( ray_cView , " " , ray_view_center , 0 ) ; rb_define_method ( ray_cView , " " , ray_view_set_center , 1 ) ; rb_define_method ( ray_cView , " " , ray_view_viewport , 0 ) ; rb_define_method ( ray_cView , " " , ray_view_set_viewport , 1 ) ; rb_define_method ( ray_cView , " " , ray_view_matrix , 0 ) ; rb_define_method ( ray_cView , " " , ray_view_set_matrix , 1 ) ; }
Document-class: Ray::View
 A view is a way to apply some transformations to all the drawables at once,
 by defining a projection.
Document - class : Ray :: View A view is a way to apply some transformations to all the drawables at once by defining a projection .