Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
version = Tags.VERSION,
name = "UtilitiesInExcess",
acceptedMinecraftVersions = "[1.7.10]",
dependencies = "required-after:gtnhlib@[0.6.31,); after:ForgeMicroblock")
dependencies = "required-after:gtnhlib@[0.9.9,); after:ForgeMicroblock")
public class UtilitiesInExcess {

public static final String MODID = "utilitiesinexcess";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.fouristhenumber.utilitiesinexcess.render;

import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
Expand All @@ -10,21 +9,21 @@
import org.lwjgl.opengl.GL11;

import com.fouristhenumber.utilitiesinexcess.UtilitiesInExcess;
import com.gtnewhorizon.gtnhlib.client.renderer.TessellatorManager;
import com.gtnewhorizon.gtnhlib.client.renderer.DirectTessellator;
import com.gtnewhorizon.gtnhlib.client.renderer.postprocessing.shaders.UniversiumShader;
import com.gtnewhorizon.gtnhlib.client.renderer.shader.ShaderProgram;
import com.gtnewhorizon.gtnhlib.client.renderer.vbo.VertexBuffer;
import com.gtnewhorizon.gtnhlib.client.renderer.vertex.DefaultVertexFormat;
import com.gtnewhorizon.gtnhlib.client.renderer.vao.IVertexArrayObject;
import com.gtnewhorizon.gtnhlib.client.renderer.vao.VertexBufferType;

public class TESRUnderworldPortal extends TileEntitySpecialRenderer {

public static final IModelCustom FRAME = AdvancedModelLoader
.loadModel(new ResourceLocation(UtilitiesInExcess.MODID, "models/underworld_portal/frame.obj"));

private VertexBuffer core;
private IVertexArrayObject core;

private void initCoreVBO() {
Tessellator tessellator = TessellatorManager.startCapturingAndGet();
final DirectTessellator tessellator = DirectTessellator.startCapturing();

tessellator.startDrawingQuads();

Expand Down Expand Up @@ -60,7 +59,7 @@ private void initCoreVBO() {

tessellator.draw();

core = TessellatorManager.stopCapturingToVBO(DefaultVertexFormat.POSITION);
core = DirectTessellator.stopCapturingToVBO(VertexBufferType.IMMUTABLE);
}

@Override
Expand Down
Loading