Fix render API vs Engine enum
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.seibel.distanthorizons.api.enums.config;
|
||||
|
||||
/**
|
||||
* VULKAN, <br>
|
||||
* OPEN_GL, <br>
|
||||
*
|
||||
* @see EDhApiRenderingEngine
|
||||
*
|
||||
* @since API 7.0.0
|
||||
* @version 2026-3-10
|
||||
*/
|
||||
public enum EDhApiRenderingApi
|
||||
{
|
||||
VULKAN,
|
||||
OPEN_GL;
|
||||
|
||||
}
|
||||
+4
-4
@@ -1,16 +1,16 @@
|
||||
package com.seibel.distanthorizons.api.enums.config;
|
||||
|
||||
import com.seibel.distanthorizons.coreapi.ModInfo;
|
||||
|
||||
/**
|
||||
* AUTO, <br>
|
||||
* OPEN_GL, <br>
|
||||
* BLAZE_3D, <br><br>
|
||||
*
|
||||
* @since API 6.0.0
|
||||
* @see EDhApiRenderingApi
|
||||
*
|
||||
* @since API 7.0.0
|
||||
* @version 2026-3-10
|
||||
*/
|
||||
public enum EDhApiRenderApi
|
||||
public enum EDhApiRenderingEngine
|
||||
{
|
||||
AUTO,
|
||||
OPEN_GL,
|
||||
+2
-2
@@ -19,14 +19,14 @@
|
||||
|
||||
package com.seibel.distanthorizons.api.interfaces.override.rendering;
|
||||
|
||||
import com.seibel.distanthorizons.api.enums.config.EDhApiRenderApi;
|
||||
import com.seibel.distanthorizons.api.enums.config.EDhApiRenderingEngine;
|
||||
import com.seibel.distanthorizons.api.interfaces.override.IDhApiOverrideable;
|
||||
import com.seibel.distanthorizons.api.interfaces.render.IDhApiRenderProxy;
|
||||
|
||||
/**
|
||||
* <b>Note: </b><br>
|
||||
* This is only used if Distant Horizons'
|
||||
* {@link IDhApiRenderProxy#getRenderingApi()} returns {@link EDhApiRenderApi#OPEN_GL}
|
||||
* {@link IDhApiRenderProxy#getRenderingApi()} returns {@link EDhApiRenderingEngine#OPEN_GL}
|
||||
* and {@link IDhApiRenderProxy#isNativeRenderer()} returns true.
|
||||
* ie this is only used when DH is doing native OpenGL rendering,
|
||||
* if DH is using Blaze3D this interface will be ignored.
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@
|
||||
|
||||
package com.seibel.distanthorizons.api.interfaces.override.rendering;
|
||||
|
||||
import com.seibel.distanthorizons.api.enums.config.EDhApiRenderApi;
|
||||
import com.seibel.distanthorizons.api.enums.config.EDhApiRenderingEngine;
|
||||
import com.seibel.distanthorizons.api.interfaces.override.IDhApiOverrideable;
|
||||
import com.seibel.distanthorizons.api.interfaces.render.IDhApiRenderProxy;
|
||||
import com.seibel.distanthorizons.api.interfaces.render.IDhApiRenderableBoxGroup;
|
||||
@@ -31,7 +31,7 @@ import com.seibel.distanthorizons.api.objects.render.DhApiRenderableBoxGroupShad
|
||||
/**
|
||||
* <b>Note: </b><br>
|
||||
* This is only used if Distant Horizons'
|
||||
* {@link IDhApiRenderProxy#getRenderingApi()} returns {@link EDhApiRenderApi#OPEN_GL}
|
||||
* {@link IDhApiRenderProxy#getRenderingApi()} returns {@link EDhApiRenderingEngine#OPEN_GL}
|
||||
* and {@link IDhApiRenderProxy#isNativeRenderer()} returns true.
|
||||
* ie this is only used when DH is doing native OpenGL rendering,
|
||||
* if DH is using Blaze3D this interface will be ignored.
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@
|
||||
|
||||
package com.seibel.distanthorizons.api.interfaces.override.rendering;
|
||||
|
||||
import com.seibel.distanthorizons.api.enums.config.EDhApiRenderApi;
|
||||
import com.seibel.distanthorizons.api.enums.config.EDhApiRenderingEngine;
|
||||
import com.seibel.distanthorizons.api.interfaces.override.IDhApiOverrideable;
|
||||
import com.seibel.distanthorizons.api.interfaces.render.IDhApiRenderProxy;
|
||||
import com.seibel.distanthorizons.api.methods.events.sharedParameterObjects.DhApiRenderParam;
|
||||
@@ -28,7 +28,7 @@ import com.seibel.distanthorizons.api.objects.math.DhApiVec3f;
|
||||
/**
|
||||
* <b>Note: </b><br>
|
||||
* This is only used if Distant Horizons'
|
||||
* {@link IDhApiRenderProxy#getRenderingApi()} returns {@link EDhApiRenderApi#OPEN_GL}
|
||||
* {@link IDhApiRenderProxy#getRenderingApi()} returns {@link EDhApiRenderingEngine#OPEN_GL}
|
||||
* and {@link IDhApiRenderProxy#isNativeRenderer()} returns true.
|
||||
* ie this is only used when DH is doing native OpenGL rendering,
|
||||
* if DH is using Blaze3D this interface will be ignored.
|
||||
|
||||
+5
-5
@@ -19,7 +19,8 @@
|
||||
|
||||
package com.seibel.distanthorizons.api.interfaces.render;
|
||||
|
||||
import com.seibel.distanthorizons.api.enums.config.EDhApiRenderApi;
|
||||
import com.seibel.distanthorizons.api.enums.config.EDhApiRenderingApi;
|
||||
import com.seibel.distanthorizons.api.enums.config.EDhApiRenderingEngine;
|
||||
import com.seibel.distanthorizons.api.methods.events.abstractEvents.DhApiAfterDhInitEvent;
|
||||
import com.seibel.distanthorizons.api.objects.DhApiResult;
|
||||
|
||||
@@ -47,9 +48,8 @@ public interface IDhApiRenderProxy
|
||||
DhApiResult<Boolean> clearRenderDataCache();
|
||||
|
||||
/**
|
||||
* Returns which specific {@link EDhApiRenderApi}
|
||||
* Distant Horizons will use for rendering. <br>
|
||||
* Will not return {@link EDhApiRenderApi#AUTO}.<br>
|
||||
* Returns which specific {@link EDhApiRenderingApi}
|
||||
* Distant Horizons will use for rendering. <br><br>
|
||||
*
|
||||
* @throws IllegalStateException if no renderer has been bound yet,
|
||||
* wait till after {@link DhApiAfterDhInitEvent} has been fired
|
||||
@@ -57,7 +57,7 @@ public interface IDhApiRenderProxy
|
||||
* @see DhApiAfterDhInitEvent
|
||||
* @since API 7.0.0
|
||||
*/
|
||||
EDhApiRenderApi getRenderingApi() throws IllegalStateException;
|
||||
EDhApiRenderingApi getRenderingApi() throws IllegalStateException;
|
||||
/**
|
||||
* Returns true if the current renderer
|
||||
* is calling the base rendering API's method calls. <br>
|
||||
|
||||
Reference in New Issue
Block a user