public boolean update(BlockSlice slice) {
if (!changed) {
return false;
}
for (int pass = 0; pass < 2; pass++) {
if (glDisplayList[pass] < 0) {
glDisplayList[pass] = GLAllocation.generateDisplayLists(1);
}
GL11.glPushMatrix();
GL11.glNewList(glDisplayList[pass], GL11.GL_COMPILE);
if (slice.sculpture.needRenderPass(pass)) {
build(slice, pass);
}
GL11.glEndList();
GL11.glPopMatrix();
}
changed = false;
return true;
}
SculptureRenderCompiler.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:DaVincing
作者:
评论列表
文章目录