Package zombie.core.opengl
Class RenderThread
java.lang.Object
zombie.core.opengl.RenderThread
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
static int
static void
init()
static void
static void
invokeOnRenderContext
(Runnable toInvoke) static <T1,
T2, T3, T4>
voidinvokeOnRenderContext
(T1 val1, T2 val2, T3 val3, T4 val4, Invokers.Params4.ICallback<T1, T2, T3, T4> invoker) static <T1,
T2, T3> void invokeOnRenderContext
(T1 val1, T2 val2, T3 val3, Invokers.Params3.ICallback<T1, T2, T3> invoker) static <T1,
T2> void invokeOnRenderContext
(T1 val1, T2 val2, Invokers.Params2.ICallback<T1, T2> invoker) static <T1> void
invokeOnRenderContext
(T1 val1, Invokers.Params1.ICallback<T1> invoker) static boolean
static boolean
static boolean
static boolean
static void
logGLException
(org.lwjglx.opengl.OpenGLException glEx) static void
logGLException
(org.lwjglx.opengl.OpenGLException glEx, boolean stackTrace) static void
static void
queueInvokeOnRenderContext
(Runnable runnable) static void
queueInvokeOnRenderContext
(RenderContextQueueItem queueItem) static void
Ready()
static void
static void
setWaitForRenderState
(boolean wait) static void
shutdown()
static void
-
Field Details
-
RenderThread
-
m_contextLock
-
-
Constructor Details
-
RenderThread
public RenderThread()
-
-
Method Details
-
init
public static void init() -
initServerGUI
public static void initServerGUI() -
renderLoop
public static void renderLoop() -
isWaitForRenderState
public static boolean isWaitForRenderState() -
setWaitForRenderState
public static void setWaitForRenderState(boolean wait) -
logGLException
public static void logGLException(org.lwjglx.opengl.OpenGLException glEx) -
logGLException
public static void logGLException(org.lwjglx.opengl.OpenGLException glEx, boolean stackTrace) -
Ready
public static void Ready() -
invokeOnRenderContext
- Throws:
RenderContextQueueException
-
invokeOnRenderContext
-
invokeOnRenderContext
public static <T1,T2> void invokeOnRenderContext(T1 val1, T2 val2, Invokers.Params2.ICallback<T1, T2> invoker) -
invokeOnRenderContext
public static <T1,T2, void invokeOnRenderContextT3> (T1 val1, T2 val2, T3 val3, Invokers.Params3.ICallback<T1, T2, T3> invoker) -
invokeOnRenderContext
public static <T1,T2, void invokeOnRenderContextT3, T4> (T1 val1, T2 val2, T3 val3, T4 val4, Invokers.Params4.ICallback<T1, T2, T3, T4> invoker) -
queueInvokeOnRenderContext
-
queueInvokeOnRenderContext
-
shutdown
public static void shutdown() -
isCloseRequested
public static boolean isCloseRequested() -
getDisplayWidth
public static int getDisplayWidth() -
getDisplayHeight
public static int getDisplayHeight() -
isRunning
public static boolean isRunning() -
startRendering
public static void startRendering() -
onGameThreadExited
public static void onGameThreadExited() -
isCursorVisible
public static boolean isCursorVisible()
-