1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
//Definitions
#define CLR_BLACK3F color3f(0.0f, 0.0f, 0.0f) //Black
#define CLR_RED3F color3f(1.0f, 0.0f, 0.0f) //Red
#define CLR_GREEN3F color3f(0.0f, 1.0f, 0.0f) //Green
#define CLR_YELLOW3F color3f(1.0f, 1.0f, 0.0f) //Yellow
#define CLR_BLUE3F color3f(0.0f, 0.0f, 1.0f) //Blue
#define CLR_MAGENTA3F color3f(1.0f, 0.0f, 1.0f) //Magenta
#define CLR_CYAN3F color3f(0.0f, 1.0f, 1.0f) //Cyan
#define CLR_WHITE3F color3f(1.0f, 1.0f, 1.0f) //White
//Structures
struct color3f {
float red;
float green;
float blue;
color3f(float r, float g, float b):
red(r),green(g),blue(b){}
};
//Function prototypes
#pragma region twoDimensional
void drawLine2f(float x1, float y1, float x2, float y2, const color3f & color);
#pragma endregion twoDimensional
|