c->sheet = (randsheet*) malloc(sizeof(randsheet));
randsheet_create( c->sheet );
- glClearColor(0.0, 0.0, 0.0, 0.0);
-
clearbits = GL_COLOR_BUFFER_BIT;
glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
static void
randsheet_move( randsheet *rs, float rot )
{
- int i, j, index;
+ int index;
float tmp;
for( index = 0 ; index < numsquares; index++ )
{
- i = rs->xpos[ index ];
- j = rs->ypos[ index ];
switch( rs->direction[ index ] )
{
case 0: