我试图像时尚一样在网格中制作一组点,但一个点只出现在中间:我
private Point[][] sq = new Point[10][10];
@Override
public void onDrawFrame(GL10 gl) {
gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
gl.glLoadIdentity();
for(int x = 0; x< 10 ; x++){
for(int y = 0; y< 10 ; y++){
sq[x][y] = new Point(x/10,y/10);
gl.glTranslatef(0.0f, x/10,-5.0f);
sq[x][y].draw(gl, 0, 1, 0);
}
}