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

public Class FullScreenWindowedTest

extends Object
Class Inheritance
Imports
org.lwjgl.LWJGLException, org.lwjgl.input.Keyboard, .Mouse, org.lwjgl.opengl.Display, .DisplayMode, org.lwjgl.util.vector.Vector2f

Tests switching between windowed and fullscreen
Author
Brian Matzon
Version
$Revision$ $Id$

Field Summary

Modifier and TypeField and Description
private float
angle

angle of quad

private float
angleRotation

degrees to rotate per frame

private static final float
MAX_SPEED

Max speed of all changable attributes

private DisplayMode
mode

Intended deiplay mode

private Vector2f
quadPosition

our quad moving around

private Vector2f
quadVelocity

our quadVelocity

Constructor Summary

AccessConstructor and Description
public
FullScreenWindowedTest()

Creates a FullScreenWindowedTest

Method Summary

Modifier and TypeMethod and Description
private void
cleanup()

Cleans up the test

public void
execute()

Executes the test

private DisplayMode
findDisplayMode(int
Required width
width
,
int
Required height
height
,
int
Minimum required bits per pixel
bpp
)

Retrieves a displaymode, if one such is available

private void
glInit()

Initializes OGL

private void
initialize()

Initializes the test

private void
logic()

Performs the logic

public static void
main(String[] args)

Test entry point

private void
mainLoop()

Runs the main loop of the "test"

private void
processKeyboard()

Processes keyboard input

private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

angleback to summary
private float angle

angle of quad

angleRotationback to summary
private float angleRotation

degrees to rotate per frame

MAX_SPEEDback to summary
private static final float MAX_SPEED

Max speed of all changable attributes

modeback to summary
private DisplayMode mode

Intended deiplay mode

quadPositionback to summary
private Vector2f quadPosition

our quad moving around

quadVelocityback to summary
private Vector2f quadVelocity

our quadVelocity

Constructor Detail

FullScreenWindowedTestback to summary
public FullScreenWindowedTest()

Creates a FullScreenWindowedTest

Method Detail

cleanupback to summary
private void cleanup()

Cleans up the test

executeback to summary
public void execute()

Executes the test

findDisplayModeback to summary
private DisplayMode findDisplayMode(int width, int height, int bpp) throws LWJGLException

Retrieves a displaymode, if one such is available

Parameters
width:int

Required width

height:int

Required height

bpp:int

Minimum required bits per pixel

glInitback to summary
private void glInit()

Initializes OGL

initializeback to summary
private void initialize()

Initializes the test

logicback to summary
private void logic()

Performs the logic

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

Test entry point

mainLoopback to summary
private void mainLoop()

Runs the main loop of the "test"

processKeyboardback to summary
private void processKeyboard()

Processes keyboard input

renderback to summary
private void render()
switchModeback to summary
private void switchMode() throws LWJGLException