Пример #1
0
void Asteroid::draw(){
    glMatrixMode( GL_MODELVIEW );		// Setup model transformations
    glPushMatrix();
    
    applyTrans();
    	
    drawPole(poles[0], xpos);
    drawPole(poles[1], ypos);
    drawPole(poles[2], xneg);
    drawPole(poles[3], yneg);
    drawPole(poles[4], zpos);
    drawPole(poles[5], zneg);
    
    glPopMatrix();
	glFlush();				// Flush OpenGL queue
           
}
Пример #2
0
void __fastcall TForm1::outTypeChange(TObject *Sender)
{ preview->Visible = 1 ;
  preview->updatePreviewBitmap() ;
  downTo(typeDeep[Form1->outType->ItemIndex]);
  applyTrans() ;
}