Subversion Repositories DIN Is Noise

Rev

Rev 17 | Rev 964 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
* cross_button.cc
* DIN Is Noise is copyright (c) 2006-2017 Jagannathan Sampath
* For more information, please visit http://dinisnoise.org/
*/


#include "cross_button.h"
#include <fstream>
using namespace std;

void cross_button::draw () {
  glColor3f (clr.r, clr.g, clr.b);
  box<int>& e = extents;
  glBegin (GL_LINES);
    glVertex2i (e.left, e.bottom);
    glVertex2i (e.right, e.top);
    glVertex2i (e.left, e.top);
    glVertex2i (e.right, e.bottom);
  glEnd ();
}