Top Description Constructors Methods
org.lwjgl.test

public Class DisplayTest

extends Object
Class Inheritance
Imports
org.lwjgl.LWJGLException, org.lwjgl.opengl.Display, .DisplayMode


Test class for Display & DisplayMode
Author
Brian Matzon
Version
$Revision$ $Id$

Constructor Summary

AccessConstructor and Description
public
DisplayTest()

Creates a new DisplayTest

Method Summary

Modifier and TypeMethod and Description
private void
changeConfig(float
gamma value to change to
gamma
,
float
brightness value to change to
brightness
,
float
contrast value to change to
contrast
)

Changes the Displat configuration

private void
currentTest()

Prints some info about the current mode

public void
executeTest()

Runs the tests

public static void
main(String[]
ignored
args
)

Tests the Sys class, and serves as basic usage test

private void
pause(long
milliseconds to sleep
time
)

Pause current thread for a specified time

private void
queryModesTest()

Tests querying for modes

private void
setDisplayConfigurationTest()

Tests the DisplayConfiguration

private void
setDisplayModeTest()

Tests setting display modes

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DisplayTestback to summary
public DisplayTest()

Creates a new DisplayTest

Method Detail

changeConfigback to summary
private void changeConfig(float gamma, float brightness, float contrast)

Changes the Displat configuration

Parameters
gamma:float

gamma value to change to

brightness:float

brightness value to change to

contrast:float

contrast value to change to

currentTestback to summary
private void currentTest()

Prints some info about the current mode

executeTestback to summary
public void executeTest() throws LWJGLException

Runs the tests

mainback to summary
public static void main(String[] args) throws LWJGLException

Tests the Sys class, and serves as basic usage test

Parameters
args:String[]

ignored

pauseback to summary
private void pause(long time)

Pause current thread for a specified time

Parameters
time:long

milliseconds to sleep

queryModesTestback to summary
private void queryModesTest() throws LWJGLException

Tests querying for modes

setDisplayConfigurationTestback to summary
private void setDisplayConfigurationTest()

Tests the DisplayConfiguration

setDisplayModeTestback to summary
private void setDisplayModeTest() throws LWJGLException

Tests setting display modes