public final class RenderLoop
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
RenderLoop.IDisplayable |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
queued |
protected boolean |
starten |
protected boolean |
unqueued |
| Constructor and Description |
|---|
RenderLoop(RenderLoop.IDisplayable displayable) |
RenderLoop(RenderLoop.IDisplayable displayable,
boolean ownThread) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCurrent() |
boolean |
isStarted() |
void |
pause()
Pause the rendering loop
|
void |
resume()
Resume the rendering loop
|
void |
start()
Start rendering loop
|
void |
stop()
Stop rendering thread
|
protected volatile boolean queued
protected volatile boolean starten
protected volatile boolean unqueued
public RenderLoop(RenderLoop.IDisplayable displayable)
displayable - and RenderLoop.IDisplayable object to receive eventspublic RenderLoop(RenderLoop.IDisplayable displayable, boolean ownThread)
public final void start()
java.lang.IllegalStateException - if was already startenisStarted()public boolean isStarted()
RenderLoop has been startenpublic final void pause()
public final void resume()
public final void stop()
public final boolean isCurrent()
Thread is this RenderLoop Thread.Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com