当前位置: 首页>>代码示例>>Java>>正文


Java TextureUtil.deleteTexture方法代码示例

本文整理汇总了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();
            }
        }
    }
}
 
开发者ID:mchorse,项目名称:blockbuster,代码行数:24,代码来源:SubCommandModelClearCache.java

示例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();
}
 
开发者ID:iChun,项目名称:Tabula,代码行数:22,代码来源:EventHandler.java

示例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();
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:25,代码来源:ProjectInfo.java

示例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;
        }
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:28,代码来源:Framebuffer.java

示例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());
        }
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:Shaders.java

示例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;
        }
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:28,代码来源:Framebuffer.java

示例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;
        }
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:28,代码来源:Framebuffer.java

示例8: shutdown

import net.minecraft.client.renderer.texture.TextureUtil; //导入方法依赖的package包/类
@Override
public void shutdown()
{
    if(imageId != -1)
    {
        TextureUtil.deleteTexture(imageId);
    }
}
 
开发者ID:iChun,项目名称:Tabula,代码行数:9,代码来源:WindowTexture.java


注:本文中的net.minecraft.client.renderer.texture.TextureUtil.deleteTexture方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。