public boolean update(BlockSlice slice){
if(glDisplayList != null && !changed)return false;
if(glDisplayList == null)glDisplayList = new int[]{-1,-1};
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
阅读 31
收藏 0
点赞 0
评论 0
项目:minepainter
作者:
评论列表
文章目录