// global.c++   - A number of simple general definitions
//   and global variables
//  Define EXTERN to be blank and read global variables
//    Then define some global variables
#define EXTERN /* this sets EXTERN to blank, reads as not external*/ 
#include "screen.h"


void defglob(){
   whitev[0]=whitev[1]=whitev[2]=1.0;
   blackv[0]=blackv[1]=blackv[2]=0.0;
   redv[0]=1.0;redv[1]=redv[2]=0.0;
   greenv[0]=greenv[2]=0.0;greenv[1]=1.0;
   bluev[0]=bluev[1]=0.0;bluev[2]=1.0;
   lightbluev[0]=0.0;lightbluev[1]=0.78;lightbluev[2]=1.0;
   yellowv[0]=yellowv[1]=1.0;yellowv[2]=0.0;
   pinkv[0]=1.0;pinkv[1]=pinkv[2]=0.4;
   cyanv[0]=0.0;cyanv[1]=cyanv[2]=1.0;
   mycolor1[0]=0.5;mycolor1[1]=0.5;mycolor1[2]=0.5;
   mycolor2[0]=0.5;mycolor2[1]=0.5;mycolor2[2]=1.0;
   mycolor3[0]=0.5;mycolor3[1]=1.0;mycolor3[2]=0.5;
   mycolor4[0]=1.0;mycolor4[1]=1.0;mycolor4[2]=0.5;
   mycolor5[0]=1.0;mycolor5[1]=0.5;mycolor5[2]=1.0;
   mycolor6[0]=0.5;mycolor6[1]=1.0;mycolor6[2]=1.0;
   magentav[0]=magentav[2]=1.0;magentav[1]=0.0;
}


void mycolor(GLfloat vec[3])  // sets color to vec value
{
   glColor3f(vec[0],vec[1],vec[2]);
}

