Files
Projet_Embarque_1ere/src/SPI.h
T

50 lines
826 B
C

/*
* SPI.h
*
* Created on: Apr 19, 2024
* Author: maxime.rohmer
*/
#ifndef SPI_H_
#define SPI_H_
typedef struct Color_t{
uint8_t Red;
uint8_t Green;
uint8_t Blue;
}Color;
typedef struct Point_t{
int X;
int Y;
}Point;
typedef struct Size_t{
int Width;
int Height;
}Size;
typedef struct Rect_t{
Point Position;
Size Size;
}Rectangle;
typedef struct Player_t{
Rectangle Hitbox;
int HP;
}Player;
typedef struct Obstacle_t{
Rectangle Hitbox;
}Obstacle;
void ILI9341_Initial(void);
void Draw_stars();
void Resize_Window(Rectangle area);
void Refresh_Area(Rectangle area,Obstacle *walls,int number_of_walls);
void DrawPlayer(Player player, Rectangle areaToDraw);
void DrawText(Point starting_point,char text[],Size charSize);
void Refresh_Player_Area(Rectangle area,Rectangle Hitbox);
#endif /* SPI_H_ */