#include "Console.h" #include void InitConsole(VConsole * c, VPlayer * p) { c->p = p; InitModel(&c->CockpitModel); BuildCockpitModel(&c->CockpitModel); } void CleanUpConsole(VConsole * c) { #pragma unused(c) } void DrawConsole(VConsole * c) { char string[16]; glDisable(GL_DEPTH_TEST); glPushMatrix(); glLoadIdentity(); DrawModel(&c->CockpitModel); glPushMatrix(); glTranslatef(-0.5, -1.0, -1.6); glScalef(2.0, 2.0, 2.0); glColor4f(1.0, 1.0, 1.0, 1.0); sprintf(string, "Rockets: %d", c->p->NumRockets); DrawCStringWithVectorFont(string); glPopMatrix(); glPushMatrix(); glTranslatef(-0.5, -0.94, -1.6); glScalef(2.0, 2.0, 2.0); glColor4f(1.0, 1.0, 1.0, 1.0); sprintf(string, "Shields: %d", c->p->Shields); DrawCStringWithVectorFont(string); glPopMatrix(); glPopMatrix(); glEnable(GL_DEPTH_TEST); }