Top Description Fields Constructors Methods
org.lwjgl.test

public Class WindowCreationTest

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

Small class for testing that the Window is creatable If this class can't run, LWJGL wont work!
Author
Brian Matzon

Field Summary

Modifier and TypeField and Description
private float
color

Color being cleared to

private int
direction

Direction moving clearing color

private DisplayMode[]
fixed_modes

Fixed selectable modes

private boolean
fullscreen

Whether we're in fullscreen mode

private DisplayMode[]
located_modes

Locatable modes

private boolean
running

Whether we're running

private int
window_x

Window position x

private int
window_y

Window position y

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
destroy()

Destroys any resources used while running test

private void
execute()

Executes the test

private void
findFixedModes()

Locate fixed modes

private DisplayMode
getDisplayMode(int width, int height, int bpp, int freq)

Gets a specific display mode

private void
handleInput()

Handles the input

public boolean

Returns:

true if initialization was successfull
initialize
()

Initializes the test

public static void
main(String[]
ignored params to app
args
)

Main entry point

private void
protected boolean
setDefaultDisplayMode()

Sets the display mode for fullscreen mode

private void
setMode(int mode)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

colorback to summary
private float color

Color being cleared to

directionback to summary
private int direction

Direction moving clearing color

fixed_modesback to summary
private DisplayMode[] fixed_modes

Fixed selectable modes

fullscreenback to summary
private boolean fullscreen

Whether we're in fullscreen mode

located_modesback to summary
private DisplayMode[] located_modes

Locatable modes

runningback to summary
private boolean running

Whether we're running

window_xback to summary
private int window_x

Window position x

window_yback to summary
private int window_y

Window position y

Constructor Detail

WindowCreationTestback to summary
public WindowCreationTest()

Method Detail

destroyback to summary
public void destroy()

Destroys any resources used while running test

executeback to summary
private void execute()

Executes the test

findFixedModesback to summary
private void findFixedModes()

Locate fixed modes

getDisplayModeback to summary
private DisplayMode getDisplayMode(int width, int height, int bpp, int freq)

Gets a specific display mode

handleInputback to summary
private void handleInput()

Handles the input

initializeback to summary
public boolean initialize()

Initializes the test

Returns:boolean

true if initialization was successfull

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

Main entry point

Parameters
args:String[]

ignored params to app

renderback to summary
private void render()
setDefaultDisplayModeback to summary
protected boolean setDefaultDisplayMode()

Sets the display mode for fullscreen mode

setModeback to summary
private void setMode(int mode)