-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphics.h
29 lines (25 loc) · 1.05 KB
/
graphics.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* ____________________________________________________
|_| == Graphics Header == |_|
| You can find here all data struture and function |
| prototype of the graphical part of Cruxxade-2600. |
| |
|_ <=========> _|
|_|________________________________________________|_|
\ ,__,
\ (oo)____
(__) )\
||--|| *
*/
#ifndef GRAPHIX
#define GRAPHIX
#include <stdio.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include "logic.h"
void DrawOneHex(T_board board, SDL_Surface *screen, SDL_Surface *sprite, vect hex, int color);
void BlitWinner(SDL_Surface *sprite, SDL_Surface *screen, int *score);
vect GetOrigineHex(int size);
void BlitGameboard(T_board board, SDL_Surface* screen, SDL_Surface* sprite);
vect GetHexaCoor(T_board board, vect cursor);
void EraseBoard(int size, SDL_Surface* screen, SDL_Surface* sprite);
#endif