本文整理汇总了Java中net.minecraft.client.renderer.texture.TextureUtil.deleteTexture方法的典型用法代码示例。如果您正苦于以下问题:Java TextureUtil.deleteTexture方法的具体用法?Java TextureUtil.deleteTexture怎么用?Java TextureUtil.deleteTexture使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.client.renderer.texture.TextureUtil
的用法示例。
在下文中一共展示了TextureUtil.deleteTexture方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
@Override
public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException
{
TextureManager manager = Minecraft.getMinecraft().renderEngine;
Map<ResourceLocation, ITextureObject> map = getTextures(manager);
if (map != null)
{
Iterator<Map.Entry<ResourceLocation, ITextureObject>> it = map.entrySet().iterator();
while (it.hasNext())
{
Map.Entry<ResourceLocation, ITextureObject> entry = it.next();
if (entry.getKey().getResourceDomain().equals("blockbuster.actors") && entry.getValue() instanceof DynamicTexture)
{
TextureUtil.deleteTexture(entry.getValue().getGlTextureId());
it.remove();
}
}
}
}
示例2: onClientConnect
import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
@SubscribeEvent
public void onClientConnect(FMLNetworkEvent.ClientConnectedToServerEvent event)
{
ProjectHelper.projectParts.clear();
ProjectHelper.projectTextureParts.clear();
for(ProjectInfo proj : ProjectHelper.projects.values())
{
proj.destroy();
}
for(Integer id : ProjectHelper.projectTextureIDs.values())
{
TextureUtil.deleteTexture(id);
}
ProjectHelper.projects.clear();
ProjectHelper.projectTextures.clear();
ProjectHelper.projectTextureIDs.clear();
}
示例3: destroy
import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public void destroy()
{
if(model != null && !destroyed)
{
destroyed = true;
for(int i = model.cubes.size() - 1; i >= 0; i--)
{
model.removeCubeInfo(model.cubes.get(i));
}
model.rotationPoint.destroy();
model.rotationControls.destroy();
model.sizeControls.destroy();
if(bufferedTextureId != -1)
{
TextureUtil.deleteTexture(bufferedTextureId);
}
}
if(ghostModel != null)
{
ghostModel.destroy();
}
}
示例4: deleteFramebuffer
import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
public void deleteFramebuffer()
{
if (OpenGlHelper.isFramebufferEnabled())
{
this.unbindFramebufferTexture();
this.unbindFramebuffer();
if (this.depthBuffer > -1)
{
OpenGlHelper.glDeleteRenderbuffers(this.depthBuffer);
this.depthBuffer = -1;
}
if (this.framebufferTexture > -1)
{
TextureUtil.deleteTexture(this.framebufferTexture);
this.framebufferTexture = -1;
}
if (this.framebufferObject > -1)
{
OpenGlHelper.glBindFramebuffer(OpenGlHelper.GL_FRAMEBUFFER, 0);
OpenGlHelper.glDeleteFramebuffers(this.framebufferObject);
this.framebufferObject = -1;
}
}
}
示例5: deleteCustomTextures
import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
private static void deleteCustomTextures(CustomTexture[] cts)
{
if (cts != null)
{
for (int i = 0; i < cts.length; ++i)
{
CustomTexture customtexture = cts[i];
ITextureObject itextureobject = customtexture.getTexture();
TextureUtil.deleteTexture(itextureobject.getGlTextureId());
}
}
}
示例6: deleteFramebuffer
import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
public void deleteFramebuffer()
{
if (OpenGlHelper.isFramebufferEnabled())
{
this.unbindFramebufferTexture();
this.unbindFramebuffer();
if (this.depthBuffer > -1)
{
EXTFramebufferObject.glDeleteRenderbuffersEXT(this.depthBuffer);
this.depthBuffer = -1;
}
if (this.framebufferTexture > -1)
{
TextureUtil.deleteTexture(this.framebufferTexture);
this.framebufferTexture = -1;
}
if (this.framebufferObject > -1)
{
EXTFramebufferObject.glBindFramebufferEXT(36160, 0);
EXTFramebufferObject.glDeleteFramebuffersEXT(this.framebufferObject);
this.framebufferObject = -1;
}
}
}
示例7: deleteFramebuffer
import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
public void deleteFramebuffer()
{
if (OpenGlHelper.isFramebufferEnabled())
{
this.unbindFramebufferTexture();
this.unbindFramebuffer();
if (this.depthBuffer > -1)
{
OpenGlHelper.func_153184_g(this.depthBuffer);
this.depthBuffer = -1;
}
if (this.framebufferTexture > -1)
{
TextureUtil.deleteTexture(this.framebufferTexture);
this.framebufferTexture = -1;
}
if (this.framebufferObject > -1)
{
OpenGlHelper.func_153171_g(OpenGlHelper.field_153198_e, 0);
OpenGlHelper.func_153174_h(this.framebufferObject);
this.framebufferObject = -1;
}
}
}
示例8: shutdown
import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
@Override
public void shutdown()
{
if(imageId != -1)
{
TextureUtil.deleteTexture(imageId);
}
}