Move the API files into their own package and move GlProxy into render
This commit is contained in:
@@ -21,14 +21,21 @@ package com.seibel.lod;
|
||||
|
||||
/**
|
||||
* This file is similar to mcmod.info
|
||||
* <br>
|
||||
* If you are looking at this mod's source code and don't
|
||||
* know where to start.
|
||||
* Go to the api/lod package (folder) and take a look at the ClientApi.java file,
|
||||
* Pretty much all of the mod stems from there.
|
||||
*
|
||||
* @author James Seibel
|
||||
* @version 10-23-2021
|
||||
* @version 11-13-2021
|
||||
*/
|
||||
public final class ModInfo
|
||||
{
|
||||
public static final String ID = "lod";
|
||||
/** The internal mod name */
|
||||
public static final String NAME = "DistantHorizons";
|
||||
/** Human readable version of MOD_NAME */
|
||||
/** Human readable version of NAME */
|
||||
public static final String READABLE_NAME = "Distant Horizons";
|
||||
public static final String API = "LodAPI";
|
||||
public static final String VERSION = "a1.5.2";
|
||||
|
||||
+2
-2
@@ -17,9 +17,9 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.seibel.lod.proxy;
|
||||
package com.seibel.lod.api.forge;
|
||||
|
||||
import com.seibel.lod.lodApi.EventApi;
|
||||
import com.seibel.lod.api.lod.EventApi;
|
||||
import com.seibel.lod.wrappers.chunk.ChunkWrapper;
|
||||
import com.seibel.lod.wrappers.world.DimensionTypeWrapper;
|
||||
import com.seibel.lod.wrappers.world.WorldWrapper;
|
||||
+2
-2
@@ -17,10 +17,10 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.seibel.lod;
|
||||
package com.seibel.lod.api.forge;
|
||||
|
||||
import com.seibel.lod.ModInfo;
|
||||
import com.seibel.lod.config.LodConfig;
|
||||
import com.seibel.lod.proxy.ClientProxy;
|
||||
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.seibel.lod.lodApi;
|
||||
package com.seibel.lod.api.lod;
|
||||
|
||||
import com.seibel.lod.builders.bufferBuilding.LodBufferBuilderFactory;
|
||||
import com.seibel.lod.builders.lodBuilding.LodBuilder;
|
||||
+2
-2
@@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.seibel.lod.lodApi;
|
||||
package com.seibel.lod.api.lod;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@@ -26,7 +26,7 @@ import com.seibel.lod.builders.worldGeneration.LodGenWorker;
|
||||
import com.seibel.lod.config.LodConfig;
|
||||
import com.seibel.lod.objects.lod.LodDimension;
|
||||
import com.seibel.lod.objects.math.Mat4f;
|
||||
import com.seibel.lod.proxy.GlProxy;
|
||||
import com.seibel.lod.render.GlProxy;
|
||||
import com.seibel.lod.render.LodRenderer;
|
||||
import com.seibel.lod.util.DetailDistanceUtil;
|
||||
import com.seibel.lod.util.ThreadMapUtil;
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.seibel.lod.lodApi;
|
||||
package com.seibel.lod.api.lod;
|
||||
|
||||
import org.lwjgl.glfw.GLFW;
|
||||
|
||||
@@ -36,12 +36,12 @@ import org.lwjgl.opengl.GL30;
|
||||
import org.lwjgl.opengl.GL45;
|
||||
|
||||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.config.LodConfig;
|
||||
import com.seibel.lod.enums.LodDirection;
|
||||
import com.seibel.lod.enums.config.GpuUploadMethod;
|
||||
import com.seibel.lod.enums.config.VanillaOverdraw;
|
||||
import com.seibel.lod.enums.rendering.GlProxyContext;
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.objects.Box;
|
||||
import com.seibel.lod.objects.PosToRenderContainer;
|
||||
import com.seibel.lod.objects.lod.LodDimension;
|
||||
@@ -49,7 +49,7 @@ import com.seibel.lod.objects.lod.LodRegion;
|
||||
import com.seibel.lod.objects.lod.RegionPos;
|
||||
import com.seibel.lod.objects.opengl.LodBufferBuilder;
|
||||
import com.seibel.lod.objects.opengl.LodVertexBuffer;
|
||||
import com.seibel.lod.proxy.GlProxy;
|
||||
import com.seibel.lod.render.GlProxy;
|
||||
import com.seibel.lod.render.LodRenderer;
|
||||
import com.seibel.lod.util.DataPointUtil;
|
||||
import com.seibel.lod.util.DetailDistanceUtil;
|
||||
|
||||
+1
-1
@@ -22,10 +22,10 @@ package com.seibel.lod.builders.bufferBuilding.lodTemplates;
|
||||
import java.util.Map;
|
||||
|
||||
import com.seibel.lod.enums.rendering.DebugMode;
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.objects.Box;
|
||||
import com.seibel.lod.objects.opengl.LodBufferBuilder;
|
||||
import com.seibel.lod.wrappers.block.BlockPosWrapper;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.enums.LodDirection;
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -22,10 +22,10 @@ package com.seibel.lod.builders.bufferBuilding.lodTemplates;
|
||||
import java.util.Map;
|
||||
|
||||
import com.seibel.lod.enums.rendering.DebugMode;
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.objects.Box;
|
||||
import com.seibel.lod.objects.opengl.LodBufferBuilder;
|
||||
import com.seibel.lod.wrappers.block.BlockPosWrapper;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.enums.LodDirection;
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,10 +23,10 @@ import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.builders.lodBuilding.LodBuilder;
|
||||
import com.seibel.lod.config.LodConfig;
|
||||
import com.seibel.lod.enums.config.DistanceGenerationMode;
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.objects.lod.LodDimension;
|
||||
import com.seibel.lod.util.LodUtil;
|
||||
import com.seibel.lod.wrappers.chunk.ChunkPosWrapper;
|
||||
|
||||
@@ -29,9 +29,9 @@ import java.util.concurrent.Executors;
|
||||
import org.apache.commons.compress.compressors.xz.XZCompressorInputStream;
|
||||
import org.apache.commons.compress.compressors.xz.XZCompressorOutputStream;
|
||||
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.enums.config.DistanceGenerationMode;
|
||||
import com.seibel.lod.enums.config.VerticalQuality;
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.objects.lod.LodDimension;
|
||||
import com.seibel.lod.objects.lod.LodRegion;
|
||||
import com.seibel.lod.objects.lod.RegionPos;
|
||||
|
||||
@@ -22,8 +22,8 @@ package com.seibel.lod.handlers;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.enums.rendering.FogQuality;
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.objects.math.Mat4f;
|
||||
import com.seibel.lod.wrappers.MinecraftWrapper;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
import com.mojang.blaze3d.matrix.MatrixStack;
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.objects.math.Mat4f;
|
||||
import com.seibel.lod.wrappers.McObjectConverter;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ package com.seibel.lod.objects;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.util.LevelPosUtil;
|
||||
import com.seibel.lod.util.LodUtil;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ package com.seibel.lod.objects.lod;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Map;
|
||||
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.wrappers.world.DimensionTypeWrapper;
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.seibel.lod.objects.opengl;
|
||||
import org.lwjgl.opengl.GL15;
|
||||
|
||||
import com.seibel.lod.enums.rendering.GlProxyContext;
|
||||
import com.seibel.lod.proxy.GlProxy;
|
||||
import com.seibel.lod.render.GlProxy;
|
||||
|
||||
/**
|
||||
* a (almost) exact copy of MC's
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.seibel.lod.proxy;
|
||||
package com.seibel.lod.render;
|
||||
|
||||
import org.lwjgl.glfw.GLFW;
|
||||
import org.lwjgl.opengl.GL;
|
||||
@@ -29,8 +29,8 @@ import org.lwjgl.opengl.GLCapabilities;
|
||||
import com.mojang.blaze3d.systems.IRenderCall;
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import com.seibel.lod.ModInfo;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.enums.rendering.GlProxyContext;
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.render.shader.LodShader;
|
||||
import com.seibel.lod.render.shader.LodShaderProgram;
|
||||
import com.seibel.lod.wrappers.MinecraftWrapper;
|
||||
@@ -26,6 +26,7 @@ import org.lwjgl.opengl.GL20;
|
||||
import org.lwjgl.opengl.GL30;
|
||||
import org.lwjgl.opengl.NVFogDistance;
|
||||
|
||||
import com.seibel.lod.api.lod.ApiShared;
|
||||
import com.seibel.lod.builders.bufferBuilding.LodBufferBuilderFactory;
|
||||
import com.seibel.lod.builders.bufferBuilding.LodBufferBuilderFactory.VertexBuffersAndOffset;
|
||||
import com.seibel.lod.config.LodConfig;
|
||||
@@ -35,13 +36,11 @@ import com.seibel.lod.enums.rendering.FogDistance;
|
||||
import com.seibel.lod.enums.rendering.FogDrawOverride;
|
||||
import com.seibel.lod.enums.rendering.FogQuality;
|
||||
import com.seibel.lod.handlers.ReflectionHandler;
|
||||
import com.seibel.lod.lodApi.ApiShared;
|
||||
import com.seibel.lod.objects.lod.LodDimension;
|
||||
import com.seibel.lod.objects.lod.RegionPos;
|
||||
import com.seibel.lod.objects.math.Mat4f;
|
||||
import com.seibel.lod.objects.opengl.LodVertexBuffer;
|
||||
import com.seibel.lod.objects.rending.NearFarFogSettings;
|
||||
import com.seibel.lod.proxy.GlProxy;
|
||||
import com.seibel.lod.render.shader.LodShaderProgram;
|
||||
import com.seibel.lod.util.DetailDistanceUtil;
|
||||
import com.seibel.lod.util.LevelPosUtil;
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.InputStreamReader;
|
||||
|
||||
import org.lwjgl.opengl.GL20;
|
||||
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
|
||||
/**
|
||||
* This object holds a OpenGL reference to a shader
|
||||
|
||||
@@ -24,8 +24,8 @@ import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.seibel.lod.ModInfo;
|
||||
import com.seibel.lod.api.lod.ClientApi;
|
||||
import com.seibel.lod.enums.LodDirection;
|
||||
import com.seibel.lod.lodApi.ClientApi;
|
||||
import com.seibel.lod.util.LodUtil;
|
||||
import com.seibel.lod.wrappers.block.BlockPosWrapper;
|
||||
import com.seibel.lod.wrappers.chunk.ChunkPosWrapper;
|
||||
|
||||
Reference in New Issue
Block a user