mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2025-12-14 17:55:10 -05:00
multiple inclide protection
This commit is contained in:
parent
21e373d1ec
commit
7de795a48f
@ -1,5 +1,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifndef COLOR
|
||||||
|
#define COLOR
|
||||||
|
|
||||||
#ifndef RED
|
#ifndef RED
|
||||||
#define RED 255,0,0,255
|
#define RED 255,0,0,255
|
||||||
#endif
|
#endif
|
||||||
@ -26,4 +29,5 @@ class Color {
|
|||||||
uint8_t r,g,b,a;
|
uint8_t r,g,b,a;
|
||||||
Color();
|
Color();
|
||||||
Color(uint8_t r,uint8_t g,uint8_t b,uint8_t a);
|
Color(uint8_t r,uint8_t g,uint8_t b,uint8_t a);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
@ -1,6 +1,9 @@
|
|||||||
|
#ifndef VECTOR
|
||||||
|
#define VECTOR
|
||||||
class Vector {
|
class Vector {
|
||||||
public:
|
public:
|
||||||
float x,y;
|
float x,y;
|
||||||
Vector();
|
Vector();
|
||||||
Vector(float x, float y);
|
Vector(float x, float y);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
Loading…
x
Reference in New Issue
Block a user