v1.4
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#define UTILS_H
|
||||
|
||||
// Estructura para definir un circulo
|
||||
struct Circle
|
||||
struct circle_t
|
||||
{
|
||||
Uint16 x;
|
||||
Uint16 y;
|
||||
@@ -13,7 +13,7 @@ struct Circle
|
||||
};
|
||||
|
||||
// Estructura para definir todas las entradas que aceptará el programa
|
||||
struct Input
|
||||
struct input_t
|
||||
{
|
||||
Uint8 up;
|
||||
Uint8 down;
|
||||
@@ -29,7 +29,7 @@ struct Input
|
||||
};
|
||||
|
||||
// Estructura para mapear el teclado usado en la demo
|
||||
struct DemoKeys
|
||||
struct demoKeys_t
|
||||
{
|
||||
Uint8 left;
|
||||
Uint8 right;
|
||||
@@ -43,15 +43,12 @@ struct DemoKeys
|
||||
double distanceSquared(int x1, int y1, int x2, int y2);
|
||||
|
||||
// Detector de colisiones entre dos circulos
|
||||
bool checkCollision(Circle &a, Circle &b);
|
||||
bool checkCollision(circle_t &a, circle_t &b);
|
||||
|
||||
// Detector de colisiones entre un circulo y un rectangulo
|
||||
bool checkCollision(Circle &a, SDL_Rect &b);
|
||||
bool checkCollision(circle_t &a, SDL_Rect &b);
|
||||
|
||||
// Detector de colisiones entre un dos rectangulos
|
||||
bool checkCollision(SDL_Rect a, SDL_Rect b);
|
||||
|
||||
// Inicializa el vector con los valores del seno
|
||||
void initSin();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user