当生成地形时,我的程序在启动程序时并没有响应。 这是代码。我相信这是for循环。 Random Random = new Random();
int numberHeight = Random.nextInt(5);
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
GL11.g
我试图渲染地图,但不幸的是,只渲染了底部。 我想我在设置顶点和索引缓冲区时做错了什么。 这是我初始化顶点和索引缓冲区的部分:! // Initialize vertices and indices
SimpleVertex* vertices = new SimpleVertex[(dimension + 1) * (dimension + 1)];
WORD* indices = new W