A B C D E F G H I K L M N O P R S T U V W X Y Z

A

activateMask(int) - Static method in class glapp.GLApp
Restrict rendering to the masked area.
activateTexture(int) - Static method in class glapp.GLApp
"Select" the given texture for further texture operations.
add(GL_Vector) - Method in class glmodel.GL_Vector
Add a vector to this vector
add(float) - Method in class glmodel.GL_Vector
Add a value to this vector
add(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
Return a+b as a new vector
addTriangle(GL_Mesh, Face, ArrayList, ArrayList) - Method in class glmodel.GL_3DS_Importer
Add a new triangle to the GL_Object.
addTriangle(GL_Triangle) - Method in class glmodel.GL_Mesh
 
addTriangle(int, int, int) - Method in class glmodel.GL_Mesh
 
addTriangle(GL_Vertex, GL_Vertex, GL_Vertex) - Method in class glmodel.GL_Mesh
 
addTriangle(GL_Triangle, int, int) - Method in class glmodel.GL_Mesh
add triangle to given group.
addTriangle(GL_Mesh, int, int, Face, ArrayList, ArrayList, int, int, int, int) - Method in class glmodel.GL_OBJ_Importer
Add a new triangle to the GL_Mesh.
addVertex(GL_Vertex) - Method in class glmodel.GL_Mesh
 
addVertex(float, float, float) - Method in class glmodel.GL_Mesh
 
alExit() - Static method in class glsound.SoundScape
 
allocateTexture() - Static method in class glapp.GLApp
Allocate a texture (glGenTextures) and return the handle to it.
allocBytes(int) - Static method in class glapp.GLApp
 
allocBytes(byte[]) - Static method in class glapp.GLApp
 
allocBytes(byte[]) - Static method in class glapp.GLImage
Same function as in GLApp.java.
allocDoubles(int) - Static method in class glapp.GLApp
 
allocDoubles(double[]) - Static method in class glapp.GLApp
 
allocFloats(int) - Static method in class glapp.GLApp
 
allocFloats(float[]) - Static method in class glapp.GLApp
 
allocFloats(int) - Static method in class glmodel.GL_Mesh
 
allocFloats(int) - Static method in class glmodel.GLMaterial
 
allocFloats(float[]) - Static method in class glmodel.GLMaterial
 
allocFloats(float[]) - Static method in class glsound.SoundScape
 
allocInts(int) - Static method in class glapp.GLApp
 
allocInts(int[]) - Static method in class glapp.GLApp
 
allocInts(int) - Static method in class glsound.SoundScape
 
ambient - Variable in class glmodel.GLMaterial
 
angle(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
returns the angle between 2 vectors
angleXY(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
returns the angle between 2 vectors on the XY plane.
angleXZ(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
returns the angle between 2 vectors on the XZ plane.
appletBaseURL - Static variable in class glapp.GLApp
 
apply() - Method in class glmodel.GLMaterial
Call glMaterial() to activate these material properties in the OpenGL environment.
applyMaterial() - Static method in class glapp.GLApp
Call glMaterial() to activate these material properties in the OpenGL environment.
aspectRatio - Static variable in class glapp.GLApp
 

B

beginDisplayList() - Static method in class glapp.GLApp
Begin a display list.
beginMask(int) - Static method in class glapp.GLApp
Begin creating a mask.
bottompoint - Variable in class glmodel.GL_OBJ_Reader
 
bufferModelviewMatrix - Static variable in class glapp.GLApp
 
bufferProjectionMatrix - Static variable in class glapp.GLApp
 
bufferViewport - Static variable in class glapp.GLApp
 
buildFont(String, int) - Static method in class glapp.GLApp
Build a character set from the given texture image.
buildFont(int, int) - Static method in class glapp.GLApp
Build the character set display list from the given texture.
buildFont(int, int, int) - Method in class glapp.GLFont
Build the character set display list from the given texture.

C

calcDimensions() - Method in class glmodel.GL_OBJ_Reader
Find min/max points of mesh.
calcZdepth() - Method in class glmodel.GL_Triangle
Calculate average screen Z depth of this triangle.
calcZDepths() - Method in class glmodel.GL_Mesh
Calculate the average Z depth of each triangle.
callDisplayList(int) - Static method in class glapp.GLApp
Render the geometry stored in a display list.
camera - Variable in class glapp.GLCam
 
camSpeedR - Variable in class glapp.GLCam
 
camSpeedXZ - Variable in class glapp.GLCam
 
camSpeedY - Variable in class glapp.GLCam
 
cleanup() - Method in class glapp.GLApp
Run() calls this right before exit.
clear() - Method in class glapp.GLLine
reset the line
clear() - Static method in class glmodel.GLMaterial
Reset all material settings to the default values.
clearMask() - Static method in class glapp.GLApp
clear the stencil buffer
close() - Method in class glapp.GLLine
Close the line by adding a line segment that connects the last point to the first.
colorBeige - Static variable in class glmodel.GLMaterial
 
colorBlack - Static variable in class glapp.GLApp
 
colorBlack - Static variable in class glmodel.GLMaterial
 
colorBlue - Static variable in class glapp.GLApp
 
colorBlue - Static variable in class glmodel.GLMaterial
 
colorClear - Static variable in class glapp.GLApp
 
colorClear - Static variable in class glmodel.GLMaterial
 
colorCyan - Static variable in class glmodel.GLMaterial
 
colorDefaultAmbient - Static variable in class glmodel.GLMaterial
 
colorDefaultDiffuse - Static variable in class glmodel.GLMaterial
 
colorGray - Static variable in class glapp.GLApp
 
colorGrayDark - Static variable in class glmodel.GLMaterial
 
colorGrayLight - Static variable in class glmodel.GLMaterial
 
colorGrayMedium - Static variable in class glmodel.GLMaterial
 
colorGreen - Static variable in class glapp.GLApp
 
colorGreen - Static variable in class glmodel.GLMaterial
 
colorMagenta - Static variable in class glmodel.GLMaterial
 
colorNone - Static variable in class glmodel.GLMaterial
 
colorRed - Static variable in class glapp.GLApp
 
colorRed - Static variable in class glmodel.GLMaterial
 
colorWhite - Static variable in class glapp.GLApp
 
colorWhite - Static variable in class glmodel.GLMaterial
 
colorYellow - Static variable in class glmodel.GLMaterial
 
configFilename - Static variable in class glapp.GLApp
 
convertARGBtoRGBA(int[]) - Static method in class glapp.GLImage
Convert pixels from java default ARGB int format to byte array in RGBA format.
convertImagePixelsARGB(int[], int, int, boolean) - Static method in class glapp.GLImage
Copy ARGB pixels to a ByteBuffer without changing the ARGB byte order.
convertImagePixelsRGBA(int[], int, int, boolean) - Static method in class glapp.GLImage
Convert ARGB pixels to a ByteBuffer containing RGBA pixels.
convertIndex(String, int) - Method in class glmodel.GL_OBJ_Reader
Convert a vertex reference number into the correct vertex array index.
convertToPowerOf2() - Method in class glapp.GLImage
Scale this GLImage so width and height are powers of 2.
convertToPowerOf2(BufferedImage) - Static method in class glapp.GLImage
Scale the given BufferedImage to width and height that are powers of two.
copyImageToTexture(GLImage, int) - Static method in class glapp.GLApp
Calls glTexSubImage2D() to copy pixels from an image into a texture.
copyPixelsToTexture(ByteBuffer, int, int, int) - Static method in class glapp.GLApp
Copy pixels from a ByteBuffer to a texture.
create() - Static method in class glsound.SoundScape
Prepare the SoundScape class for use
create(String) - Static method in class glsound.WaveData
Creates a WaveData container from the specified filename
create(byte[]) - Static method in class glsound.WaveData
Creates a WaveData container from the specified bytes
create(AudioInputStream) - Static method in class glsound.WaveData
Creates a WaveData container from the specified stream
createBillboardMatrix(FloatBuffer, GL_Vector, GL_Vector, GL_Vector, GL_Vector) - Static method in class glmodel.GL_Matrix
vCreate the billboard matrix: a rotation matrix created from an arbitrary set of axis.
createCharImage(String, Font, float[], float[]) - Static method in class glapp.GLFont
return a BufferedImage containing the given character drawn with the given font.
createFontImage(Font, float[], float[]) - Method in class glapp.GLFont
Return a BufferedImage containing 100 printable characters drawn with the given font.
crossProduct(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
Return the cross product of the two vectors, as a new vector.
cursorX - Static variable in class glapp.GLApp
 
cursorY - Static variable in class glapp.GLApp
 

D

data - Variable in class glsound.WaveData
actual wave data
defaultMtl - Static variable in class glmodel.GLModel
 
deleteTexture(int) - Static method in class glapp.GLApp
De-allocate the given texture (glDeleteTextures()).
demo() - Static method in class glsound.SoundScape
Run a bare-bones demo of SoundScape.
depthBufferBits - Static variable in class glapp.GLApp
 
destroy() - Static method in class glsound.SoundScape
Free up allocated sounds and shutdown audio environment.
destroyDisplayList(int) - Static method in class glapp.GLApp
Delete the given display list ID.
destroyDisplayLists() - Static method in class glapp.GLApp
Clean up the allocated display lists.
destroyFont() - Static method in class glapp.GLApp
Clean up the allocated display lists for the character set.
destroyFont() - Method in class glapp.GLFont
Clean up the allocated display lists for the character set.
diffuse - Variable in class glmodel.GLMaterial
 
disableMask() - Static method in class glapp.GLApp
turn off the stencil test so stencil has no further affect on rendering.
disableNativeCursor - Static variable in class glapp.GLApp
 
disableNativeCursor(boolean) - Static method in class glapp.GLApp
If the param is true, turn off the hardware cursor.
displayColorBits - Static variable in class glapp.GLApp
 
displayFrequency - Static variable in class glapp.GLApp
 
displayHeight - Static variable in class glapp.GLApp
 
displayListID - Variable in class glmodel.GLModel
 
displayLists - Static variable in class glapp.GLApp
 
displayMode - Static variable in class glapp.GLApp
 
displayWidth - Static variable in class glapp.GLApp
 
dispose() - Method in class glsound.WaveData
Disposes the wavedata
div(GL_Vector) - Method in class glmodel.GL_Vector
Divide this vector by another vector
div(float) - Method in class glmodel.GL_Vector
Divide vector by a value
div(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
Return a/b as a new vector
DM - Static variable in class glapp.GLApp
 
dotProduct(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
return the dot product of two vectors
draw() - Method in class glapp.GLApp
Called by run() to draw one frame.
draw() - Method in class glapp.GLLine
draw the mesh geometry created by rebuild()
draw3D(float) - Method in class glapp.GLLine
draw the mesh geometry created by rebuild() as a 3D shape (extrude the line shape along the Z axis).
drawCircle(int, int, int, int) - Static method in class glapp.GLApp
Draws a circle with the given radius centered at the given world position.
drawCircle(float, float, int) - Static method in class glapp.GLApp
Draws a circle centered at 0,0,0.
drawCircleZ(int, int, int, int, int) - Static method in class glapp.GLApp
Draws a circle with the given radius centered at the given world position.
drawCursor(int) - Static method in class glapp.GLApp
Draw a cursor image textured onto a quad at cursorX,cursorY.
drawCursorOLD(int) - Static method in class glapp.GLApp
OLD function: this drew the cursor only into the current viewport, and could not handle difffent ortho coordinate systems (ortho had to be exactly mapped to screen size).
drawImage(GLImage, int, int, float, float) - Static method in class glapp.GLApp
Draw an image in whichever projection mode is current (does not switch to ortho mode).
drawImageFullScreen(GLImage) - Static method in class glapp.GLApp
Draw an image in ortho mode (2D) over the entire viewport area.
drawObject() - Method in class glapp.GLShadowOnPlane
draw the object that will be shadowed
drawQuad(int, int, int, float, float) - Static method in class glapp.GLApp
Draw a textured quad in Ortho mode (2D) at the given xy, scaled to the given width and height.
drawQuadZ(int, float, float, float, float, float) - Static method in class glapp.GLApp
Draw a textured quad at the given xyz position in 3D space.
drawRect(int, int, float, float) - Static method in class glapp.GLApp
Draw a rectangle outline in ortho mode (draws in 2D over the scene).
drawRectZ(int, int, int, float, float) - Static method in class glapp.GLApp
Draw a rectangle outline in world space.
drawShadow() - Method in class glapp.GLShadowOnPlane
Draw the shadowed object from the lights point of view.
drawV(GL_Vector, float, float) - Method in class glapp.GLLine
for debugging

E

emission - Variable in class glmodel.GLMaterial
 
endDisplayList() - Static method in class glapp.GLApp
Finish display list creation.
endMask() - Static method in class glapp.GLApp
End the mask.
equals(GL_Vector) - Method in class glmodel.GL_Vector
Return true if this vector has the same xyz values as the argument vector
err(String) - Static method in class glapp.GLApp
Show an error message on the system console (calls System.out.println()).
exit() - Method in class glapp.GLApp
Shutdown the application.
exit(int) - Static method in class glsound.SoundScape
 
exportToArray() - Method in class glmodel.GL_Matrix
return a two dimensional float array containing this Matrix
extensionExists(String) - Static method in class glapp.GLApp
Return true if the OpenGL context supports the given OpenGL extension.

F

faces - Variable in class glmodel.GL_3DS_Reader
 
faces - Variable in class glmodel.GL_OBJ_Reader
 
farpoint - Variable in class glmodel.GL_OBJ_Reader
 
filename - Variable in class glmodel.GL_OBJ_Reader
 
filename - Variable in class glmodel.GLMaterialLib
 
filepath - Variable in class glmodel.GL_OBJ_Reader
 
filepath - Variable in class glmodel.GLMaterialLib
 
find(String) - Method in class glmodel.GLMaterialLib
find a material by name in an array of GLMaterial objects
findGroup(String) - Method in class glmodel.GL_OBJ_Reader
look for the given groupname in the groups list
findID(String) - Method in class glmodel.GLMaterialLib
find a material by name in an array of GLMaterial objects return the array index of the material
finished - Static variable in class glapp.GLApp
 
finishedKey - Static variable in class glapp.GLApp
 
flipPixels() - Method in class glapp.GLImage
Flip the image pixels vertically
flipPixels(int[], int, int) - Static method in class glapp.GLImage
Flip an array of pixels vertically
flipY(BufferedImage) - Static method in class glapp.GLImage
Flip the given BufferedImage vertically.
format - Variable in class glsound.WaveData
format type of data
frameCopy(int) - Static method in class glapp.GLApp
Save entire screen image to a texture.
frameCopy(int, int, int, int, int) - Static method in class glapp.GLApp
Save a region of the screen to a texture.
frameCopy(Pbuffer, int) - Static method in class glapp.GLApp
Copy the pbuffer contents to a texture.
frameCount - Static variable in class glapp.GLApp
 
frameDraw(int) - Static method in class glapp.GLApp
Draw the screen-sized image over entire screen area.
framePixels() - Static method in class glapp.GLApp
Return a ByteBuffer containing ARGB pixels of the entire screen area.
framePixels(int, int, int, int) - Static method in class glapp.GLApp
Return a ByteBuffer containing ARGB pixels from the given screen area.
framePixelsInt(int, int, int, int) - Static method in class glapp.GLApp
Return an int array containing ARGB pixels from the given screen area.
frameSave() - Static method in class glapp.GLApp
Save the current frame buffer to a PNG image.
fullScreen - Static variable in class glapp.GLApp
 

G

get(ByteBuffer, int[]) - Static method in class glapp.GLApp
copy ints from the given byteBuffer into the given int array.
get(IntBuffer, int[]) - Static method in class glapp.GLApp
copy ints from the given IntBuffer into the given int array.
getAlpha() - Method in class glmodel.GLMaterial
alpha value is stored in the diffuse material color alpha.
getBytesFromFile(String) - Static method in class glapp.GLApp
Return an array of bytes read from a file.
getBytesFromStream(InputStream) - Static method in class glapp.GLApp
Return an array of bytes read from an InputStream.
getCenter() - Method in class glmodel.GL_Mesh
Return the center point of the mesh.
getCenter() - Method in class glmodel.GL_Triangle
 
getClone() - Method in class glmodel.GL_Matrix
return a copy of this matrix
getClone() - Method in class glmodel.GL_Vector
Return a copy of the vector
getClone(GLMaterial) - Method in class glmodel.GLMaterialLib
return a duplicate of this material.
getData(String) - Static method in class glsound.SoundScape
Reads the file into a ByteBuffer
getDimension() - Method in class glmodel.GL_Mesh
Returns the dimensions of this mesh.
getDisplayListID() - Method in class glmodel.GLModel
return the display list ID created by makeDisplayList()
getDisplayMode(int, int, int, int) - Static method in class glapp.GLApp
Retrieve a DisplayMode object with the given params
getFontSize(Font) - Static method in class glapp.GLFont
Return the maximum character size of the given Font.
getFramesPerSecond() - Static method in class glapp.GLApp
Return the moving average of the frames per second for the last 50 frames.
getGain(int) - Static method in class glsound.SoundScape
 
getGroupFaces(int) - Method in class glmodel.GL_Mesh
 
getGroupFaces(int) - Method in class glmodel.GL_OBJ_Reader
 
getGroupMaterialName(int) - Method in class glmodel.GL_Mesh
 
getGroupMaterialName(int) - Method in class glmodel.GL_OBJ_Reader
 
getGroupName(int) - Method in class glmodel.GL_Mesh
 
getGroupName(int) - Method in class glmodel.GL_OBJ_Reader
 
getGroupTriangleCount(int) - Method in class glmodel.GL_OBJ_Reader
 
getHeight() - Static method in class glapp.GLApp
return the height of the Viewport (the screen area that OpenGL will draw into).
getHeightWindow() - Static method in class glapp.GLApp
return the Display height (the height of the full window).
getImagePixels(Image) - Static method in class glapp.GLImage
Return the Image pixels in default Java int ARGB format.
getInputStream(String) - Static method in class glapp.GLApp
Open the given file and return the InputStream.
getInts(ByteBuffer) - Static method in class glapp.GLApp
return the contents of the byteBuffer as an array of ints.
getMaskValue(int, int) - Static method in class glapp.GLApp
Return the stencil buffer value at the given screen position.
getMatrixAsArray(FloatBuffer) - Static method in class glapp.GLApp
Convert a FloatBuffer matrix to a 4x4 float array.
getModelviewMatrix() - Static method in class glapp.GLApp
 
getName() - Method in class glmodel.GLMaterial
 
getNormal(GL_Vector, GL_Vector, float) - Method in class glapp.GLLine
Make an average normal to the two vectors with the right length to make a join for a line wide.
getNormal(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
returns the normal vector of the plane defined by the a and b vectors
getNormal(GL_Vector, GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
returns the normal vector from the three vectors
getNormalLen(GL_Vector, GL_Vector, float) - Method in class glapp.GLLine
Return the length of the normal needed to make a join in a line of the given width.
getNumPoints() - Method in class glapp.GLLine
return number of points in this line
getPathAndFile(String) - Static method in class glapp.GLApp
Return a String array containing the path portion of a filename (result[0]), and the fileame (result[1]).
getPixelBytes() - Method in class glapp.GLImage
return ByteBuffer containing pixels in RGBA format (commmonly used in OpenGL).
getPixelColor(int, int) - Static method in class glapp.GLApp
Return the color buffer RGB value at the given screen position as byte[3].
getPixelDepth(int, int) - Static method in class glapp.GLApp
Return the depth buffer value at the given screen position.
getPixelInts() - Method in class glapp.GLImage
return int array containing pixels in ARGB format (default Java byte order).
getPixelStencil(int, int) - Static method in class glapp.GLApp
Return the stencil buffer value at the given screen position.
getPoint(int) - Method in class glapp.GLLine
return the given xy point
getPowerOfTwoBiggerThan(int) - Static method in class glapp.GLApp
Find a power of two equal to or greater than the given value.
getProjectionMatrix() - Static method in class glapp.GLApp
 
getProperty(Properties, String) - Static method in class glapp.GLApp
 
getProperty(String) - Static method in class glapp.GLApp
Return a property from the application configuration file (the filename given in the configFilename variable).
getPropertyBool(Properties, String) - Static method in class glapp.GLApp
 
getPropertyFloat(Properties, String) - Static method in class glapp.GLApp
 
getPropertyInt(Properties, String) - Static method in class glapp.GLApp
 
getSecondsPerFrame() - Static method in class glapp.GLApp
Return the moving average of the seconds per frame for the last 50 frames.
getSettingInt(int) - Static method in class glapp.GLApp
retrieve a setting from OpenGL (calls glGetInteger())
getTexture() - Method in class glapp.GLFont
Return the handle to the texture holding the character set.
getTexture() - Method in class glmodel.GLMaterial
 
getTextureFile() - Method in class glmodel.GLMaterial
 
getTimeInMillis() - Static method in class glapp.GLApp
 
getTimeInSeconds() - Static method in class glapp.GLApp
 
getTriangle(float, float) - Method in class glmodel.GL_Mesh
Return the front-most triangle that contains the given screen x,y position, or null if no triangle contains the x,y position.
getTriangle(float, float, GL_Triangle[]) - Static method in class glmodel.GL_Mesh
Given a screen point and a triangles array, return the front-most triangle that contains the given screen x,y position, or null if no triangle contains the x,y position.
getVertexArray() - Method in class glmodel.GL_Mesh
return the vertex array
getViewDir() - Method in class glapp.GLCamera
Return the current camera view direction
getViewport() - Static method in class glapp.GLApp
 
getWeightedNormal() - Method in class glmodel.GL_Triangle
 
getWidth() - Static method in class glapp.GLApp
return the width of the Viewport (the screen area that OpenGL will draw into).
getWidth() - Method in class glapp.GLLine
return line width
getWidthWindow() - Static method in class glapp.GLApp
return the Display width (the width of the full window).
getWorldCoordsAtScreen(int, int) - Static method in class glapp.GLApp
For given screen xy, return the world xyz coords in a float array.
getWorldCoordsAtScreen(int, int, float) - Static method in class glapp.GLApp
For given screen xy and z depth, return the world xyz coords in a float array.
getXWidth() - Method in class glmodel.GL_OBJ_Reader
 
getYHeight() - Method in class glmodel.GL_OBJ_Reader
 
getZDepth(int, int) - Static method in class glapp.GLApp
Return the Z depth of the single pixel at the given screen position.
getZDepth() - Method in class glmodel.GL_OBJ_Reader
 
getZDepthAtOrigin() - Static method in class glapp.GLApp
Find the Z depth of the origin in the projected world view.
GL_3DS_Importer - Class in glmodel
Import a 3DS file into a GL_Model object.
GL_3DS_Importer() - Constructor for class glmodel.GL_3DS_Importer
 
GL_3DS_Reader - Class in glmodel
Reads a 3DS file (3D Studio Max) into ArrayLists.
GL_3DS_Reader() - Constructor for class glmodel.GL_3DS_Reader
 
GL_3DS_Reader(String) - Constructor for class glmodel.GL_3DS_Reader
 
GL_Matrix - Class in glmodel
Define a 4x4 matrix, and provide functions to create common matrices for 3D operations, such as rotate, scale and translate.
GL_Matrix() - Constructor for class glmodel.GL_Matrix
Default to the identity matrix
GL_Matrix(GL_Vector, GL_Vector, GL_Vector) - Constructor for class glmodel.GL_Matrix
Create a matrix with the three given axes
GL_Mesh - Class in glmodel
Holds a mesh object containing triangles and vertices.
GL_Mesh() - Constructor for class glmodel.GL_Mesh
 
GL_OBJ_Importer - Class in glmodel
 
GL_OBJ_Importer() - Constructor for class glmodel.GL_OBJ_Importer
 
GL_OBJ_Reader - Class in glmodel
Based on Object3D.java by Jeremy Adams (elias4444) august 2005 Read an OBJ file into ArrayLists which can then be imported into a final mesh class.
GL_OBJ_Reader(String) - Constructor for class glmodel.GL_OBJ_Reader
 
GL_OBJ_Reader(InputStream) - Constructor for class glmodel.GL_OBJ_Reader
 
GL_Triangle - Class in glmodel
Describes a triangular face.
GL_Triangle(GL_Vertex, GL_Vertex, GL_Vertex) - Constructor for class glmodel.GL_Triangle
 
GL_Vector - Class in glmodel
A 3D vector, with functions to perform common vector math operations.
GL_Vector() - Constructor for class glmodel.GL_Vector
Create a 0,0,0 vector
GL_Vector(float, float, float) - Constructor for class glmodel.GL_Vector
Create a vector with the given xyz values
GL_Vector(float[]) - Constructor for class glmodel.GL_Vector
Create a vector from the given float[3] xyz values
GL_Vector(GL_Vector) - Constructor for class glmodel.GL_Vector
Create a vector that duplicates the given vector
GL_Vector(GL_Vector, GL_Vector) - Constructor for class glmodel.GL_Vector
Create a vector from point1 to point2
GL_Vertex - Class in glmodel
Vertex contains an xyz position, and a list of neighboring triangles.
GL_Vertex() - Constructor for class glmodel.GL_Vertex
 
GL_Vertex(float, float, float) - Constructor for class glmodel.GL_Vertex
 
GL_Vertex(float, float, float, float, float) - Constructor for class glmodel.GL_Vertex
 
GL_Vertex(GL_Vector) - Constructor for class glmodel.GL_Vertex
 
glapp - package glapp
 
GLApp - Class in glapp
Collection of functions to init and run an OpenGL app using LWJGL.
GLApp() - Constructor for class glapp.GLApp
 
GLAPP_VERSION - Static variable in class glapp.GLApp
 
GLCam - Class in glapp
Change the position and orientation of a GLCamera based on input keys.
GLCam(GLCamera) - Constructor for class glapp.GLCam
Create a GLCameraMover with the camera that it will be moving.
GLCam() - Constructor for class glapp.GLCam
Create a GLCameraMover.
GLCamera - Class in glapp
Camera class by Philipp Crocoll at CodeColony (codecolony.de).
GLCamera() - Constructor for class glapp.GLCamera
 
GLCamera(float, float, float, float, float, float, float, float, float) - Constructor for class glapp.GLCamera
 
GLFont - Class in glapp
GLFont uses the Java Font class to create character sets and render text.
GLFont(Font) - Constructor for class glapp.GLFont
Dynamically create a texture mapped character set with the given Font.
GLFont(Font, float[], float[]) - Constructor for class glapp.GLFont
Create a texture mapped character set with the given Font, Text color and background color.
GLImage - Class in glapp
Loads an image from file, stores pixels as ARGB int array, and RGBA ByteBuffer for use in OpenGL.
GLImage() - Constructor for class glapp.GLImage
 
GLImage(String) - Constructor for class glapp.GLImage
Load pixels from an image file.
GLImage(ByteBuffer, int, int) - Constructor for class glapp.GLImage
Create GLImage from pixels passed in a ByteBuffer.
GLLine - Class in glapp
GLLine creates a quad-strip line from a series of points.
GLLine() - Constructor for class glapp.GLLine
 
GLLine(float) - Constructor for class glapp.GLLine
 
GLMaterial - Class in glmodel
Wraps properties for a material.
GLMaterial() - Constructor for class glmodel.GLMaterial
 
GLMaterial(float[]) - Constructor for class glmodel.GLMaterial
 
GLMaterialLib - Class in glmodel
Loads a library of materials from a .mtl file into an array of GLMaterial objects.
GLMaterialLib(String) - Constructor for class glmodel.GLMaterialLib
 
glmodel - package glmodel
 
GLModel - Class in glmodel
This class loads and renders a mesh from an OBJ file format.
GLModel(String) - Constructor for class glmodel.GLModel
 
GLShadowOnPlane - Class in glapp
A simple shadow technique casts a transparent shadow onto a floor surface (or other planar surface).
GLShadowOnPlane(float[], float[], float[], GLApp, Method) - Constructor for class glapp.GLShadowOnPlane
 
glsound - package glsound
 
groupID - Variable in class glmodel.GL_Triangle
 
groupMaterials - Variable in class glmodel.GLModel
 
groups - Variable in class glmodel.GL_OBJ_Reader
 

H

h - Variable in class glapp.GLImage
 
handleArrowKeysOnly(float) - Method in class glapp.GLCam
Adjust the Camera position based on keyboard arrow key input.
handleEvents() - Method in class glapp.GLApp
Called by the run() loop.
handleNavKeys(float) - Method in class glapp.GLCam
Adjust the Camera position based on keyboard arrow key input.
handleNavKeysViewOnly(float) - Method in class glapp.GLCam
Adjust the Camera view direction based on key press events.
hideNativeCursor - Static variable in class glapp.GLApp
 
hideNativeCursor(boolean) - Static method in class glapp.GLApp
If param is true, make the native cursor transparent.

I

ID - Variable in class glmodel.GL_Triangle
 
ID - Variable in class glmodel.GL_Vertex
 
importFromArray(float[][]) - Method in class glmodel.GL_Matrix
copy a two dimensional float array into this Matrix
importFromStream(InputStream) - Method in class glmodel.GL_3DS_Importer
Load the 3DS file and store into a mesh.
importFromStream(InputStream) - Method in class glmodel.GL_OBJ_Importer
 
init() - Method in class glapp.GLApp
Called only once when app is first started, init() prepares the display, mouse and OpenGL context for use.
initDisplay() - Static method in class glapp.GLApp
Initialize the Display mode, viewport size, and open a Window.
initGL() - Method in class glapp.GLApp
Initialize the OpenGL context.
initGroup(int, String, String, int) - Method in class glmodel.GL_Mesh
allocate triangle array for a group.
initInput() - Static method in class glapp.GLApp
Initialize the Keyboard and Mouse.
inverse() - Method in class glmodel.GL_Matrix
return the inverse of this matrix
invoke(Object, Method) - Static method in class glapp.GLApp
Execute a method on the given object.
invoke(Method) - Method in class glapp.GLApp
Similar to the static invoke() function, this execute a method on the GLApp class or subclass.
isLoaded() - Method in class glapp.GLImage
return true if image has been loaded successfully
isPlaying(int) - Static method in class glsound.SoundScape
return true if this sound is playing
isPowerOf2(int) - Static method in class glapp.GLApp
Returns true if n is a power of 2.

K

keyChar() - Method in class glapp.GLApp
Return the character associatated with the last key event.
keyDown(int) - Method in class glapp.GLApp
Called when key is pressed.
keyUp(int) - Method in class glapp.GLApp
Called when key is released.

L

lastFrameTime - Static variable in class glapp.GLApp
 
leftpoint - Variable in class glmodel.GL_OBJ_Reader
 
length() - Method in class glmodel.GL_Vector
Return the length of the vector.
length(GL_Vector) - Static method in class glmodel.GL_Vector
Return the length of the given vector
load(String) - Method in class glmodel.GL_3DS_Importer
 
load(String) - Method in class glmodel.GL_OBJ_Importer
 
load3DSFromStream(InputStream) - Method in class glmodel.GL_3DS_Reader
 
loadImage(String) - Static method in class glapp.GLApp
Load an image from the given file and return a GLImage object.
loadImage(String) - Method in class glapp.GLImage
Load an image from the given filename.
loadImagePixels(String) - Static method in class glapp.GLApp
Load an image from the given file and return a ByteBuffer containing ARGB pixels.
Can be used to create textures.
loadMaterials(String) - Method in class glmodel.GLMaterialLib
 
loadMaterials(BufferedReader) - Method in class glmodel.GLMaterialLib
MTL file format in a nutshell:
loadMesh(String) - Method in class glmodel.GLModel
read the given .obj file into a GL_Mesh object
loadobject(String) - Method in class glmodel.GL_3DS_Reader
 
loadobject(String) - Method in class glmodel.GL_OBJ_Reader
 
loadobject(InputStream) - Method in class glmodel.GL_OBJ_Reader
 
loadobject(BufferedReader) - Method in class glmodel.GL_OBJ_Reader
OBJ file format in a nutshell: First part of file lists vertex data: vert coords, texture coords and normals.
loadPropertiesFile(String) - Static method in class glapp.GLApp
Load configuration settings from a properties file.
loadSettings(String) - Method in class glapp.GLApp
Load configuration settings from optional properties file.
loadSoundData(String) - Static method in class glsound.SoundScape
Load sound data from a file into a buffer.
lookAt(float, float, float, float) - Static method in class glapp.GLApp
A simple way to set eye position.

M

m00 - Variable in class glmodel.GL_Matrix
 
m01 - Variable in class glmodel.GL_Matrix
 
m02 - Variable in class glmodel.GL_Matrix
 
m03 - Variable in class glmodel.GL_Matrix
 
m10 - Variable in class glmodel.GL_Matrix
 
m11 - Variable in class glmodel.GL_Matrix
 
m12 - Variable in class glmodel.GL_Matrix
 
m13 - Variable in class glmodel.GL_Matrix
 
m20 - Variable in class glmodel.GL_Matrix
 
m21 - Variable in class glmodel.GL_Matrix
 
m22 - Variable in class glmodel.GL_Matrix
 
m23 - Variable in class glmodel.GL_Matrix
 
m30 - Variable in class glmodel.GL_Matrix
 
m31 - Variable in class glmodel.GL_Matrix
 
m32 - Variable in class glmodel.GL_Matrix
 
m33 - Variable in class glmodel.GL_Matrix
 
main(String[]) - Static method in class glapp.GLApp
 
makeCharTexture(Font, String, float[], float[]) - Static method in class glapp.GLFont
Return a texture containing the given single character with the Courier font.
makeCircle(float, float, float, int, float) - Static method in class glapp.GLLine
return a GLLine shaped into a circle.
makeClone() - Method in class glmodel.GL_Mesh
 
makeClone() - Method in class glmodel.GL_Triangle
 
makeClone() - Method in class glmodel.GL_Vertex
 
makeDisplayList() - Method in class glapp.GLLine
render the line into a display list and return the list ID.
makeDisplayList() - Method in class glmodel.GLModel
Render mesh into a displaylist and store the listID in the flowercenter object.
makeFont(Font, float[], float[]) - Method in class glapp.GLFont
Prepare a texture mapped character set with the given Font, text color and background color.
makeFontTexture(Font, float[], float[]) - Method in class glapp.GLFont
Return a texture containing a character set with the given Font arranged in a 10x10 grid of printable characters.
makeGroups(int) - Method in class glmodel.GL_Mesh
Allocate arrays to hold groups.
makeImage(int, int) - Static method in class glapp.GLApp
Make a blank image of the given size.
makeLine() - Method in class glapp.GLLine
create the line geometry from point positions
makeMeshObject(ArrayList, ArrayList, ArrayList, ArrayList) - Method in class glmodel.GL_3DS_Importer
create a GL_Object (mesh object) from the data read by a 3DS_Reader
makeMeshObject(GL_OBJ_Reader) - Method in class glmodel.GL_OBJ_Importer
create a GL_Mesh (mesh object) from the data read by a GL_OBJ_Reader
makePbuffer(int, int) - Static method in class glapp.GLApp
Create a Pbuffer for use as an offscreen buffer, with the given width and height.
makeRectangle(float, float, float, float, float) - Static method in class glapp.GLLine
return a GLLine shaped into a rectangle.
makeSegment(GL_Vector, GL_Vector, GL_Vector, GL_Vector) - Method in class glapp.GLLine
Draw one segment from a line.
makeSound(String) - Static method in class glsound.SoundScape
makeSoundSource(int) - Static method in class glsound.SoundScape
Return integer handle to new sound source.
makeTexture(String) - Static method in class glapp.GLApp
Create a texture and mipmap from the given image file.
makeTexture(String, boolean, boolean) - Static method in class glapp.GLApp
Create a texture and optional mipmap with the given parameters.
makeTexture(GLImage) - Static method in class glapp.GLApp
Create a texture from the given image.
makeTexture(int) - Static method in class glapp.GLApp
Create a blank square texture with the given size.
makeTexture(int[], int, int, boolean) - Static method in class glapp.GLApp
Create a texture from the given pixels in the default Java ARGB int format.
Configure the texture to repeat in both directions and use LINEAR for magnification.
makeTexture(ByteBuffer, int, int, boolean) - Static method in class glapp.GLApp
Create a texture from the given pixels in the default OpenGL RGBA pixel format.
makeTextureARGB(ByteBuffer, int, int) - Static method in class glapp.GLApp
Create a texture from the given pixels in ARGB format.
makeTextureForScreen(int) - Static method in class glapp.GLApp
Create a texture large enough to hold the screen image.
makeTextureMipMap(int, GLImage) - Static method in class glapp.GLApp
Build Mipmaps for currently bound texture (builds a set of textures at various levels of detail so that texture will scale up and down gracefully)
makeTimestamp() - Static method in class glapp.GLApp
make a time stamp for filename
materialLib - Variable in class glmodel.GL_OBJ_Reader
 
materialLibeName - Variable in class glmodel.GL_Mesh
 
materialLibeName - Variable in class glmodel.GL_OBJ_Reader
 
materials - Variable in class glmodel.GL_Mesh
 
max() - Method in class glmodel.GL_Mesh
Return maximum point in the mesh.
maxShine - Static variable in class glmodel.GLMaterial
 
mesh - Variable in class glmodel.GLModel
 
method(Object, String) - Static method in class glapp.GLApp
Find a method in the given class with the given method name.
method(String) - Method in class glapp.GLApp
Similar to the static method() function, this looks for the method in the GLApp class (or it's subclass).
min() - Method in class glmodel.GL_Mesh
Return minimum point in the mesh.
minShine - Static variable in class glmodel.GLMaterial
 
mouseButtonDown(int) - Method in class glapp.GLApp
Return true if the given mousebutton is down.
mouseDown(int, int) - Method in class glapp.GLApp
 
mouseMove(int, int) - Method in class glapp.GLApp
Called by handleEvents() when mouse moves
mouseUp(int, int) - Method in class glapp.GLApp
 
mouseWheel(int) - Method in class glapp.GLApp
 
Move(GL_Vector) - Method in class glapp.GLCamera
Move camera position in the given direction
Move(float, float, float) - Method in class glapp.GLCamera
Move camera position in the given direction
MoveForward(float) - Method in class glapp.GLCamera
 
MoveTo(float, float, float) - Method in class glapp.GLCamera
Move camera to the given xyz
MoveUpward(float) - Method in class glapp.GLCamera
 
msg(String) - Static method in class glapp.GLApp
Show a debug message on the system console (calls System.out.println()).
mtlambient - Static variable in class glapp.GLApp
 
mtldiffuse - Static variable in class glapp.GLApp
 
mtlemissive - Static variable in class glapp.GLApp
 
mtlname - Variable in class glmodel.GLMaterial
 
mtlshininess - Static variable in class glapp.GLApp
 
mtlspecular - Static variable in class glapp.GLApp
 
mult(GL_Vector) - Method in class glmodel.GL_Vector
Multiply this vector by another vector
mult(float) - Method in class glmodel.GL_Vector
Multiply vector by a value
mult(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
Return a*b as a new vector
multiply(GL_Matrix, GL_Matrix) - Static method in class glmodel.GL_Matrix
Multiply the two matrices.
multiply(GL_Vector, float) - Static method in class glmodel.GL_Vector
Return the given vector multiplied by the given numeric value, as a new vector

N

n - Variable in class glmodel.GL_Triangle
 
name - Variable in class glmodel.GL_Mesh
 
nearpoint - Variable in class glmodel.GL_OBJ_Reader
 
neighborsP1 - Variable in class glmodel.GL_Triangle
 
neighborsP2 - Variable in class glmodel.GL_Triangle
 
neighborsP3 - Variable in class glmodel.GL_Triangle
 
neighborTris - Variable in class glmodel.GL_Vertex
 
norm1 - Variable in class glmodel.GL_Triangle
 
norm2 - Variable in class glmodel.GL_Triangle
 
norm3 - Variable in class glmodel.GL_Triangle
 
normalize() - Method in class glmodel.GL_Vector
Normalize the vector (make its length 0).
normalize(GL_Vector) - Static method in class glmodel.GL_Vector
Return the normalized vector as a new vector
normals - Variable in class glmodel.GL_3DS_Reader
 
normals - Variable in class glmodel.GL_OBJ_Reader
 
numGroups() - Method in class glmodel.GL_Mesh
 
numGroups() - Method in class glmodel.GL_OBJ_Reader
 
numpolygons() - Method in class glmodel.GL_OBJ_Reader
 
numTriangles - Variable in class glmodel.GL_Mesh
 
numVertices - Variable in class glmodel.GL_Mesh
 

O

onSameSurface(GL_Triangle, GL_Triangle, float) - Static method in class glmodel.GL_Triangle
Return true if two triangles should be smoothed as one surface.
origDM - Static variable in class glapp.GLApp
 

P

p1 - Variable in class glmodel.GL_Triangle
 
p2 - Variable in class glmodel.GL_Triangle
 
p3 - Variable in class glmodel.GL_Triangle
 
pause(boolean) - Static method in class glsound.SoundScape
Pause or resume all sounds playing in the SoundScape
pause(int, boolean) - Static method in class glsound.SoundScape
Pause or resume one sound
PIOVER180 - Static variable in class glapp.GLApp
 
PIUNDER180 - Static variable in class glapp.GLApp
 
pixelBuffer - Variable in class glapp.GLImage
 
pixels - Variable in class glapp.GLImage
 
play(int) - Static method in class glsound.SoundScape
Play a sound source
point(float, float) - Method in class glapp.GLLine
Add an xy point to the line.
pointInTriangle(float, float, float, float, float, float, float, float) - Static method in class glmodel.GL_Mesh
Return true if the point px,py is inside the triangle created by the three triangle coordinates.
popAttrib() - Static method in class glapp.GLApp
return to the OpenGL settings that were preserved by the previous pushAttrib() call.
pos - Variable in class glmodel.GL_Vertex
 
Position - Variable in class glapp.GLCamera
 
posS - Variable in class glmodel.GL_Vertex
 
preTransform(GL_Matrix) - Method in class glmodel.GL_Matrix
transforms this matrix by matrix n from right (this=this x n)
print(int, int, String) - Static method in class glapp.GLApp
Render a text string in 2D over the scene, using the character set created by buildFont().
print(int, int, String, int) - Static method in class glapp.GLApp
Render a text string in 2D over the scene, using the character set created by buildFont().
print(int, int, String) - Method in class glapp.GLFont
Render a text string in 2D over the scene, using the character set created by this GLFont object.
printZ(float, float, float, int, float, String) - Static method in class glapp.GLApp
Render a text string in model space, using the character set created by buildFont().
project(float, float, float, float[]) - Static method in class glapp.GLApp
Return screen coordinates for a given point in world space.
projectVerts(GL_Mesh, FloatBuffer, FloatBuffer, IntBuffer) - Method in class glmodel.GL_Mesh
"Project" the verts to find their screen coords.
pushAttrib() - Static method in class glapp.GLApp
preserve all OpenGL settings that can be preserved.
pushAttrib(int) - Static method in class glapp.GLApp
preserve the specified OpenGL setting.
pushAttribOrtho() - Static method in class glapp.GLApp
preserve the OpenGL settings that will be affected when we draw in ortho mode over the scene.
pushAttribViewport() - Static method in class glapp.GLApp
preserve the OpenGL viewport settings.
put(ByteBuffer, byte[]) - Static method in class glapp.GLApp
 
put(IntBuffer, int[]) - Static method in class glapp.GLApp
 
put(FloatBuffer, float[]) - Static method in class glapp.GLApp
 
put(DoubleBuffer, double[]) - Static method in class glapp.GLApp
 

R

random() - Static method in class glapp.GLApp
Return a random floating point value between 0 and 1
random(float) - Static method in class glapp.GLApp
Return a random floating point value between 0 and upperbound (not including upperbound)
random(int) - Static method in class glapp.GLApp
Return a random integer value between 0 and upperbound (not including upperbound)
rebuild() - Method in class glapp.GLLine
regenerate the line geometry from the added points.
rebuild() - Method in class glmodel.GL_Mesh
Copy vertex and triangle data into arrays for faster access.
recalcFaceNormal() - Method in class glmodel.GL_Triangle
Calculate the face normal for this triangle
recalcVertexNormal(ArrayList) - Method in class glmodel.GL_Triangle
Recalculate the vertex normal, by averagin the normals of the neighboring triangles.
regenerateNormals() - Method in class glmodel.GL_Mesh
Recalculate normals for each vertex in each triangle.
regenerateNormals() - Method in class glmodel.GLModel
recalculate normals on the mesh object
registerSmoothNeighbors(ArrayList, GL_Vertex, GL_Triangle) - Method in class glmodel.GL_Mesh
For the given Vert in the given Triangle, make a list of triangles that are neighbors to the given Triangle.
removeTriangle(GL_Triangle) - Method in class glmodel.GL_Mesh
 
removeTriangleAt(int) - Method in class glmodel.GL_Mesh
 
removeVertex(GL_Vertex) - Method in class glmodel.GL_Mesh
 
removeVertexAt(int) - Method in class glmodel.GL_Mesh
 
render() - Method in class glapp.GLApp
Same as draw().
render() - Method in class glapp.GLCam
Tell camera to adjust modelview matrix to new view position and orientation.
Render() - Method in class glapp.GLCamera
Call GLU.gluLookAt() to set view position, direction and orientation.
render() - Method in class glmodel.GLModel
Draw the model.
render(GL_Mesh) - Method in class glmodel.GLModel
Render a mesh with materials.
renderCube() - Static method in class glapp.GLApp
Render a 2 unit cube centered at origin.
renderCube(float, int) - Static method in class glapp.GLApp
draw a cube with the given size, centered at origin.
renderGroup(String) - Method in class glmodel.GLModel
Draw one group from the mesh.
renderMeshNormals() - Method in class glmodel.GLModel
 
renderPlane(float, int) - Static method in class glapp.GLApp
draw a square plane in the X,Y axis, centered at origin.
renderPlane(float, float, int, int) - Static method in class glapp.GLApp
draw a rectangular plane in the X,Y axis, centered at origin.
renderSphere(int) - Static method in class glapp.GLApp
call the LWJGL Sphere class to draw sphere geometry with texture coordinates and normals
renderSphere() - Static method in class glapp.GLApp
draw a sphere with 48 facets (pretty smooth) with normals and texture coords
renderTextured(int) - Method in class glmodel.GLModel
This is a simple way to render a mesh with no materials.
reset() - Method in class glmodel.GL_Matrix
reset to the identity matrix
resetNeighbors() - Method in class glmodel.GL_Triangle
 
resetViewport() - Static method in class glapp.GLApp
Reset the viewport to full screen (displayWidth x displayHeight).
reverse() - Method in class glmodel.GL_Vector
Reverse the vector
rightpoint - Variable in class glmodel.GL_OBJ_Reader
 
RightVector - Variable in class glapp.GLCamera
 
rootClass - Static variable in class glapp.GLApp
 
rotate(float, float, float) - Method in class glmodel.GL_Matrix
 
RotatedX - Variable in class glapp.GLCamera
 
RotatedY - Variable in class glapp.GLCamera
 
RotatedZ - Variable in class glapp.GLCamera
 
rotateMatrix(float, float, float) - Static method in class glmodel.GL_Matrix
create a rotation matrix
rotateSelf(float, float, float) - Method in class glmodel.GL_Matrix
 
RotateV(float) - Method in class glapp.GLCamera
Rotate the camera around the absolute vertical axis (0,1,0), NOT around the cameras Y axis.
RotateX(float) - Method in class glapp.GLCamera
 
RotateY(float) - Method in class glapp.GLCamera
 
RotateZ(float) - Method in class glapp.GLCamera
 
rotation - Static variable in class glapp.GLApp
 
rotationVector(float) - Static method in class glmodel.GL_Vector
return a vector rotated the given number of degrees around the Y axis
round(float) - Static method in class glapp.GLApp
Round a float value to the nearest int.
run() - Method in class glapp.GLApp
Runs the application.

S

samplerate - Variable in class glsound.WaveData
sample rate of data
savePixelsToPNG(ByteBuffer, int, int, String, boolean) - Static method in class glapp.GLApp
Save a ByteBuffer of ARGB pixels to a PNG file.
savePixelsToPNG(int[], int, int, String, boolean) - Static method in class glapp.GLImage
Save an array of ARGB pixels to a PNG file.
scale(BufferedImage, int, int) - Static method in class glapp.GLImage
Scale the given BufferedImage to the given width and height.
scale(float, float, float) - Method in class glmodel.GL_Matrix
 
scale(float) - Method in class glmodel.GL_Matrix
 
scale(GL_Vector, float) - Static method in class glmodel.GL_Vector
Return a new vector scaled by the given factor
scaleMatrix(float, float, float) - Static method in class glmodel.GL_Matrix
create a Matrix to change scale
scaleMatrix(float) - Static method in class glmodel.GL_Matrix
create a Matrix to scale all axes equally
scaleSelf(float, float, float) - Method in class glmodel.GL_Matrix
 
scaleSelf(float) - Method in class glmodel.GL_Matrix
 
screenShot() - Static method in class glapp.GLApp
Save the current frame buffer to a PNG image.
screenShot(String) - Static method in class glapp.GLApp
Save the current frame buffer to a PNG image.
screenShot(int, int, int, int, String) - Static method in class glapp.GLApp
Save a region of the current render buffer to a PNG image.
screenShotRGB(int, int, String) - Static method in class glapp.GLApp
Save the contents of the current render buffer to a PNG image.
screenTextureSize - Static variable in class glapp.GLApp
 
secondsSinceLastFrame - Static variable in class glapp.GLApp
 
selectDisplay() - Static method in class glapp.GLApp
Make the Display the current context for OpenGL commands.
selectGroup(int) - Method in class glmodel.GL_Mesh
 
selectPbuffer(Pbuffer) - Static method in class glapp.GLApp
Make the pbuffer the current context for opengl commands.
setAlpha(float) - Method in class glmodel.GLMaterial
alpha value is set in the diffuse material color.
setAmbient(float[]) - Method in class glmodel.GLMaterial
Set the ambient material color.
setAmbientLight(float[]) - Static method in class glapp.GLApp
Set the color of the Global Ambient Light.
setBackgroundColor(float, float, float) - Static method in class glapp.GLApp
Set the background color of the screen.
setCamera(GLCamera) - Method in class glapp.GLCam
Create a GLCameraMover with the camera that it will be moving.
setCamera(float, float, float, float, float, float, float, float, float) - Method in class glapp.GLCamera
Set the camera position, view direction and up vector.
setCamera(float, float, float, float) - Method in class glapp.GLCamera
Set the camera to look at a target.
setColor(float, float, float, float) - Static method in class glapp.GLApp
Set the current color with RGBA floats in range 0-1.
setColor(float[]) - Static method in class glapp.GLApp
Set the current color to the given RGB or RGBA float array.
setColor(float[]) - Method in class glmodel.GLMaterial
Sets the material color to approximate a "real" surface color.
setColorB(int, int, int, int) - Static method in class glapp.GLApp
Set the current color with RGBA bytes in range 0-255.
setColorMaterial(boolean) - Static method in class glapp.GLApp
Enable/disable the color-material setting.
setCursorPosition(int, int) - Static method in class glapp.GLApp
Set the cursorX,cursorY position.
setDefaults() - Method in class glmodel.GLMaterial
Set the material to OpenGL's default values (gray, with no reflection and no glow)
setDiffuse(float[]) - Method in class glmodel.GLMaterial
Set the diffuse material color.
setEmission(float[]) - Method in class glmodel.GLMaterial
Set the emission material color.
setFog(float[], float) - Static method in class glapp.GLApp
Enable atmospheric fog effect, with the given color and density.
setFog(boolean) - Static method in class glapp.GLApp
Enable/disable fog effect.
setGain(int, float) - Static method in class glsound.SoundScape
Set the soundsource volume.
setGlobalGain(float) - Static method in class glsound.SoundScape
Set the volume for all sounds.
setGlowColor(float[]) - Method in class glmodel.GLMaterial
Make material appear to emit light
setLight(int, float[], float[], float[], float[]) - Static method in class glapp.GLApp
Set the color of a 'positional' light (a light that has a specific position within the scene).
setLight(int, boolean) - Static method in class glapp.GLApp
enable/disable the given light.
setLighting(boolean) - Static method in class glapp.GLApp
Enable/disable lighting.
setLightPosition(int, float, float, float) - Static method in class glapp.GLApp
Set the position of a light to the given xyz.
setLightPosition(int, float[]) - Static method in class glapp.GLApp
Set the position (or direction) of a light to the given xyz.
setLineWidth(int) - Static method in class glapp.GLApp
Sets glLineWidth() and glPointSize() to the given width.
setListenerOrientation(float, float, float, float, float, float) - Static method in class glsound.SoundScape
Set orientation of the listener.
setListenerPosition(float, float, float) - Static method in class glsound.SoundScape
Set world coordinates of listener.
setListenerVelocity(float, float, float) - Static method in class glsound.SoundScape
Set world coordinates of listener.
setLoop(int, boolean) - Static method in class glsound.SoundScape
 
setMaterial(float[], float) - Static method in class glapp.GLApp
A simple way to set the current material properties to approximate a "real" surface.
setMaterial(float[], float[], float[], float[], float) - Static method in class glapp.GLApp
Set the four material colors and calls glMaterial() to change the current material color in OpenGL.
setMaterialAlpha(float) - Static method in class glapp.GLApp
Alter the material opacity by setting the diffuse material color alpha value to the given value
setName(String) - Method in class glmodel.GLMaterial
set the material name.
setOrtho() - Static method in class glapp.GLApp
Set OpenGL to render in flat 2D (no perspective) with a one-to-one relation between screen pixels and world coordinates, ie.
setOrtho(int, int) - Static method in class glapp.GLApp
 
setOrthoOff() - Static method in class glapp.GLApp
Turn 2D mode off.
setOrthoOn() - Static method in class glapp.GLApp
Set OpenGL to render in flat 2D (no perspective) on top of current scene.
setPerspective() - Static method in class glapp.GLApp
Set OpenGL to render in 3D perspective.
setPitch(int, float) - Static method in class glsound.SoundScape
 
setReferenceDistance(float) - Static method in class glsound.SoundScape
Set the reference distance, used by OpenAL to calculate how fast sound drops off.
setReferenceDistance(int, float) - Static method in class glsound.SoundScape
set the dropoff distance for this sound.
setReflection(float, float) - Method in class glmodel.GLMaterial
Set the reflection properties.
setRootClass() - Method in class glapp.GLApp
Hold onto this Class for later class.getResource() calls (to load resources from JAR files, see getInputStream()) and also to get class name for use in screenshot filenames (see screenShot()).
setShininess(float) - Method in class glmodel.GLMaterial
Set size of the reflection highlight.
setSmoothingAngle(float) - Method in class glmodel.GL_Mesh
the smoothing angle determines how smooth or faceted a model will appear.
setSoundPosition(int, float, float, float) - Static method in class glsound.SoundScape
 
setSoundPosition(int, float[]) - Static method in class glsound.SoundScape
 
setSpecular(float[]) - Method in class glmodel.GLMaterial
Set the specular material color.
setSpotLight(int, float[], float[], float[], float[], float) - Static method in class glapp.GLApp
 
setTexture(int) - Method in class glmodel.GLMaterial
Assign a texture handle to this material.
setTextureFile(String) - Method in class glmodel.GLMaterial
Store a texture filename with the material.
settings - Static variable in class glapp.GLApp
 
setup() - Method in class glapp.GLApp
Setup can be overridden by the subclass to initialize the application ie load textures, models, and create data structures used by the app.
setUVfactor(float) - Method in class glapp.GLLine
set texture tiling factor.
setVelocity(int, float) - Static method in class glsound.SoundScape
Set velocity of sound 0 - 1
setViewport(int, int, int, int) - Static method in class glapp.GLApp
Define the position and size of the screen area in which the OpenGL context will draw.
setWidth(float) - Method in class glapp.GLLine
set line width
shininess - Variable in class glmodel.GLMaterial
 
showMessages - Static variable in class glapp.GLApp
 
SIZE_BYTE - Static variable in class glapp.GLApp
 
SIZE_DOUBLE - Static variable in class glapp.GLApp
 
SIZE_FLOAT - Static variable in class glapp.GLApp
 
SIZE_FLOAT - Static variable in class glmodel.GL_Mesh
 
SIZE_FLOAT - Static variable in class glmodel.GLMaterial
 
SIZE_FLOAT - Static variable in class glsound.SoundScape
 
SIZE_INT - Static variable in class glapp.GLApp
 
SIZE_INT - Static variable in class glsound.SoundScape
 
sortTriangles() - Method in class glmodel.GL_Mesh
Z sort the triangles of this mesh.
sortTriangles(GL_Triangle[], int, int) - Method in class glmodel.GL_Mesh
Z sort the given triangle array.
SoundScape - Class in glsound
SoundScape wraps OpenAL functions to create a sound environment.
SoundScape() - Constructor for class glsound.SoundScape
Creates an instance of SoundScape BUT SoundScape is meant to be used as static class.
specular - Variable in class glmodel.GLMaterial
 
stop() - Static method in class glsound.SoundScape
Stop all sounds playing in the SoundScape
stop(int) - Static method in class glsound.SoundScape
Stop playing one sound.
StrafeRight(float) - Method in class glapp.GLCamera
 
sub(GL_Vector) - Method in class glmodel.GL_Vector
Subtract vector from this vector
sub(float) - Method in class glmodel.GL_Vector
Subtract a value from this vector
sub(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
Return a-b as a new vector

T

textureCoords - Variable in class glmodel.GL_3DS_Reader
 
textureCoords - Variable in class glmodel.GL_OBJ_Reader
 
textureFile - Variable in class glmodel.GLMaterial
 
textureH - Variable in class glapp.GLImage
 
textureHandle - Variable in class glapp.GLImage
 
textureHandle - Variable in class glmodel.GLMaterial
 
textureW - Variable in class glapp.GLImage
 
ticksPerSecond - Static variable in class glapp.GLApp
 
tmpByte - Static variable in class glapp.GLApp
 
tmpFloat - Static variable in class glapp.GLApp
 
tmpFloats - Static variable in class glapp.GLApp
 
tmpInt - Static variable in class glapp.GLApp
 
tmpInts - Static variable in class glapp.GLApp
 
tmpResult - Static variable in class glapp.GLApp
 
toppoint - Variable in class glmodel.GL_OBJ_Reader
 
toString() - Method in class glmodel.GL_Matrix
return a string representation of this matrix
toString() - Method in class glmodel.GL_Mesh
 
toString() - Method in class glmodel.GL_Vector
Return a string representation of the vector
toString() - Method in class glmodel.GL_Vertex
 
transform(GL_Vector) - Method in class glmodel.GL_Matrix
Transform the given vector using this matrix.
transform(GL_Matrix) - Method in class glmodel.GL_Matrix
transforms this matrix by matrix n from left (this=n x this)
translate(float, float, float) - Method in class glmodel.GL_Matrix
 
translateMatrix(float, float, float) - Static method in class glmodel.GL_Matrix
create a Matrix shifted by the given amounts
triangle(int) - Method in class glmodel.GL_Mesh
 
triangleData - Variable in class glmodel.GL_Mesh
 
triangles - Variable in class glmodel.GL_Mesh
 

U

unProject(float, float, float, float[]) - Static method in class glapp.GLApp
Return world coordinates for a given point on the screen.
update() - Method in class glapp.GLApp
Update can be overridden by the subclass
updateTimer() - Static method in class glapp.GLApp
Calculate time since we last called updateTimer().
UpVector - Variable in class glapp.GLCamera
 
useCurrentDisplay - Static variable in class glapp.GLApp
 
uvw1 - Variable in class glmodel.GL_Triangle
 
uvw2 - Variable in class glmodel.GL_Triangle
 
uvw3 - Variable in class glmodel.GL_Triangle
 

V

vectorProduct(GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
returns a x b
vectorProduct(GL_Vector, GL_Vector, GL_Vector) - Static method in class glmodel.GL_Vector
returns (b-a) x (c-a)
vertex(int) - Method in class glmodel.GL_Mesh
 
vertexData - Variable in class glmodel.GL_Mesh
 
vertices - Variable in class glmodel.GL_3DS_Reader
 
vertices - Variable in class glmodel.GL_Mesh
 
vertices - Variable in class glmodel.GL_OBJ_Reader
 
ViewDir - Variable in class glapp.GLCamera
 
viewDir(GL_Vector) - Method in class glapp.GLCamera
Move camera position in the given direction
viewportH - Static variable in class glapp.GLApp
 
viewportW - Static variable in class glapp.GLApp
 
viewportX - Static variable in class glapp.GLApp
 
viewportY - Static variable in class glapp.GLApp
 
VSyncEnabled - Static variable in class glapp.GLApp
 

W

w - Variable in class glapp.GLImage
 
WaveData - Class in glsound
$Id: WaveData.java,v 1.15 2004/02/26 21:51:58 matzon Exp $ Utitlity class for loading wavefiles.
window_title - Static variable in class glapp.GLApp
 
write(PrintWriter, GLMaterial) - Method in class glmodel.GLMaterialLib
Write one material.
writeLibe(GLMaterial[], String) - Method in class glmodel.GLMaterialLib
Write an array of GLMaterial objects to a .mtl file.
writeLibe(GLMaterial[], PrintWriter) - Method in class glmodel.GLMaterialLib
 

X

x - Variable in class glmodel.GL_Vector
 

Y

y - Variable in class glmodel.GL_Vector
 

Z

z - Variable in class glmodel.GL_Vector
 
Zdepth - Variable in class glmodel.GL_Triangle
 

A B C D E F G H I K L M N O P R S T U V W X Y Z