#include "GridOverlay.h" #include GridOverlay::GridOverlay( double inAnchorX, double inAnchorY, double inWidth, double inHeight, int inNumCells, Color inColor ) : GUIComponentGL( inAnchorX, inAnchorY, inWidth, inHeight ), mNumCells( inNumCells ), mColor( inColor ) { } void GridOverlay::fireRedraw() { double cellWidth = mWidth / mNumCells; double cellHeight = mHeight / mNumCells; glColor4f( mColor.r, mColor.g, mColor.b, mColor.a ); glBegin( GL_LINES ); { for( int x=0; x