本文整理汇总了Java中org.lwjgl.opengl.GL11.glDeleteLists方法的典型用法代码示例。如果您正苦于以下问题:Java GL11.glDeleteLists方法的具体用法?Java GL11.glDeleteLists怎么用?Java GL11.glDeleteLists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.GL11
的用法示例。
在下文中一共展示了GL11.glDeleteLists方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: renderChunk
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
private static void renderChunk(Chunk chunk) {
if (!chunk.isUpdate()) {
if (chunks.containsKey(chunk.getId())) GL11.glDeleteLists(chunks.get(chunk.getId()), 1);
else chunks.put(chunk.getId(), GL11.glGenLists(1));
GL11.glNewList(chunks.get(chunk.getId()), GL11.GL_COMPILE);
GL11.glBegin(GL11.GL_QUADS);
Block[][][] blocks = chunk.getBlocks();
for (int x = 0; x < 16; x++)
for (int y = 0; y < 32; y++)
for (int z = 0; z < 16; z++)
renderBlock(blocks[x][y][z], chunk.getLocation().clone().add(x, y, z));
GL11.glEnd();
GL11.glEndList();
chunk.setUpdate(true);
}
// Draw the chunk.
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glCullFace(GL11.GL_BACK);
GL11.glCallList(chunks.get(chunk.getId()));
GL11.glDisable(GL11.GL_CULL_FACE);
}
示例2: onDisable
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
@Override
public void onDisable()
{
wurst.events.remove(UpdateListener.class, this);
wurst.events.remove(RenderListener.class, this);
GL11.glDeleteLists(solidBox, 1);
solidBox = 0;
GL11.glDeleteLists(outlinedBox, 1);
outlinedBox = 0;
GL11.glDeleteLists(crossBox, 1);
crossBox = 0;
GL11.glDeleteLists(normalChests, 1);
normalChests = 0;
}
示例3: onDisable
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
@Override
public void onDisable()
{
wurst.events.remove(UpdateListener.class, this);
wurst.events.remove(RenderListener.class, this);
GL11.glDeleteLists(itemBox, 1);
itemBox = 0;
}
示例4: onDisable
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
@Override
public void onDisable()
{
wurst.events.remove(UpdateListener.class, this);
wurst.events.remove(RenderListener.class, this);
GL11.glDeleteLists(mobBox, 1);
mobBox = 0;
}
示例5: glDeleteLists
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
* @see org.newdawn.slick.opengl.renderer.SGL#glDeleteLists(int, int)
*/
public void glDeleteLists(int list, int count) {
GL11.glDeleteLists(list, count);
}
示例6: deleteDisplayLists
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static synchronized void deleteDisplayLists(int list, int range)
{
GL11.glDeleteLists(list, range);
}
示例7: glDeleteLists
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void glDeleteLists(int p_187449_0_, int p_187449_1_)
{
GL11.glDeleteLists(p_187449_0_, p_187449_1_);
}