• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java TesselatorVertexState类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.minecraft.client.shader.TesselatorVertexState的典型用法代码示例。如果您正苦于以下问题:Java TesselatorVertexState类的具体用法?Java TesselatorVertexState怎么用?Java TesselatorVertexState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TesselatorVertexState类属于net.minecraft.client.shader包,在下文中一共展示了TesselatorVertexState类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getVertexState

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
public TesselatorVertexState getVertexState(float p_147564_1_, float p_147564_2_, float p_147564_3_)
{
	;
	;
	;
	;
	int[] aint = new int[this.rawBufferIndex];
	PriorityQueue priorityqueue = new PriorityQueue(this.rawBufferIndex, new QuadComparator(this.rawBuffer, p_147564_1_ + (float)this.xOffset, p_147564_2_ + (float)this.yOffset, p_147564_3_ + (float)this.zOffset));
	byte b0 = 32;
	for (int i = 0; i < this.rawBufferIndex; i += b0) {
		priorityqueue.add(Integer.valueOf(i));
	}
	for (int i = 0; !priorityqueue.isEmpty(); i += b0)
	{
		int j = ((Integer)priorityqueue.remove()).intValue();
		for (int k = 0; k < b0; k++) {
			aint[(i + k)] = this.rawBuffer[(j + k)];
		}
	}
	System.arraycopy(aint, 0, this.rawBuffer, 0, aint.length);
	return new TesselatorVertexState(aint, this.rawBufferIndex, this.vertexCount, this.hasTexture, this.hasBrightness, this.hasNormals, this.hasColor);
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:23,代码来源:Tessellator.java


示例2: setVertexState

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
public void setVertexState(TesselatorVertexState p_147565_1_)
{
	;
	;
	while ((p_147565_1_.getRawBuffer().length > this.rawBufferSize) && (this.rawBufferSize > 0)) {
		this.rawBufferSize <<= 1;
	}
	if (this.rawBufferSize > this.rawBuffer.length) {
		this.rawBuffer = new int[this.rawBufferSize];
	}
	System.arraycopy(p_147565_1_.getRawBuffer(), 0, this.rawBuffer, 0, p_147565_1_.getRawBuffer().length);
	this.rawBufferIndex = p_147565_1_.getRawBufferIndex();
	this.vertexCount = p_147565_1_.getVertexCount();
	this.hasTexture = p_147565_1_.getHasTexture();
	this.hasBrightness = p_147565_1_.getHasBrightness();
	this.hasColor = p_147565_1_.getHasColor();
	this.hasNormals = p_147565_1_.getHasNormals();
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:19,代码来源:Tessellator.java


示例3: getVertexState

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
public TesselatorVertexState getVertexState(float p_147564_1_, float p_147564_2_, float p_147564_3_)
{
    int[] aint = new int[this.rawBufferIndex];
    PriorityQueue priorityqueue = new PriorityQueue(this.rawBufferIndex, new QuadComparator(this.rawBuffer, p_147564_1_ + (float)this.xOffset, p_147564_2_ + (float)this.yOffset, p_147564_3_ + (float)this.zOffset));
    byte b0 = 32;
    int i;

    for (i = 0; i < this.rawBufferIndex; i += b0)
    {
        priorityqueue.add(Integer.valueOf(i));
    }

    for (i = 0; !priorityqueue.isEmpty(); i += b0)
    {
        int j = ((Integer)priorityqueue.remove()).intValue();

        for (int k = 0; k < b0; ++k)
        {
            aint[i + k] = this.rawBuffer[j + k];
        }
    }

    System.arraycopy(aint, 0, this.rawBuffer, 0, aint.length);
    return new TesselatorVertexState(aint, this.rawBufferIndex, this.vertexCount, this.hasTexture, this.hasBrightness, this.hasNormals, this.hasColor);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:26,代码来源:Tessellator.java


示例4: setVertexState

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
public void setVertexState(TesselatorVertexState p_147565_1_)
{
    while (p_147565_1_.getRawBuffer().length > rawBufferSize && rawBufferSize > 0)
    {
        rawBufferSize <<= 1;
    }
    if (rawBufferSize > rawBuffer.length)
    {
        rawBuffer = new int[rawBufferSize];
    }
    System.arraycopy(p_147565_1_.getRawBuffer(), 0, this.rawBuffer, 0, p_147565_1_.getRawBuffer().length);
    this.rawBufferIndex = p_147565_1_.getRawBufferIndex();
    this.vertexCount = p_147565_1_.getVertexCount();
    this.hasTexture = p_147565_1_.getHasTexture();
    this.hasBrightness = p_147565_1_.getHasBrightness();
    this.hasColor = p_147565_1_.getHasColor();
    this.hasNormals = p_147565_1_.getHasNormals();
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:19,代码来源:Tessellator.java


示例5: getVertexState

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
public TesselatorVertexState getVertexState(float p_147564_1_, float p_147564_2_, float p_147564_3_)
{
    if (this.rawBufferIndex < 1)
    {
        return null;
    }
    else
    {
        int[] var4 = new int[this.rawBufferIndex];
        PriorityQueue var5 = new PriorityQueue(this.rawBufferIndex, new QuadComparator(this.rawBuffer, p_147564_1_ + (float)this.xOffset, p_147564_2_ + (float)this.yOffset, p_147564_3_ + (float)this.zOffset));
        byte var6 = 32;
        int var7;

        for (var7 = 0; var7 < this.rawBufferIndex; var7 += var6)
        {
            var5.add(Integer.valueOf(var7));
        }

        for (var7 = 0; !var5.isEmpty(); var7 += var6)
        {
            int var8 = ((Integer)var5.remove()).intValue();

            for (int var9 = 0; var9 < var6; ++var9)
            {
                var4[var7 + var9] = this.rawBuffer[var8 + var9];
            }
        }

        System.arraycopy(var4, 0, this.rawBuffer, 0, var4.length);
        return new TesselatorVertexState(var4, this.rawBufferIndex, this.vertexCount, this.hasTexture, this.hasBrightness, this.hasNormals, this.hasColor);
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:33,代码来源:Tessellator.java


示例6: setVertexState

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
public void setVertexState(TesselatorVertexState p_147565_1_)
{
    System.arraycopy(p_147565_1_.getRawBuffer(), 0, this.rawBuffer, 0, p_147565_1_.getRawBuffer().length);
    this.rawBufferIndex = p_147565_1_.getRawBufferIndex();
    this.vertexCount = p_147565_1_.getVertexCount();
    this.hasTexture = p_147565_1_.getHasTexture();
    this.hasBrightness = p_147565_1_.getHasBrightness();
    this.hasColor = p_147565_1_.getHasColor();
    this.hasNormals = p_147565_1_.getHasNormals();
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:11,代码来源:Tessellator.java


示例7: postRenderBlocksSmooth

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
protected void postRenderBlocksSmooth(int renderpass, EntityLivingBase entityLiving, boolean updateFinished)
{
    if (Config.isTranslucentBlocksFancy() && renderpass == 1 && !this.tempSkipRenderPass[renderpass])
    {
        TesselatorVertexState tsv = this.tessellator.getVertexState((float)entityLiving.posX, (float)entityLiving.posY, (float)entityLiving.posZ);

        if (this.tempVertexState == null)
        {
            this.tempVertexState = tsv;
        }
        else
        {
            this.tempVertexState.addTessellatorVertexState(tsv);
        }
    }

    this.bytesDrawn += this.tessellator.draw();
    this.tessellator.setRenderingChunk(false);

    if (!Config.isFastRender())
    {
        GL11.glPopMatrix();
    }

    GL11.glEndList();
    this.tessellator.setTranslation(0.0D, 0.0D, 0.0D);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:28,代码来源:WorldRendererSmooth.java


示例8: getVertexState

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
@Override
public TesselatorVertexState getVertexState(float x, float y, float z) {
    return tessellator.getVertexState(x, y, z);
}
 
开发者ID:InfinityRaider,项目名称:SteamPowerAdditions,代码行数:5,代码来源:TessellatorV2.java


示例9: setVertexState

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
@Override
public void setVertexState(TesselatorVertexState state) {
    tessellator.setVertexState(state);
}
 
开发者ID:InfinityRaider,项目名称:SteamPowerAdditions,代码行数:5,代码来源:TessellatorV2.java


示例10: sortQuads

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
public TesselatorVertexState sortQuads(float p_sortQuads_1_, float p_sortQuads_2_, float p_sortQuads_3_)
{
    return t.getVertexState(p_sortQuads_1_, p_sortQuads_2_, p_sortQuads_3_);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:5,代码来源:Tezzelator.java


示例11: restoreState

import net.minecraft.client.shader.TesselatorVertexState; //导入依赖的package包/类
public void restoreState(TesselatorVertexState p_restoreState_1_)
{
    t.setVertexState(p_restoreState_1_);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:5,代码来源:Tezzelator.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DetectedSourceRoot类代码示例发布时间:2022-05-23
下一篇:
Java POP类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap