GASimple MapEditor/drawing.cpp
void drawBox(float x1, float y1, float x2, float y2, const float colorin[], const float colorout[]) {
	glColor3fv(colorin);
	glBegin(GL_POLYGON);
	glVertex2f(x1, y1);
	glVertex2f(x2, y1);
	glVertex2f(x2, y2);
	glVertex2f(x1, y2);
	glEnd();
	glFlush();

	glColor3fv(colorout);
	glBegin(GL_LINE_LOOP);
	glVertex2f(x1, y1);
	glVertex2f(x2, y1);
	glVertex2f(x2, y2);
	glVertex2f(x1, y2);
	glEnd();
	glFlush();
}
/***
* This code was taken from Dr. Weiss's CSC300 Programs
* drawBox(float, float, float, float)
* - draws a rectangle with diagonal corners at (float, float)
* - and (float, float)
***/
This code was taken from Dr.
This code was taken from Dr .
void drawBox(float x1, float y1, float x2, float y2, const float colorin[], const float colorout[]) {
	glColor3fv(colorin);
	glBegin(GL_POLYGON);
	glVertex2f(x1, y1);
	glVertex2f(x2, y1);
	glVertex2f(x2, y2);
	glVertex2f(x1, y2);
	glEnd();
	glFlush();
	glColor3fv(colorout);
	glBegin(GL_LINE_LOOP);
	glVertex2f(x1, y1);
	glVertex2f(x2, y1);
	glVertex2f(x2, y2);
	glVertex2f(x1, y2);
	glEnd();
	glFlush();
}
void drawBox ( float x1 , float y1 , float x2 , float y2 , const float colorin [ ] , const float colorout [ ] ) { glColor3fv ( colorin ) ; glBegin ( GL_POLYGON ) ; glVertex2f ( x1 , y1 ) ; glVertex2f ( x2 , y1 ) ; glVertex2f ( x2 , y2 ) ; glVertex2f ( x1 , y2 ) ; glEnd ( ) ; glFlush ( ) ; glColor3fv ( colorout ) ; glBegin ( GL_LINE_LOOP ) ; glVertex2f ( x1 , y1 ) ; glVertex2f ( x2 , y1 ) ; glVertex2f ( x2 , y2 ) ; glVertex2f ( x1 , y2 ) ; glEnd ( ) ; glFlush ( ) ; }
This code was taken from Dr. Weiss's CSC300 Programs
drawBox(float, float, float, float)
 draws a rectangle with diagonal corners at (float, float)
 and (float, float)
This code was taken from Dr . Weiss ' s CSC300 Programs drawBox ( float float float float ) draws a rectangle with diagonal corners at ( float float ) and ( float float )