diff --git a/core/src/main/java/com/seibel/distanthorizons/core/render/glObject/GLProxy.java b/core/src/main/java/com/seibel/distanthorizons/core/render/glObject/GLProxy.java index f268776ee..147ff3811 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/render/glObject/GLProxy.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/render/glObject/GLProxy.java @@ -103,6 +103,7 @@ public class GLProxy //=============// // constructor // //=============// + //region private GLProxy() throws IllegalStateException { @@ -202,11 +203,14 @@ public class GLProxy LOGGER.info(GLProxy.class.getSimpleName() + " creation successful. OpenGL smiles upon you this day."); } + //endregion + //=========// // getters // //=========// + //region public static boolean hasInstance() { return instance != null; } /** @throws IllegalStateException if the Proxy hasn't been created yet and this is called outside the render thread */ @@ -237,11 +241,14 @@ public class GLProxy return currentContext != 0L; // if the context isn't null, it's the MC context } + //endregion + //=========================// // Worker Thread Runnables // //=========================// + //region public static void queueRunningOnRenderThread(Runnable renderCall) { @@ -287,11 +294,14 @@ public class GLProxy } } + //endregion + //=========// // logging // //=========// + //region /** this method is called on the render thread at the point of the GL Error */ private static void logMessage(GLMessage msg) @@ -359,11 +369,14 @@ public class GLProxy } } + //endregion + //================// // helper methods // //================// + //region private String getFailedVersionInfo(GLCapabilities c) { @@ -384,6 +397,8 @@ public class GLProxy "Buffer Storage: [" + (c.glBufferStorage != 0) + "] <- optional improvement\n"; } + //endregion + }