Move backend

This commit is contained in:
JozsefA 2021-05-01 16:32:09 -07:00
parent 2e16b85190
commit 67e75d747a
236 changed files with 580 additions and 580 deletions

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend; package com.jozufozu.flywheel.backend;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -8,13 +8,13 @@ import org.apache.logging.log4j.Logger;
import org.lwjgl.opengl.GL; import org.lwjgl.opengl.GL;
import org.lwjgl.opengl.GLCapabilities; import org.lwjgl.opengl.GLCapabilities;
import com.jozufozu.flywheel.backend.effects.EffectsHandler;
import com.jozufozu.flywheel.backend.gl.shader.GlProgram;
import com.jozufozu.flywheel.backend.gl.shader.IMultiProgram;
import com.jozufozu.flywheel.backend.gl.shader.ProgramSpec;
import com.jozufozu.flywheel.backend.gl.versioned.GlCompat;
import com.jozufozu.flywheel.backend.instancing.IFlywheelWorld;
import com.simibubi.create.foundation.config.AllConfigs; import com.simibubi.create.foundation.config.AllConfigs;
import com.simibubi.create.foundation.render.backend.effects.EffectsHandler;
import com.simibubi.create.foundation.render.backend.gl.shader.GlProgram;
import com.simibubi.create.foundation.render.backend.gl.shader.IMultiProgram;
import com.simibubi.create.foundation.render.backend.gl.shader.ProgramSpec;
import com.simibubi.create.foundation.render.backend.gl.versioned.GlCompat;
import com.simibubi.create.foundation.render.backend.instancing.IFlywheelWorld;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.resources.IReloadableResourceManager; import net.minecraft.resources.IReloadableResourceManager;

View file

@ -1,13 +1,13 @@
package com.simibubi.create.foundation.render.backend; package com.jozufozu.flywheel.backend;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import org.lwjgl.opengl.GL15; import org.lwjgl.opengl.GL15;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import com.jozufozu.flywheel.backend.gl.GlBuffer;
import com.jozufozu.flywheel.backend.gl.attrib.VertexFormat;
import com.simibubi.create.foundation.render.TemplateBuffer; import com.simibubi.create.foundation.render.TemplateBuffer;
import com.simibubi.create.foundation.render.backend.gl.GlBuffer;
import com.simibubi.create.foundation.render.backend.gl.attrib.VertexFormat;
import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.BufferBuilder;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend; package com.jozufozu.flywheel.backend;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;

View file

@ -1,6 +1,6 @@
package com.simibubi.create.foundation.render.backend; package com.jozufozu.flywheel.backend;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
public class MaterialType<M extends InstancedModel<?>> { public class MaterialType<M extends InstancedModel<?>> {

View file

@ -0,0 +1,10 @@
package com.jozufozu.flywheel.backend;
import com.jozufozu.flywheel.backend.core.ModelData;
import com.jozufozu.flywheel.backend.core.OrientedData;
import com.jozufozu.flywheel.backend.instancing.InstancedModel;
public class MaterialTypes {
public static final MaterialType<InstancedModel<ModelData>> TRANSFORMED = new MaterialType<>();
public static final MaterialType<InstancedModel<OrientedData>> ORIENTED = new MaterialType<>();
}

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend; package com.jozufozu.flywheel.backend;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.File; import java.io.File;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend; package com.jozufozu.flywheel.backend;
import java.util.function.Supplier; import java.util.function.Supplier;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend; package com.jozufozu.flywheel.backend;
import java.util.Queue; import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.ConcurrentLinkedQueue;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend; package com.jozufozu.flywheel.backend;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.FileInputStream; import java.io.FileInputStream;
@ -25,14 +25,14 @@ import java.util.stream.Stream;
import org.lwjgl.system.MemoryUtil; import org.lwjgl.system.MemoryUtil;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
import com.jozufozu.flywheel.backend.gl.shader.GlProgram;
import com.jozufozu.flywheel.backend.gl.shader.GlShader;
import com.jozufozu.flywheel.backend.gl.shader.IMultiProgram;
import com.jozufozu.flywheel.backend.gl.shader.ProgramSpec;
import com.jozufozu.flywheel.backend.gl.shader.ShaderConstants;
import com.jozufozu.flywheel.backend.gl.shader.ShaderType;
import com.mojang.blaze3d.systems.RenderSystem; import com.mojang.blaze3d.systems.RenderSystem;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib;
import com.simibubi.create.foundation.render.backend.gl.shader.GlProgram;
import com.simibubi.create.foundation.render.backend.gl.shader.GlShader;
import com.simibubi.create.foundation.render.backend.gl.shader.IMultiProgram;
import com.simibubi.create.foundation.render.backend.gl.shader.ProgramSpec;
import com.simibubi.create.foundation.render.backend.gl.shader.ShaderConstants;
import com.simibubi.create.foundation.render.backend.gl.shader.ShaderType;
import net.minecraft.resources.IResource; import net.minecraft.resources.IResource;
import net.minecraft.resources.IResourceManager; import net.minecraft.resources.IResourceManager;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import com.simibubi.create.foundation.render.backend.gl.attrib.CommonAttributes; import com.jozufozu.flywheel.backend.gl.attrib.CommonAttributes;
import com.simibubi.create.foundation.render.backend.gl.attrib.IAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.IAttribSpec;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib; import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
public enum BasicAttributes implements IVertexAttrib { public enum BasicAttributes implements IVertexAttrib {
LIGHT("aLight", CommonAttributes.LIGHT), LIGHT("aLight", CommonAttributes.LIGHT),

View file

@ -1,9 +1,9 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import com.simibubi.create.foundation.render.backend.instancing.InstanceData; import com.jozufozu.flywheel.backend.instancing.InstanceData;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
public class BasicData extends InstanceData implements IFlatLight<BasicData> { public class BasicData extends InstanceData implements IFlatLight<BasicData> {

View file

@ -1,9 +1,9 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import com.simibubi.create.foundation.render.backend.gl.shader.GlProgram; import com.jozufozu.flywheel.backend.gl.shader.GlProgram;
import com.simibubi.create.foundation.render.backend.gl.shader.ProgramFogMode; import com.jozufozu.flywheel.backend.gl.shader.ProgramFogMode;
import com.simibubi.create.foundation.utility.AnimationTickHolder; import com.simibubi.create.foundation.utility.AnimationTickHolder;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;

View file

@ -1,6 +1,6 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import com.simibubi.create.foundation.render.backend.instancing.InstanceData; import com.jozufozu.flywheel.backend.instancing.InstanceData;
/** /**
* An interface that implementors of {@link InstanceData} should also implement * An interface that implementors of {@link InstanceData} should also implement

View file

@ -1,9 +1,9 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import com.simibubi.create.foundation.render.backend.gl.attrib.CommonAttributes; import com.jozufozu.flywheel.backend.gl.attrib.CommonAttributes;
import com.simibubi.create.foundation.render.backend.gl.attrib.IAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.IAttribSpec;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib; import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
import com.simibubi.create.foundation.render.backend.gl.attrib.VertexAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.VertexAttribSpec;
public enum ModelAttributes implements IVertexAttrib { public enum ModelAttributes implements IVertexAttrib {
VERTEX_POSITION("aPos", CommonAttributes.VEC3), VERTEX_POSITION("aPos", CommonAttributes.VEC3),

View file

@ -1,10 +1,10 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import com.jozufozu.flywheel.backend.RenderUtil;
import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.matrix.MatrixStack;
import com.simibubi.create.foundation.render.backend.RenderUtil;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel;
public class ModelData extends BasicData { public class ModelData extends BasicData {
private static final float[] empty = new float[25]; private static final float[] empty = new float[25];

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import com.simibubi.create.foundation.render.backend.gl.attrib.CommonAttributes; import com.jozufozu.flywheel.backend.gl.attrib.CommonAttributes;
import com.simibubi.create.foundation.render.backend.gl.attrib.IAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.IAttribSpec;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib; import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
public enum OrientedAttributes implements IVertexAttrib { public enum OrientedAttributes implements IVertexAttrib {
INSTANCE_POS("aInstancePos", CommonAttributes.VEC3), INSTANCE_POS("aInstancePos", CommonAttributes.VEC3),

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.vector.Quaternion; import net.minecraft.util.math.vector.Quaternion;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import com.simibubi.create.foundation.render.backend.gl.attrib.VertexFormat; import com.jozufozu.flywheel.backend.gl.attrib.VertexFormat;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import com.simibubi.create.foundation.render.backend.instancing.InstancedTileRenderer; import com.jozufozu.flywheel.backend.instancing.InstancedTileRenderer;
import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.BufferBuilder;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import com.simibubi.create.foundation.render.backend.gl.attrib.IAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.IAttribSpec;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib; import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
import com.simibubi.create.foundation.render.backend.gl.attrib.MatrixAttributes; import com.jozufozu.flywheel.backend.gl.attrib.MatrixAttributes;
public enum TransformAttributes implements IVertexAttrib { public enum TransformAttributes implements IVertexAttrib {
TRANSFORM("aTransform", MatrixAttributes.MAT4), TRANSFORM("aTransform", MatrixAttributes.MAT4),

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.core; package com.jozufozu.flywheel.backend.core;
import com.simibubi.create.foundation.render.backend.gl.attrib.VertexFormat; import com.jozufozu.flywheel.backend.gl.attrib.VertexFormat;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import com.simibubi.create.foundation.render.backend.instancing.InstancedTileRenderer; import com.jozufozu.flywheel.backend.instancing.InstancedTileRenderer;
import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.BufferBuilder;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.effects; package com.jozufozu.flywheel.backend.effects;
import com.simibubi.create.foundation.utility.AngleHelper; import com.simibubi.create.foundation.utility.AngleHelper;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.effects; package com.jozufozu.flywheel.backend.effects;
import java.util.ArrayList; import java.util.ArrayList;
@ -7,12 +7,12 @@ import org.lwjgl.opengl.GL15;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import org.lwjgl.opengl.GL30; import org.lwjgl.opengl.GL30;
import com.jozufozu.flywheel.backend.Backend;
import com.jozufozu.flywheel.backend.RenderUtil;
import com.jozufozu.flywheel.backend.gl.GlBuffer;
import com.jozufozu.flywheel.backend.gl.GlPrimitiveType;
import com.jozufozu.flywheel.backend.gl.GlVertexArray;
import com.simibubi.create.foundation.render.AllProgramSpecs; import com.simibubi.create.foundation.render.AllProgramSpecs;
import com.simibubi.create.foundation.render.backend.Backend;
import com.simibubi.create.foundation.render.backend.RenderUtil;
import com.simibubi.create.foundation.render.backend.gl.GlBuffer;
import com.simibubi.create.foundation.render.backend.gl.GlPrimitiveType;
import com.simibubi.create.foundation.render.backend.gl.GlVertexArray;
import com.simibubi.create.foundation.utility.AnimationTickHolder; import com.simibubi.create.foundation.utility.AnimationTickHolder;
import net.minecraft.client.MainWindow; import net.minecraft.client.MainWindow;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.effects; package com.jozufozu.flywheel.backend.effects;
import java.nio.FloatBuffer; import java.nio.FloatBuffer;
import com.simibubi.create.foundation.render.backend.RenderUtil; import com.jozufozu.flywheel.backend.RenderUtil;
import net.minecraft.util.math.vector.Matrix4f; import net.minecraft.util.math.vector.Matrix4f;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.effects; package com.jozufozu.flywheel.backend.effects;
import com.simibubi.create.foundation.render.backend.gl.attrib.CommonAttributes; import com.jozufozu.flywheel.backend.gl.attrib.CommonAttributes;
import com.simibubi.create.foundation.render.backend.gl.attrib.IAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.IAttribSpec;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib; import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
public enum ScreenQuadAttributes implements IVertexAttrib { public enum ScreenQuadAttributes implements IVertexAttrib {
INSTANCE_POS("aVertex", CommonAttributes.VEC4), INSTANCE_POS("aVertex", CommonAttributes.VEC4),

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.effects; package com.jozufozu.flywheel.backend.effects;
import java.nio.FloatBuffer; import java.nio.FloatBuffer;
import java.util.ArrayList; import java.util.ArrayList;
@ -6,8 +6,8 @@ import java.util.ArrayList;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import org.lwjgl.opengl.GL31; import org.lwjgl.opengl.GL31;
import com.simibubi.create.foundation.render.backend.gl.GlBuffer; import com.jozufozu.flywheel.backend.gl.GlBuffer;
import com.simibubi.create.foundation.render.backend.gl.shader.GlProgram; import com.jozufozu.flywheel.backend.gl.shader.GlProgram;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Matrix4f; import net.minecraft.util.math.vector.Matrix4f;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl; package com.jozufozu.flywheel.backend.gl;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.function.Consumer; import java.util.function.Consumer;
@ -6,7 +6,7 @@ import java.util.function.Consumer;
import org.lwjgl.opengl.GL15; import org.lwjgl.opengl.GL15;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import com.simibubi.create.foundation.render.backend.Backend; import com.jozufozu.flywheel.backend.Backend;
public class GlBuffer extends GlObject { public class GlBuffer extends GlObject {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl; package com.jozufozu.flywheel.backend.gl;
import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL11;

View file

@ -1,10 +1,10 @@
package com.simibubi.create.foundation.render.backend.gl; package com.jozufozu.flywheel.backend.gl;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.simibubi.create.foundation.render.backend.gl.shader.ProgramFogMode; import com.jozufozu.flywheel.backend.gl.shader.ProgramFogMode;
public enum GlFogMode { public enum GlFogMode {
NONE(ProgramFogMode.None::new), NONE(ProgramFogMode.None::new),

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl; package com.jozufozu.flywheel.backend.gl;
// Utility class for safely dealing with gl object handles. // Utility class for safely dealing with gl object handles.
public abstract class GlObject { public abstract class GlObject {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl; package com.jozufozu.flywheel.backend.gl;
import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL11;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl; package com.jozufozu.flywheel.backend.gl;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.gl; package com.jozufozu.flywheel.backend.gl;
import java.util.function.Consumer; import java.util.function.Consumer;
import com.simibubi.create.foundation.render.backend.Backend; import com.jozufozu.flywheel.backend.Backend;
public class GlVertexArray extends GlObject { public class GlVertexArray extends GlObject {
public GlVertexArray() { public GlVertexArray() {

View file

@ -1,6 +1,6 @@
package com.simibubi.create.foundation.render.backend.gl.attrib; package com.jozufozu.flywheel.backend.gl.attrib;
import com.simibubi.create.foundation.render.backend.gl.GlPrimitiveType; import com.jozufozu.flywheel.backend.gl.GlPrimitiveType;
public class CommonAttributes { public class CommonAttributes {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.attrib; package com.jozufozu.flywheel.backend.gl.attrib;
public interface IAttribSpec { public interface IAttribSpec {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.attrib; package com.jozufozu.flywheel.backend.gl.attrib;
public interface IVertexAttrib { public interface IVertexAttrib {

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.gl.attrib; package com.jozufozu.flywheel.backend.gl.attrib;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import com.simibubi.create.foundation.render.backend.gl.GlPrimitiveType; import com.jozufozu.flywheel.backend.gl.GlPrimitiveType;
public enum MatrixAttributes implements IAttribSpec { public enum MatrixAttributes implements IAttribSpec {
MAT3(3, 3), MAT3(3, 3),

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.gl.attrib; package com.jozufozu.flywheel.backend.gl.attrib;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import com.simibubi.create.foundation.render.backend.gl.GlPrimitiveType; import com.jozufozu.flywheel.backend.gl.GlPrimitiveType;
public class VertexAttribSpec implements IAttribSpec { public class VertexAttribSpec implements IAttribSpec {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.attrib; package com.jozufozu.flywheel.backend.gl.attrib;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;

View file

@ -1,11 +1,11 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
import java.util.EnumMap; import java.util.EnumMap;
import java.util.Map; import java.util.Map;
import com.simibubi.create.foundation.render.backend.ShaderLoader; import com.jozufozu.flywheel.backend.ShaderLoader;
import com.simibubi.create.foundation.render.backend.gl.GlFog; import com.jozufozu.flywheel.backend.gl.GlFog;
import com.simibubi.create.foundation.render.backend.gl.GlFogMode; import com.jozufozu.flywheel.backend.gl.GlFogMode;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;

View file

@ -1,6 +1,6 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
import com.simibubi.create.foundation.render.backend.gl.GlPrimitiveType; import com.jozufozu.flywheel.backend.gl.GlPrimitiveType;
public class GLSLType { public class GLSLType {
public static final GLSLType FLOAT = new GLSLType("mat4", GlPrimitiveType.FLOAT, 16); public static final GLSLType FLOAT = new GLSLType("mat4", GlPrimitiveType.FLOAT, 16);

View file

@ -1,13 +1,13 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
import java.util.Collection; import java.util.Collection;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import com.simibubi.create.foundation.render.backend.Backend; import com.jozufozu.flywheel.backend.Backend;
import com.simibubi.create.foundation.render.backend.RenderUtil; import com.jozufozu.flywheel.backend.RenderUtil;
import com.simibubi.create.foundation.render.backend.gl.GlObject; import com.jozufozu.flywheel.backend.gl.GlObject;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib; import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Matrix4f; import net.minecraft.util.math.vector.Matrix4f;

View file

@ -1,10 +1,10 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import com.simibubi.create.foundation.render.backend.Backend; import com.jozufozu.flywheel.backend.Backend;
import com.simibubi.create.foundation.render.backend.gl.GlObject; import com.jozufozu.flywheel.backend.gl.GlObject;
import com.simibubi.create.foundation.render.backend.gl.versioned.GlCompat; import com.jozufozu.flywheel.backend.gl.versioned.GlCompat;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
/** /**
* Encapsulates any number of shader programs for use in similar contexts. * Encapsulates any number of shader programs for use in similar contexts.

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import com.simibubi.create.foundation.render.backend.gl.GlFog; import com.jozufozu.flywheel.backend.gl.GlFog;
public abstract class ProgramFogMode { public abstract class ProgramFogMode {

View file

@ -1,10 +1,10 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
import com.simibubi.create.Create; import com.simibubi.create.Create;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
/** /**
* A Callback for when a shader is called. Used to define shader uniforms. * A Callback for when a shader is called. Used to define shader uniforms.

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.StringReader; import java.io.StringReader;

View file

@ -0,0 +1,7 @@
package com.jozufozu.flywheel.backend.gl.shader;
import com.jozufozu.flywheel.backend.ShaderLoader;
public interface ShaderSpecLoader<P extends GlProgram> {
IMultiProgram<P> create(ShaderLoader loader, ProgramSpec<P> spec);
}

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;

View file

@ -1,6 +1,6 @@
package com.simibubi.create.foundation.render.backend.gl.shader; package com.jozufozu.flywheel.backend.gl.shader;
import com.simibubi.create.foundation.render.backend.ShaderLoader; import com.jozufozu.flywheel.backend.ShaderLoader;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.versioned; package com.jozufozu.flywheel.backend.gl.versioned;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.Arrays; import java.util.Arrays;
@ -9,11 +9,11 @@ import org.lwjgl.opengl.GLCapabilities;
import org.lwjgl.system.MemoryStack; import org.lwjgl.system.MemoryStack;
import org.lwjgl.system.MemoryUtil; import org.lwjgl.system.MemoryUtil;
import com.simibubi.create.foundation.render.backend.gl.versioned.framebuffer.Blit; import com.jozufozu.flywheel.backend.gl.versioned.framebuffer.Blit;
import com.simibubi.create.foundation.render.backend.gl.versioned.framebuffer.Framebuffer; import com.jozufozu.flywheel.backend.gl.versioned.framebuffer.Framebuffer;
import com.simibubi.create.foundation.render.backend.gl.versioned.instancing.DrawInstanced; import com.jozufozu.flywheel.backend.gl.versioned.instancing.DrawInstanced;
import com.simibubi.create.foundation.render.backend.gl.versioned.instancing.InstancedArrays; import com.jozufozu.flywheel.backend.gl.versioned.instancing.InstancedArrays;
import com.simibubi.create.foundation.render.backend.gl.versioned.instancing.VertexArrayObject; import com.jozufozu.flywheel.backend.gl.versioned.instancing.VertexArrayObject;
/** /**
* An instance of this class stores information * An instance of this class stores information

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.versioned; package com.jozufozu.flywheel.backend.gl.versioned;
import org.lwjgl.opengl.GLCapabilities; import org.lwjgl.opengl.GLCapabilities;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.versioned; package com.jozufozu.flywheel.backend.gl.versioned;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.function.Consumer; import java.util.function.Consumer;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.gl.versioned; package com.jozufozu.flywheel.backend.gl.versioned;
import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL30; import org.lwjgl.opengl.GL30;

View file

@ -1,10 +1,10 @@
package com.simibubi.create.foundation.render.backend.gl.versioned.framebuffer; package com.jozufozu.flywheel.backend.gl.versioned.framebuffer;
import org.lwjgl.opengl.EXTFramebufferBlit; import org.lwjgl.opengl.EXTFramebufferBlit;
import org.lwjgl.opengl.GL30; import org.lwjgl.opengl.GL30;
import org.lwjgl.opengl.GLCapabilities; import org.lwjgl.opengl.GLCapabilities;
import com.simibubi.create.foundation.render.backend.gl.versioned.GlVersioned; import com.jozufozu.flywheel.backend.gl.versioned.GlVersioned;
public enum Blit implements GlVersioned { public enum Blit implements GlVersioned {
CORE { CORE {

View file

@ -1,11 +1,11 @@
package com.simibubi.create.foundation.render.backend.gl.versioned.framebuffer; package com.jozufozu.flywheel.backend.gl.versioned.framebuffer;
import org.lwjgl.opengl.ARBFramebufferObject; import org.lwjgl.opengl.ARBFramebufferObject;
import org.lwjgl.opengl.EXTFramebufferObject; import org.lwjgl.opengl.EXTFramebufferObject;
import org.lwjgl.opengl.GL30C; import org.lwjgl.opengl.GL30C;
import org.lwjgl.opengl.GLCapabilities; import org.lwjgl.opengl.GLCapabilities;
import com.simibubi.create.foundation.render.backend.gl.versioned.GlVersioned; import com.jozufozu.flywheel.backend.gl.versioned.GlVersioned;
public enum Framebuffer implements GlVersioned { public enum Framebuffer implements GlVersioned {
CORE { CORE {

View file

@ -1,11 +1,11 @@
package com.simibubi.create.foundation.render.backend.gl.versioned.instancing; package com.jozufozu.flywheel.backend.gl.versioned.instancing;
import org.lwjgl.opengl.ARBDrawInstanced; import org.lwjgl.opengl.ARBDrawInstanced;
import org.lwjgl.opengl.EXTDrawInstanced; import org.lwjgl.opengl.EXTDrawInstanced;
import org.lwjgl.opengl.GL31; import org.lwjgl.opengl.GL31;
import org.lwjgl.opengl.GLCapabilities; import org.lwjgl.opengl.GLCapabilities;
import com.simibubi.create.foundation.render.backend.gl.versioned.GlVersioned; import com.jozufozu.flywheel.backend.gl.versioned.GlVersioned;
public enum DrawInstanced implements GlVersioned { public enum DrawInstanced implements GlVersioned {
GL31_DRAW_INSTANCED { GL31_DRAW_INSTANCED {

View file

@ -1,10 +1,10 @@
package com.simibubi.create.foundation.render.backend.gl.versioned.instancing; package com.jozufozu.flywheel.backend.gl.versioned.instancing;
import org.lwjgl.opengl.ARBInstancedArrays; import org.lwjgl.opengl.ARBInstancedArrays;
import org.lwjgl.opengl.GL33; import org.lwjgl.opengl.GL33;
import org.lwjgl.opengl.GLCapabilities; import org.lwjgl.opengl.GLCapabilities;
import com.simibubi.create.foundation.render.backend.gl.versioned.GlVersioned; import com.jozufozu.flywheel.backend.gl.versioned.GlVersioned;
public enum InstancedArrays implements GlVersioned { public enum InstancedArrays implements GlVersioned {
GL33_INSTANCED_ARRAYS { GL33_INSTANCED_ARRAYS {

View file

@ -1,10 +1,10 @@
package com.simibubi.create.foundation.render.backend.gl.versioned.instancing; package com.jozufozu.flywheel.backend.gl.versioned.instancing;
import org.lwjgl.opengl.ARBVertexArrayObject; import org.lwjgl.opengl.ARBVertexArrayObject;
import org.lwjgl.opengl.GL30; import org.lwjgl.opengl.GL30;
import org.lwjgl.opengl.GLCapabilities; import org.lwjgl.opengl.GLCapabilities;
import com.simibubi.create.foundation.render.backend.gl.versioned.GlVersioned; import com.jozufozu.flywheel.backend.gl.versioned.GlVersioned;
public enum VertexArrayObject implements GlVersioned { public enum VertexArrayObject implements GlVersioned {
GL30_VAO { GL30_VAO {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
/** /**
* An interface giving {@link TileEntityInstance}s a hook to have a function called at * An interface giving {@link TileEntityInstance}s a hook to have a function called at

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
/** /**
* A marker interface custom worlds can override to indicate * A marker interface custom worlds can override to indicate

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
public interface IInstanceRendered { public interface IInstanceRendered {
default boolean shouldRenderAsTE() { default boolean shouldRenderAsTE() {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
/** /**
* An interface giving {@link TileEntityInstance}s a hook to have a function called at * An interface giving {@link TileEntityInstance}s a hook to have a function called at

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
@ -9,12 +9,12 @@ import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL15; import org.lwjgl.opengl.GL15;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import com.simibubi.create.foundation.render.backend.Backend; import com.jozufozu.flywheel.backend.Backend;
import com.simibubi.create.foundation.render.backend.BufferedModel; import com.jozufozu.flywheel.backend.BufferedModel;
import com.simibubi.create.foundation.render.backend.core.ModelAttributes; import com.jozufozu.flywheel.backend.core.ModelAttributes;
import com.simibubi.create.foundation.render.backend.gl.GlBuffer; import com.jozufozu.flywheel.backend.gl.GlBuffer;
import com.simibubi.create.foundation.render.backend.gl.GlVertexArray; import com.jozufozu.flywheel.backend.gl.GlVertexArray;
import com.simibubi.create.foundation.render.backend.gl.attrib.VertexFormat; import com.jozufozu.flywheel.backend.gl.attrib.VertexFormat;
import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.BufferBuilder;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
import java.util.Map; import java.util.Map;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -6,13 +6,13 @@ import java.util.Map;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import com.simibubi.create.foundation.render.backend.Backend; import com.jozufozu.flywheel.backend.Backend;
import com.simibubi.create.foundation.render.backend.MaterialType; import com.jozufozu.flywheel.backend.MaterialType;
import com.simibubi.create.foundation.render.backend.MaterialTypes; import com.jozufozu.flywheel.backend.MaterialTypes;
import com.simibubi.create.foundation.render.backend.core.BasicProgram; import com.jozufozu.flywheel.backend.core.BasicProgram;
import com.simibubi.create.foundation.render.backend.core.ModelData; import com.jozufozu.flywheel.backend.core.ModelData;
import com.simibubi.create.foundation.render.backend.core.OrientedData; import com.jozufozu.flywheel.backend.core.OrientedData;
import com.simibubi.create.foundation.render.backend.gl.shader.ShaderCallback; import com.jozufozu.flywheel.backend.gl.shader.ShaderCallback;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.ActiveRenderInfo; import net.minecraft.client.renderer.ActiveRenderInfo;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.BufferBuilder;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import java.util.function.Consumer; import java.util.function.Consumer;
@ -9,15 +9,15 @@ import org.apache.commons.lang3.tuple.Pair;
import com.google.common.cache.Cache; import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheBuilder;
import com.jozufozu.flywheel.backend.Backend;
import com.jozufozu.flywheel.backend.FastRenderDispatcher;
import com.jozufozu.flywheel.backend.RenderUtil;
import com.jozufozu.flywheel.backend.core.BasicProgram;
import com.jozufozu.flywheel.backend.core.PartialModel;
import com.jozufozu.flywheel.backend.gl.shader.ProgramSpec;
import com.jozufozu.flywheel.backend.gl.shader.ShaderCallback;
import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.matrix.MatrixStack;
import com.simibubi.create.foundation.render.SuperByteBufferCache; import com.simibubi.create.foundation.render.SuperByteBufferCache;
import com.simibubi.create.foundation.render.backend.Backend;
import com.simibubi.create.foundation.render.backend.FastRenderDispatcher;
import com.simibubi.create.foundation.render.backend.RenderUtil;
import com.simibubi.create.foundation.render.backend.core.BasicProgram;
import com.simibubi.create.foundation.render.backend.core.PartialModel;
import com.simibubi.create.foundation.render.backend.gl.shader.ProgramSpec;
import com.simibubi.create.foundation.render.backend.gl.shader.ShaderCallback;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;

View file

@ -1,11 +1,11 @@
package com.simibubi.create.foundation.render.backend.instancing; package com.jozufozu.flywheel.backend.instancing;
import java.util.Arrays; import java.util.Arrays;
import java.util.stream.Stream; import java.util.stream.Stream;
import com.simibubi.create.foundation.render.backend.core.IFlatLight; import com.jozufozu.flywheel.backend.core.IFlatLight;
import com.simibubi.create.foundation.render.backend.core.ModelData; import com.jozufozu.flywheel.backend.core.ModelData;
import com.simibubi.create.foundation.render.backend.core.OrientedData; import com.jozufozu.flywheel.backend.core.OrientedData;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;

View file

@ -1,11 +1,11 @@
package com.simibubi.create.foundation.render.backend.instancing.util; package com.jozufozu.flywheel.backend.instancing.util;
import java.util.Optional; import java.util.Optional;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import com.simibubi.create.foundation.render.backend.instancing.InstanceData; import com.jozufozu.flywheel.backend.instancing.InstanceData;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
public class ConditionalInstance<D extends InstanceData> { public class ConditionalInstance<D extends InstanceData> {

View file

@ -1,12 +1,12 @@
package com.simibubi.create.foundation.render.backend.instancing.util; package com.jozufozu.flywheel.backend.instancing.util;
import java.util.AbstractCollection; import java.util.AbstractCollection;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import com.simibubi.create.foundation.render.backend.instancing.InstanceData; import com.jozufozu.flywheel.backend.instancing.InstanceData;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
public class InstanceGroup<D extends InstanceData> extends AbstractCollection<D> { public class InstanceGroup<D extends InstanceData> extends AbstractCollection<D> {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.instancing.util; package com.jozufozu.flywheel.backend.instancing.util;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -6,8 +6,8 @@ import java.util.Optional;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import com.simibubi.create.foundation.render.backend.instancing.InstanceData; import com.jozufozu.flywheel.backend.instancing.InstanceData;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
public class SelectInstance<D extends InstanceData> { public class SelectInstance<D extends InstanceData> {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.light; package com.jozufozu.flywheel.backend.light;
@FunctionalInterface @FunctionalInterface
public interface CoordinateConsumer { public interface CoordinateConsumer {

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.light; package com.jozufozu.flywheel.backend.light;
import com.simibubi.create.content.contraptions.components.structureMovement.Contraption; import com.simibubi.create.content.contraptions.components.structureMovement.Contraption;
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter; import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.foundation.render.backend.light; package com.jozufozu.flywheel.backend.light;
import static com.simibubi.create.foundation.render.backend.RenderUtil.isPowerOf2; import static com.jozufozu.flywheel.backend.RenderUtil.isPowerOf2;
import com.simibubi.create.foundation.render.backend.RenderUtil; import com.jozufozu.flywheel.backend.RenderUtil;
import net.minecraft.util.Direction; import net.minecraft.util.Direction;
import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.AxisAlignedBB;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.light; package com.jozufozu.flywheel.backend.light;
import net.minecraft.world.IBlockDisplayReader; import net.minecraft.world.IBlockDisplayReader;
import net.minecraft.world.LightType; import net.minecraft.world.LightType;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.light; package com.jozufozu.flywheel.backend.light;
import java.util.WeakHashMap; import java.util.WeakHashMap;
import java.util.function.LongConsumer; import java.util.function.LongConsumer;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.light; package com.jozufozu.flywheel.backend.light;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
@ -8,10 +8,10 @@ import org.lwjgl.opengl.GL13;
import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL20;
import org.lwjgl.system.MemoryUtil; import org.lwjgl.system.MemoryUtil;
import com.simibubi.create.foundation.render.backend.Backend; import com.jozufozu.flywheel.backend.Backend;
import com.simibubi.create.foundation.render.backend.RenderWork; import com.jozufozu.flywheel.backend.RenderWork;
import com.simibubi.create.foundation.render.backend.gl.GlTexture; import com.jozufozu.flywheel.backend.gl.GlTexture;
import com.simibubi.create.foundation.render.backend.gl.versioned.RGPixelFormat; import com.jozufozu.flywheel.backend.gl.versioned.RGPixelFormat;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockDisplayReader; import net.minecraft.world.IBlockDisplayReader;

View file

@ -1,4 +1,4 @@
package com.simibubi.create.foundation.render.backend.light; package com.jozufozu.flywheel.backend.light;
import java.util.ArrayList; import java.util.ArrayList;

View file

@ -3,9 +3,9 @@ package com.simibubi.create;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.jozufozu.flywheel.backend.core.PartialModel;
import com.simibubi.create.content.contraptions.fluids.FluidTransportBehaviour; import com.simibubi.create.content.contraptions.fluids.FluidTransportBehaviour;
import com.simibubi.create.content.contraptions.processing.burner.BlazeBurnerBlock; import com.simibubi.create.content.contraptions.processing.burner.BlazeBurnerBlock;
import com.simibubi.create.foundation.render.backend.core.PartialModel;
import com.simibubi.create.foundation.utility.Iterate; import com.simibubi.create.foundation.utility.Iterate;
import com.simibubi.create.foundation.utility.Lang; import com.simibubi.create.foundation.utility.Lang;

View file

@ -7,6 +7,10 @@ import java.util.function.Function;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import com.jozufozu.flywheel.backend.Backend;
import com.jozufozu.flywheel.backend.OptifineHandler;
import com.jozufozu.flywheel.backend.core.PartialModel;
import com.jozufozu.flywheel.backend.instancing.InstancedTileRenderer;
import com.simibubi.create.content.contraptions.base.KineticTileEntityRenderer; import com.simibubi.create.content.contraptions.base.KineticTileEntityRenderer;
import com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionRenderDispatcher; import com.simibubi.create.content.contraptions.components.structureMovement.render.ContraptionRenderDispatcher;
import com.simibubi.create.content.contraptions.relays.encased.CasingConnectivity; import com.simibubi.create.content.contraptions.relays.encased.CasingConnectivity;
@ -25,10 +29,6 @@ import com.simibubi.create.foundation.ponder.elements.WorldSectionElement;
import com.simibubi.create.foundation.render.AllProgramSpecs; import com.simibubi.create.foundation.render.AllProgramSpecs;
import com.simibubi.create.foundation.render.KineticRenderer; import com.simibubi.create.foundation.render.KineticRenderer;
import com.simibubi.create.foundation.render.SuperByteBufferCache; import com.simibubi.create.foundation.render.SuperByteBufferCache;
import com.simibubi.create.foundation.render.backend.Backend;
import com.simibubi.create.foundation.render.backend.OptifineHandler;
import com.simibubi.create.foundation.render.backend.core.PartialModel;
import com.simibubi.create.foundation.render.backend.instancing.InstancedTileRenderer;
import com.simibubi.create.foundation.utility.WorldAttached; import com.simibubi.create.foundation.utility.WorldAttached;
import com.simibubi.create.foundation.utility.ghost.GhostBlocks; import com.simibubi.create.foundation.utility.ghost.GhostBlocks;
import com.simibubi.create.foundation.utility.outliner.Outliner; import com.simibubi.create.foundation.utility.outliner.Outliner;

View file

@ -1,11 +1,11 @@
package com.simibubi.create.compat.jei.category.animations; package com.simibubi.create.compat.jei.category.animations;
import com.jozufozu.flywheel.backend.core.PartialModel;
import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.matrix.MatrixStack;
import com.simibubi.create.AllBlockPartials; import com.simibubi.create.AllBlockPartials;
import com.simibubi.create.AllBlocks; import com.simibubi.create.AllBlocks;
import com.simibubi.create.content.contraptions.processing.burner.BlazeBurnerBlock.HeatLevel; import com.simibubi.create.content.contraptions.processing.burner.BlazeBurnerBlock.HeatLevel;
import com.simibubi.create.foundation.gui.GuiGameElement; import com.simibubi.create.foundation.gui.GuiGameElement;
import com.simibubi.create.foundation.render.backend.core.PartialModel;
import mezz.jei.api.gui.drawable.IDrawable; import mezz.jei.api.gui.drawable.IDrawable;
import net.minecraft.util.math.vector.Vector3f; import net.minecraft.util.math.vector.Vector3f;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.compat.jei.category.animations; package com.simibubi.create.compat.jei.category.animations;
import com.jozufozu.flywheel.backend.core.PartialModel;
import com.simibubi.create.AllBlockPartials; import com.simibubi.create.AllBlockPartials;
import com.simibubi.create.AllBlocks; import com.simibubi.create.AllBlocks;
import com.simibubi.create.foundation.render.backend.core.PartialModel;
import com.simibubi.create.foundation.utility.AnimationTickHolder; import com.simibubi.create.foundation.utility.AnimationTickHolder;
import mezz.jei.api.gui.drawable.IDrawable; import mezz.jei.api.gui.drawable.IDrawable;

View file

@ -1,6 +1,6 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.simibubi.create.foundation.render.backend.instancing.InstancedTileRenderer; import com.jozufozu.flywheel.backend.instancing.InstancedTileRenderer;
import net.minecraft.state.properties.BlockStateProperties; import net.minecraft.state.properties.BlockStateProperties;
import net.minecraft.util.Direction; import net.minecraft.util.Direction;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import com.jozufozu.flywheel.backend.instancing.InstancedTileRenderer;
import com.simibubi.create.AllBlockPartials; import com.simibubi.create.AllBlockPartials;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel;
import com.simibubi.create.foundation.render.backend.instancing.InstancedTileRenderer;
import net.minecraft.state.properties.BlockStateProperties; import net.minecraft.state.properties.BlockStateProperties;
import net.minecraft.util.Direction; import net.minecraft.util.Direction;

View file

@ -1,6 +1,6 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.simibubi.create.foundation.render.backend.instancing.InstancedTileRenderer; import com.jozufozu.flywheel.backend.instancing.InstancedTileRenderer;
import net.minecraft.state.properties.BlockStateProperties; import net.minecraft.state.properties.BlockStateProperties;
import net.minecraft.util.Direction; import net.minecraft.util.Direction;

View file

@ -1,9 +1,9 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.simibubi.create.foundation.render.backend.gl.attrib.CommonAttributes; import com.jozufozu.flywheel.backend.gl.attrib.CommonAttributes;
import com.simibubi.create.foundation.render.backend.gl.attrib.IAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.IAttribSpec;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib; import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
import com.simibubi.create.foundation.render.backend.gl.attrib.VertexAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.VertexAttribSpec;
public enum KineticAttributes implements IVertexAttrib { public enum KineticAttributes implements IVertexAttrib {
INSTANCE_POSITION("aInstancePos", CommonAttributes.VEC3), INSTANCE_POSITION("aInstancePos", CommonAttributes.VEC3),

View file

@ -2,8 +2,8 @@ package com.simibubi.create.content.contraptions.base;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import com.simibubi.create.foundation.render.backend.core.BasicData; import com.jozufozu.flywheel.backend.core.BasicData;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import com.simibubi.create.foundation.utility.ColorHelper; import com.simibubi.create.foundation.utility.ColorHelper;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;

View file

@ -1,10 +1,10 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.jozufozu.flywheel.backend.MaterialType;
import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import com.simibubi.create.content.contraptions.components.actors.ActorData; import com.simibubi.create.content.contraptions.components.actors.ActorData;
import com.simibubi.create.content.contraptions.relays.belt.BeltData; import com.simibubi.create.content.contraptions.relays.belt.BeltData;
import com.simibubi.create.content.logistics.block.FlapData; import com.simibubi.create.content.logistics.block.FlapData;
import com.simibubi.create.foundation.render.backend.MaterialType;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel;
public class KineticRenderMaterials { public class KineticRenderMaterials {
public static final MaterialType<InstancedModel<RotatingData>> ROTATING = new MaterialType<>(); public static final MaterialType<InstancedModel<RotatingData>> ROTATING = new MaterialType<>();

View file

@ -7,6 +7,8 @@ import java.util.List;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import com.jozufozu.flywheel.backend.FastRenderDispatcher;
import com.jozufozu.flywheel.backend.instancing.IInstanceRendered;
import com.simibubi.create.Create; import com.simibubi.create.Create;
import com.simibubi.create.content.contraptions.KineticNetwork; import com.simibubi.create.content.contraptions.KineticNetwork;
import com.simibubi.create.content.contraptions.RotationPropagator; import com.simibubi.create.content.contraptions.RotationPropagator;
@ -18,8 +20,6 @@ import com.simibubi.create.content.contraptions.relays.elementary.ICogWheel;
import com.simibubi.create.content.contraptions.relays.gearbox.GearboxBlock; import com.simibubi.create.content.contraptions.relays.gearbox.GearboxBlock;
import com.simibubi.create.foundation.config.AllConfigs; import com.simibubi.create.foundation.config.AllConfigs;
import com.simibubi.create.foundation.item.TooltipHelper; import com.simibubi.create.foundation.item.TooltipHelper;
import com.simibubi.create.foundation.render.backend.FastRenderDispatcher;
import com.simibubi.create.foundation.render.backend.instancing.IInstanceRendered;
import com.simibubi.create.foundation.sound.SoundScapes; import com.simibubi.create.foundation.sound.SoundScapes;
import com.simibubi.create.foundation.tileEntity.SmartTileEntity; import com.simibubi.create.foundation.tileEntity.SmartTileEntity;
import com.simibubi.create.foundation.tileEntity.TileEntityBehaviour; import com.simibubi.create.foundation.tileEntity.TileEntityBehaviour;

View file

@ -1,5 +1,6 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.jozufozu.flywheel.backend.FastRenderDispatcher;
import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder; import com.mojang.blaze3d.vertex.IVertexBuilder;
import com.simibubi.create.AllBlocks; import com.simibubi.create.AllBlocks;
@ -8,7 +9,6 @@ import com.simibubi.create.content.contraptions.KineticDebugger;
import com.simibubi.create.content.contraptions.relays.elementary.ICogWheel; import com.simibubi.create.content.contraptions.relays.elementary.ICogWheel;
import com.simibubi.create.foundation.render.Compartment; import com.simibubi.create.foundation.render.Compartment;
import com.simibubi.create.foundation.render.SuperByteBuffer; import com.simibubi.create.foundation.render.SuperByteBuffer;
import com.simibubi.create.foundation.render.backend.FastRenderDispatcher;
import com.simibubi.create.foundation.tileEntity.renderer.SafeTileEntityRenderer; import com.simibubi.create.foundation.tileEntity.renderer.SafeTileEntityRenderer;
import com.simibubi.create.foundation.utility.AnimationTickHolder; import com.simibubi.create.foundation.utility.AnimationTickHolder;
import com.simibubi.create.foundation.utility.ColorHelper; import com.simibubi.create.foundation.utility.ColorHelper;

View file

@ -1,12 +1,12 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import com.jozufozu.flywheel.backend.instancing.InstancedTileRenderer;
import com.jozufozu.flywheel.backend.instancing.RenderMaterial;
import com.jozufozu.flywheel.backend.instancing.TileEntityInstance;
import com.simibubi.create.AllBlocks; import com.simibubi.create.AllBlocks;
import com.simibubi.create.content.contraptions.relays.elementary.ICogWheel; import com.simibubi.create.content.contraptions.relays.elementary.ICogWheel;
import com.simibubi.create.content.contraptions.relays.elementary.ShaftBlock; import com.simibubi.create.content.contraptions.relays.elementary.ShaftBlock;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel;
import com.simibubi.create.foundation.render.backend.instancing.InstancedTileRenderer;
import com.simibubi.create.foundation.render.backend.instancing.RenderMaterial;
import com.simibubi.create.foundation.render.backend.instancing.TileEntityInstance;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.util.Direction; import net.minecraft.util.Direction;

View file

@ -1,9 +1,9 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.simibubi.create.foundation.render.backend.gl.attrib.CommonAttributes; import com.jozufozu.flywheel.backend.gl.attrib.CommonAttributes;
import com.simibubi.create.foundation.render.backend.gl.attrib.IAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.IAttribSpec;
import com.simibubi.create.foundation.render.backend.gl.attrib.IVertexAttrib; import com.jozufozu.flywheel.backend.gl.attrib.IVertexAttrib;
import com.simibubi.create.foundation.render.backend.gl.attrib.VertexAttribSpec; import com.jozufozu.flywheel.backend.gl.attrib.VertexAttribSpec;
public enum RotatingAttributes implements IVertexAttrib { public enum RotatingAttributes implements IVertexAttrib {
AXIS("aAxis", CommonAttributes.NORMAL), AXIS("aAxis", CommonAttributes.NORMAL),

View file

@ -2,7 +2,7 @@ package com.simibubi.create.content.contraptions.base;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import net.minecraft.util.Direction; import net.minecraft.util.Direction;
import net.minecraft.util.math.vector.Vector3f; import net.minecraft.util.math.vector.Vector3f;

View file

@ -1,9 +1,9 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.simibubi.create.foundation.render.backend.core.BasicAttributes; import com.jozufozu.flywheel.backend.core.BasicAttributes;
import com.simibubi.create.foundation.render.backend.gl.attrib.VertexFormat; import com.jozufozu.flywheel.backend.gl.attrib.VertexFormat;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel; import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import com.simibubi.create.foundation.render.backend.instancing.InstancedTileRenderer; import com.jozufozu.flywheel.backend.instancing.InstancedTileRenderer;
import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.BufferBuilder;

View file

@ -1,8 +1,8 @@
package com.simibubi.create.content.contraptions.base; package com.simibubi.create.content.contraptions.base;
import com.jozufozu.flywheel.backend.instancing.InstancedModel;
import com.jozufozu.flywheel.backend.instancing.InstancedTileRenderer;
import com.simibubi.create.AllBlockPartials; import com.simibubi.create.AllBlockPartials;
import com.simibubi.create.foundation.render.backend.instancing.InstancedModel;
import com.simibubi.create.foundation.render.backend.instancing.InstancedTileRenderer;
public class ShaftlessCogInstance extends SingleRotatingInstance { public class ShaftlessCogInstance extends SingleRotatingInstance {

Some files were not shown because too many files have changed in this diff Show more