即時通訊創建一個遊戲,我的角色射中一顆子彈,並將與敵人相撞,這是在display()中繪製的。'刪除'在OpenGL中的四邊形
glPushMatrix();
glTranslatef(260, -180, 0.0);
e[0] = new Platform(0, 0, 0, 40, 40, 40, 40, 0, textures[17], 260, -180);
glPopMatrix();
一旦子彈與子彈相撞,我該如何去刪除/不繪製對象?我沒有在代碼之後提供一個關於如何去做的想法,謝謝!
你想在一個場景圖來看,再次。我已經詳細地告訴過你,OpenGL不能這樣工作:http://stackoverflow.com/questions/5264682/position-moving-2d-object-opengl/5266358#5266358 – datenwolf 2011-03-16 15:35:07