/*********************** * Johnny Jetpack * by Paul Adam and Jamie Bradley * * drawfuel.c * * this file contains all the functions needed to place a fuel cans * in the game environment. *************************/ #include #include #include #include "johnny.h" void DrawFuelCan(int x, int y, int z) { glPushMatrix(); glTranslatef(x,y,z); glMaterialfv (GL_FRONT_AND_BACK, GL_DIFFUSE, green); glMaterialfv (GL_FRONT_AND_BACK, GL_AMBIENT, green); fuelcan_default(); glPopMatrix(); } void DrawFuelCans(int fuelcan[][6], int numfuelcans) { int i; for(i=0; i