ext/gl_int_array.c
void Init_ray_int_array() {
  ray_cIntArray = rb_define_class_under(ray_mGL, "IntArray", rb_cObject);
  rb_define_alloc_func(ray_cIntArray, ray_int_array_alloc);
  rb_define_method(ray_cIntArray, "initialize", ray_int_array_init, -1);
  rb_define_method(ray_cIntArray, "initialize_copy", ray_int_array_init_copy,
                   1);

  rb_define_method(ray_cIntArray, "<<", ray_int_array_push, 1);

  rb_define_method(ray_cIntArray, "[]", ray_int_array_get, 1);
  rb_define_method(ray_cIntArray, "[]=", ray_int_array_set, 2);

  rb_define_method(ray_cIntArray, "size", ray_int_array_size, 0);

  rb_define_method(ray_cIntArray, "clear", ray_int_array_clear, 0);
}
/*
  DocumentClass: Ray::GL::IntArray

  Class used to send indices to OpenGL. It is not meant for any other use.
*/
:GL::IntArray
Class used to send indices to OpenGL. It is not meant for any other use.
: GL :: IntArray Class used to send indices to OpenGL . It is not meant for any other use .
void Init_ray_int_array() {
  ray_cIntArray = rb_define_class_under(ray_mGL, "IntArray", rb_cObject);
  rb_define_alloc_func(ray_cIntArray, ray_int_array_alloc);
  rb_define_method(ray_cIntArray, "initialize", ray_int_array_init, -1);
  rb_define_method(ray_cIntArray, "initialize_copy", ray_int_array_init_copy,
                   1);
  rb_define_method(ray_cIntArray, "<<", ray_int_array_push, 1);
  rb_define_method(ray_cIntArray, "[]", ray_int_array_get, 1);
  rb_define_method(ray_cIntArray, "[]=", ray_int_array_set, 2);
  rb_define_method(ray_cIntArray, "size", ray_int_array_size, 0);
  rb_define_method(ray_cIntArray, "clear", ray_int_array_clear, 0);
}
void Init_ray_int_array ( ) { ray_cIntArray = rb_define_class_under ( ray_mGL , " " , rb_cObject ) ; rb_define_alloc_func ( ray_cIntArray , ray_int_array_alloc ) ; rb_define_method ( ray_cIntArray , " " , ray_int_array_init , -1 ) ; rb_define_method ( ray_cIntArray , " " , ray_int_array_init_copy , 1 ) ; rb_define_method ( ray_cIntArray , " " , ray_int_array_push , 1 ) ; rb_define_method ( ray_cIntArray , " " , ray_int_array_get , 1 ) ; rb_define_method ( ray_cIntArray , " " , ray_int_array_set , 2 ) ; rb_define_method ( ray_cIntArray , " " , ray_int_array_size , 0 ) ; rb_define_method ( ray_cIntArray , " " , ray_int_array_clear , 0 ) ; }
DocumentClass: Ray::GL::IntArray
Class used to send indices to OpenGL.
DocumentClass : Ray :: GL :: IntArray Class used to send indices to OpenGL .