Ejemplo n.º 1
0
void hud::render(void){
  glMatrixMode(GL_PROJECTION);							// Select The Projection Matrix
	glLoadIdentity();										      // Reset The Projection Matrix
	glOrtho(0.0f,(GLfloat)getwidth(),(GLfloat)getheight(),0.0f,-1.0f,1.0f);
	glMatrixMode(GL_MODELVIEW);								// Select The Modelview Matrix
	glLoadIdentity();										      // Reset The Modelview Matrix
  for(uint c=0;c<this->getchildren().size();c++){
    widget* w = this->getchildren()[c];
    w->render();
  }
  printinputline();
  glFlush();
}
Ejemplo n.º 2
0
int fgets1() { char c; c=*fgetsp;
  if (c==0) { printinputline(); if (DOS_NoBytes == 0) return 0;
    fgetsp=&fgetsdest; c=*fgetsp; spalte=0; }
  fgetsp++; spalte++;  return c; }