ext/worldgen/heightmap.c
/**
 * Initialize the C side of things for a heightmap
 */
Initialize the C side of things for a heightmap
Initialize the C side of things for a heightmap
VALUE initialize_native(VALUE self, VALUE vsize) {
  int size = FIX2INT(vsize);
  int memsize = num_points(size) * sizeof(double);
  heightmap_points map = (heightmap_points)malloc(memsize);
  memset(map, 0, memsize);
  set_heights(self, map);
  return Qnil;
}
VALUE initialize_native ( VALUE self , VALUE vsize ) { int size = FIX2INT ( vsize ) ; int memsize = num_points ( size ) * sizeof ( double ) ; heightmap_points map = ( heightmap_points ) malloc ( memsize ) ; memset ( map , 0 , memsize ) ; set_heights ( self , map ) ; return Qnil ; }
Initialize the C side of things for a heightmap
Initialize the C side of things for a heightmap