A B C D E F G I K L M O P R S T U V W

A

alExit() - Static method in class SoundScape
 
allocateSoundData() - Static method in class SoundScape
Return integer handle to allocated sound data buffer.
allocateTexture() - Static method in class GLApp
Allocate a texture (glGenTextures) and return the handle to it.
allocBytes(byte[]) - Static method in class GLApp
 
allocBytes(byte[]) - Static method in class GLImage
Same function as in GLApp.java.
allocBytes(int) - Static method in class GLApp
 
allocDoubles(int) - Static method in class GLApp
 
allocFloats(float[]) - Static method in class GLApp
 
allocFloats(float[]) - Static method in class SoundScape
 
allocFloats(int) - Static method in class GLApp
 
allocInts(int) - Static method in class GLApp
 
allocInts(int) - Static method in class SoundScape
 
allocInts(int[]) - Static method in class GLApp
 
aspectRatio - Static variable in class GLApp
 

B

bufferModelviewMatrix - Static variable in class GLApp
 
bufferProjectionMatrix - Static variable in class GLApp
 
bufferSettingInt - Static variable in class GLApp
 
bufferViewport - Static variable in class GLApp
 
bufferZdepth - Static variable in class GLApp
 
buildFont(int, int) - Static method in class GLApp
Build the character set display list from the given texture.
buildFont(String, int) - Static method in class GLApp
Build a character set from the given texture image.

C

calculateNormals() - Method in class GLModel
 
cleanup() - Method in class GLApp
Run() calls this right before exit.
commitChanges() - Method in class GLModel
 
convertARGBtoRGBA(int[]) - Static method in class GLImage
Convert pixels from java default ARGB int format to byte array in RGBA format.
convertImagePixels(int[], int, int, boolean) - Static method in class GLImage
Convert ARGB pixels to a ByteBuffer containing RGBA pixels.
Can be drawn in ORTHO mode using:
GL.glDrawPixels(imgW, imgH, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, byteBuffer);
If flipVertically is true, pixels will be flipped vertically (for OpenGL coord system).
create() - Static method in class SoundScape
Prepare the SoundScape class for use
cursorX - Static variable in class GLApp
 
cursorY - Static variable in class GLApp
 

D

deleteSoundData(int) - Static method in class SoundScape
Delete the sound data buffer with the given handle
deleteSoundSource(int) - Static method in class SoundScape
Delete the sound source with the given handle
demo() - Static method in class SoundScape
Run a bare-bones demo of SoundScape.
depthBufferBits - Static variable in class GLApp
 
destroy() - Static method in class SoundScape
Free up allocated sounds and shutdown audio environment.
destroyFont() - Static method in class GLApp
Clean up the allocated display lists for the character set.
displayColorBits - Static variable in class GLApp
 
displayFrequency - Static variable in class GLApp
 
displayHeight - Static variable in class GLApp
 
displayWidth - Static variable in class GLApp
 
DM - Static variable in class GLApp
 
drawCursor(int) - Method in class GLApp
Draw a cursor image textured onto a quad at cursor position.
drawImageInt(GLImage, int, int, float, float) - Static method in class GLApp
Draw an image at the given x,y.
drawImageQuad(int, int, int, float, float) - Static method in class GLApp
Draw an image at the given x,y.
drawQuad(int, float, float, float, float, float) - Static method in class GLApp
Draw an image (loaded into a texture) onto a quad, in 3D model space.

E

exit(int) - Static method in class SoundScape
 

F

finished - Static variable in class GLApp
 
finishedKey - Static variable in class GLApp
 
flipPixels() - Method in class GLImage
Flip the image pixels vertically
flipPixels(int[], int, int) - Static method in class GLImage
Flip an array of pixels vertically
frameCount - Static variable in class GLApp
 
frameDraw(int) - Static method in class GLApp
Draw the screen-sized image over entire screen area.
frameSave(int) - Static method in class GLApp
Save entire screen image to a texture.
frameSave(Pbuffer, int) - Static method in class GLApp
Copy the pbuffer contents to a texture.
fullScreen - Static variable in class GLApp
 

G

getBytesFromFile(File) - Static method in class GLImage
Given File object, returns the contents of the file as a byte array.
getBytesFromFile(String) - Static method in class GLImage
Given name of file, return entire file as a byte array.
getData(String) - Static method in class SoundScape
Reads the file into a ByteBuffer
getDisplayMode(int, int, int, int) - Static method in class GLApp
Retrieve a DisplayMode object with the given params
getFramePixels(int, int, GLImage) - Static method in class GLApp
Get pixels from frame buffer into an existing image.
getFramePixels(int, int, int, int) - Static method in class GLApp
Get pixels from frame buffer.
getImagePixels() - Method in class GLImage
Return the image pixels in default Java int ARGB format.
getInputStream_OLD(String) - Static method in class GLApp
 
getInputStream(String) - Static method in class GLApp
Open a file InputStream and trap errors.
getInputStream(String) - Static method in class GLModel
Open a file InputStream and trap errors.
getMatrixAsArray(FloatBuffer) - Static method in class GLApp
Convert a FloatBuffer matrix to a 4x4 float array.
getModelviewMatrix() - Static method in class GLApp
 
getModelviewMatrixA() - Static method in class GLApp
Return the modelview matrix as a 4x4 float array
getPixelsARGB() - Method in class GLImage
return int array containing pixels in ARGB format (default Java byte order).
getPixelsRGBA() - Method in class GLImage
return ByteBuffer containing pixels in RGBA format (commmonly used in OpenGL).
getPowerOfTwoBiggerThan(int) - Static method in class GLApp
Find a power of two big enough to hold the given dimension.
getProjectionMatrix() - Static method in class GLApp
 
getProjectionMatrixA() - Static method in class GLApp
Return the projection matrix as a 4x4 float array
getProperty(String) - Static method in class GLApp
Return a property from the properties file.
getSettingInt(int) - Static method in class GLApp
 
getTimeInMillis() - Static method in class GLApp
 
getTimeInSeconds() - Static method in class GLApp
 
getViewport() - Static method in class GLApp
 
getViewportA() - Static method in class GLApp
Return the Viewport data as array of 4 floats
getWorldCoordsAtScreen(int, int) - Static method in class GLApp
For given screen xy, return the world xyz coords in a float array.
getWorldCoordsAtScreen(int, int, float) - Static method in class GLApp
For given screen xy and z depth, return the world xyz coords in a float array.
getZDepth(int, int) - Static method in class GLApp
Return the Z depth of the single pixel at the given screen position.
getZDepthAtOrigin() - Static method in class GLApp
Find the Z depth of the origin in the projected world view.
GLApp - class GLApp.
Collection of functions to init and run an OpenGL app using LWJGL.
GLAPP_VERSION - Static variable in class GLApp
 
GLApp() - Constructor for class GLApp
 
GLImage - class GLImage.
Loads an Image from file, stores pixels as ARGB int array, and RGBA ByteBuffer.
GLImage() - Constructor for class GLImage
 
GLImage(ByteBuffer, int, int) - Constructor for class GLImage
Store pixels passed in a ByteBuffer.
GLImage(String) - Constructor for class GLImage
Load pixels from an image file.
GLModel - class GLModel.
Store and render a textured mesh.
GLModel() - Constructor for class GLModel
 
GLModel(String) - Constructor for class GLModel
 
glPrint(int, int, int, String) - Static method in class GLApp
Render a text string onto the screen, using the character set created by buildCharSet().
glText(float, float, float, int, float, String) - Static method in class GLApp
Render a text string in model space, using the character set created by buildCharSet().

I

init() - Method in class GLApp
The three init functions below must be called to get the display, mouse and OpenGL context ready for use.
initBuffers() - Method in class GLApp
For memory efficiency and performance, it's best to init NIO buffers once and reuse, particularly for calls that may be repeated often.
initDisplay() - Static method in class GLApp
Initialize the Display mode, viewport size, and open a Window.
initInput() - Static method in class GLApp
Initialize the Keyboard and Mouse.
initOpenGL() - Method in class GLApp
Called by GLApp.run() to initialize OpenGL rendering.
isLoaded() - Method in class GLImage
return true if image has been loaded successfully
isPlaying(int) - Static method in class SoundScape
 

K

keyDown(int) - Method in class GLApp
 
keyUp(int) - Method in class GLApp
 

L

loadImage(String) - Static method in class GLApp
Load an image from the given file and return a GLImage object.
loadImage(String) - Method in class GLImage
Load an image file and hold its width/height.
loadImageFromFile_ORIG(String) - Static method in class GLImage
 
loadImageFromFile(String) - Static method in class GLImage
Load an image from file.
loadImageInt(String) - Static method in class GLApp
Load an image from the given file and return an IntBuffer containing ARGB pixels.
Can be used to create Native Cursors.
loadImagePixels(String) - Static method in class GLApp
Load an image from the given file and return a ByteBuffer containing RGBA pixels.
Can be used to create textures.
loadMesh(String) - Method in class GLModel
 
loadSettings(String) - Method in class GLApp
Load configuration settings from optional properties file.
loadSoundData(String) - Static method in class SoundScape
Load sound data from a file into a buffer.

M

main(String[]) - Static method in class GLApp
 
mainLoop() - Method in class GLApp
Called by the run() loop.
makeDisplayList() - Method in class GLModel
Compile the mesh into display list
makeImage(int, int) - Static method in class GLApp
Make a blank image of the given size
makeNativeCursor(String) - Static method in class GLApp
Create a native cursor from the given image file.
My cursor motion doesn't work with native cursor since verion .95 I'll have to fix someday.
makePbuffer(int, int) - Method in class GLApp
Create a Pbuffer for use as an offscreen buffer, with the given width and height.
makeSoundSource(int) - Static method in class SoundScape
Return integer handle to new sound source.
makeSphere() - Static method in class GLApp
Create a Display List of a sphere.
makeTexture(ByteBuffer, int, int) - Static method in class GLApp
Create a texture from the given pixels in RGBA format.
makeTexture(GLImage) - Static method in class GLApp
Create a texture from the given image.
makeTextureForScreen(int) - Static method in class GLApp
Create a texture large enough to hold the screen image.
makeTextureMipMap(GLImage) - Static method in class GLApp
Build Mipmaps for texture (builds different versions of the picture for distances - looks better)
makeTimestamp() - Method in class GLApp
make a time stamp for filename
mouseDown(int, int) - Method in class GLApp
 
mouseMove(int, int) - Method in class GLApp
Called by mainLoop() when mouse moves
mouseUp(int, int) - Method in class GLApp
 

O

origDM - Static variable in class GLApp
 

P

pause(boolean) - Static method in class SoundScape
Pause or resume all sounds playing in the SoundScape
pause(int, boolean) - Static method in class SoundScape
Pause or resume one sound
play(int) - Static method in class SoundScape
Play a sound source
prevTime - Static variable in class GLApp
 
project(float, float, float, float[]) - Static method in class GLApp
Return screen coordinates for a given point in world space.

R

render() - Method in class GLApp
Called by mainLoop() to render one frame.
render() - Method in class GLModel
Draw this mesh with current texture
renderCube() - Static method in class GLApp
Render a unit cube, using current color, texture and material.
renderCube() - Static method in class GLModel
Render a unit cube, using current color, texture and material.
renderMesh(idx3d_Object) - Static method in class GLModel
Basic mesh render function, using current color, material and texture.
renderMesh(idx3d_Object, int) - Static method in class GLModel
Render a mesh with the given texture.
renderMeshOBJ(idx3d_Object, int) - Static method in class GLModel
Render OBJ mesh (may have multiple texture coords per vert!!??!!)
renderSphere() - Static method in class GLApp
Render a unit sphere at the origin, using current color, texture and material.
renderSphere() - Static method in class GLModel
Render a unit sphere at the origin, using current color, texture and material.
rotate(float, float, float) - Method in class GLModel
 
run() - Method in class GLApp
Runs the application.

S

scale(float, float, float) - Method in class GLModel
Functions to alter mesh size, position, orientation.
screenShot(int, int, String) - Static method in class GLApp
Save the contents of the current render buffer to a PNG image.
selectDisplay() - Method in class GLApp
Make the Display the current context for OpenGL commands.
selectPbuffer(Pbuffer) - Method in class GLApp
Make the pbuffer the current context for opengl commands.
setAmbientLight(float[]) - Static method in class GLApp
Set the color of the Global Ambient Light.
setFramePixels(GLImage) - Static method in class GLApp
Write pixels to frame buffer from an existing image.
setGain(int, float) - Static method in class SoundScape
 
setLight(int, float[], float[], float[]) - Static method in class GLApp
Set the color of a 'positional' light (a light that has a specific position within the scene).
setListenerOrientation(float, float, float, float, float, float) - Static method in class SoundScape
Set orientation of the listener.
setListenerPosition(float, float, float) - Static method in class SoundScape
Set world coordinates of listener.
setListenerVelocity(float, float, float) - Static method in class SoundScape
Set world coordinates of listener.
setLoop(int, boolean) - Static method in class SoundScape
 
setOrtho() - Static method in class GLApp
Set OpenGL to render in flat 2D (no perspective).
setOrthoOff() - Static method in class GLApp
Turn 2D mode off.
setOrthoOn() - Static method in class GLApp
Set OpenGL to render in flat 2D (no perspective) on top of current scene.
setPerspective() - Static method in class GLApp
Set OpenGL to render in 3D perspective.
setPitch(int, float) - Static method in class SoundScape
 
setReferenceDistance(float) - Static method in class SoundScape
Set the reference distance, used by OpenAL to calculate how fast sound drops off.
setSoundPosition(int, float[]) - Static method in class SoundScape
 
setSoundPosition(int, float, float, float) - Static method in class SoundScape
 
setSpotLight(int, float[], float[], float[], float[], float) - Static method in class GLApp
 
setTexture(int) - Method in class GLModel
Set texture for mesh.
setTextureTile(float, float) - Static method in class GLApp
How many times to repeat texture horizontally and vertically.
setTextureTile(float, float) - Method in class GLModel
How many times to repeat texture horizontally and vertically.
settings - Static variable in class GLApp
 
SIZE_BYTE - Static variable in class GLApp
 
SIZE_BYTE - Static variable in class GLImage
 
SIZE_BYTE - Static variable in class GLModel
 
SIZE_DOUBLE - Static variable in class GLApp
 
SIZE_DOUBLE - Static variable in class GLModel
 
SIZE_FLOAT - Static variable in class GLApp
 
SIZE_FLOAT - Static variable in class GLModel
 
SIZE_FLOAT - Static variable in class SoundScape
 
SIZE_INT - Static variable in class GLApp
 
SIZE_INT - Static variable in class GLModel
 
SIZE_INT - Static variable in class SoundScape
 
sortTriangles() - Method in class GLModel
 
sortTriangles(idx3d_Triangle[], int, int) - Static method in class GLModel
Sort an array of triangles by Z depth.
SoundScape - class SoundScape.
SoundScape wraps OpenAL functions to create a sound environment.
SoundScape() - Constructor for class SoundScape
Creates an instance of SoundScape BUT SoundScape is meant to be used as static class.
stop() - Static method in class SoundScape
Stop all sounds playing in the SoundScape
stop(int) - Static method in class SoundScape
Stop playing one sound.

T

ticksPerSecond - Static variable in class GLApp
 
tileFactorHoriz - Static variable in class GLApp
 
tileFactorHoriz - Static variable in class GLModel
 
tileFactorVert - Static variable in class GLApp
 
tileFactorVert - Static variable in class GLModel
 
translate(float, float, float) - Method in class GLModel
 

U

unProject(float, float, float, float[]) - Static method in class GLApp
Return world coordinates for a given point on the screen.

V

viewportH - Static variable in class GLApp
 
viewportW - Static variable in class GLApp
 
viewportX - Static variable in class GLApp
 
viewportY - Static variable in class GLApp
 

W

windowTitle - Static variable in class GLApp
 

A B C D E F G I K L M O P R S T U V W