#ifndef OTHELLO_PLATEAU_H #define OTHELLO_PLATEAU_H 1 #include #include #include #include // Position d'un point x, y struct pos { GLuint x, y; }; typedef struct pos Pos; // Plateau struct table { GLuint width; GLuint height; int nb_row; int nb_columns; // TODO: Use Pos ? add center to the struct? // Need malloc for each struct int *lines; Uint32 color; }; typedef struct table Table; // Génère une structure de plateau Table *generate_table(GLuint width, GLuint height, Pos origin, Uint32 color); // Libère le plateau en mémoire void free_table(Table *table); /* Dessine le plateau */ void draw_table(Table *); #endif