23 lines
320 B
C
23 lines
320 B
C
#include "main.h"
|
|
|
|
|
|
int width, height;
|
|
|
|
void create_map(int w, int h){
|
|
width = w;
|
|
height = h;
|
|
|
|
if (w != h){
|
|
printf("Error : Use generator_bis.c with square map (w=h=2n) \n");
|
|
}
|
|
|
|
float* height_map = malloc(sizeof(float)*width*height);
|
|
|
|
generate_height(height_map);
|
|
|
|
}
|
|
|
|
void generate_height(float* h_map){
|
|
|
|
}
|