ext/drawable.c
static
VALUE ray_drawable_set_matrix_proc(VALUE self, VALUE val) {
  say_drawable *drawable = ray_rb2drawable(self);

  if (NIL_P(val))
    say_drawable_set_matrix_proc(drawable, NULL);
  else
    say_drawable_set_matrix_proc(drawable, ray_drawable_actual_matrix_proc);

  rb_iv_set(self, "@matrix_proc", val);
  return val;
}
/*
 * @overload matrix_proc=(val)
 *   Sets the proc used to generate matrices. When set to nil, disables
 *   custom proc. The proc is called with the drawable to generate a matrix
 *   for, and should return that matrix.
 *
 *   @param [Proc, nil] val
 */
@overload matrix_proc=(val)
Sets the proc used to generate matrices. When set to nil, disables
custom proc. The proc is called with the drawable to generate a matrix
for, and should return that matrix.

@param [Proc, nil] val
@overload matrix_proc = ( val ) Sets the proc used to generate matrices . When set to nil disables custom proc . The proc is called with the drawable to generate a matrix for and should return that matrix . @param [ Proc nil ] val
static
VALUE ray_drawable_set_matrix_proc(VALUE self, VALUE val) {
  say_drawable *drawable = ray_rb2drawable(self);
  if (NIL_P(val))
    say_drawable_set_matrix_proc(drawable, NULL);
  else
    say_drawable_set_matrix_proc(drawable, ray_drawable_actual_matrix_proc);
  rb_iv_set(self, "@matrix_proc", val);
  return val;
}
static VALUE ray_drawable_set_matrix_proc ( VALUE self , VALUE val ) { say_drawable * drawable = ray_rb2drawable ( self ) ; if ( NIL_P ( val ) ) say_drawable_set_matrix_proc ( drawable , NULL ) ; else say_drawable_set_matrix_proc ( drawable , ray_drawable_actual_matrix_proc ) ; rb_iv_set ( self , " " , val ) ; return val ; }
@overload matrix_proc=(val)
   Sets the proc used to generate matrices.
@overload matrix_proc = ( val ) Sets the proc used to generate matrices .