Top Fields Constructors Methods
org.lwjgl.test.opengl.multithread

pack-priv abstract Class BackgroundLoader

extends Object
Class Inheritance
Imports
org.lwjgl.BufferUtils, .LWJGLException, org.lwjgl.opengl.Drawable, .GLContext, .GLSync, org.lwjgl.util.Color, .ReadableColor, java.nio.ByteBuffer, java.util.concurrent.locks.ReentrantLock

Field Summary

Modifier and TypeField and Description
private Drawable
private GLSync
private static final int
private final ReentrantLock
private boolean
private int
private ByteBuffer
private static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private void
createCheckerTexture(final ReadableColor a, final ReadableColor b, final int size)

private void
pack-priv abstract Drawable
pack-priv int
private static byte
lerp(final int a, final int b, final float l)

pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

drawableback to summary
private Drawable drawable
fenceback to summary
private GLSync fence
HEIGHTback to summary
private static final int HEIGHT
lockback to summary
private final ReentrantLock lock
runningback to summary
private boolean running
texIDback to summary
private int texID
textureback to summary
private ByteBuffer texture
WIDTHback to summary
private static final int WIDTH

Constructor Detail

BackgroundLoaderback to summary
protected BackgroundLoader()

Method Detail

cleanupback to summary
pack-priv void cleanup()
createCheckerTextureback to summary
private void createCheckerTexture(final ReadableColor a, final ReadableColor b, final int size)
createGradientTextureback to summary
private void createGradientTexture(final ReadableColor a, final ReadableColor b)
getDrawableback to summary
pack-priv abstract Drawable getDrawable() throws LWJGLException
getTexIDback to summary
pack-priv int getTexID()
lerpback to summary
private static byte lerp(final int a, final int b, final float l)
startback to summary
pack-priv void start() throws LWJGLException