|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.ohiou.cs456_badabing.sceneapi.basic.DisplayListManager
public class DisplayListManager
Simple class to contain a TreeMap between string names of a display list and its OpenGL integer value.
Description: Simple class to contain a TreeMap between string names of a display list and its OpenGL integer value.
Copyright: Lev A Neiman 2008
Company: Ohio University EECS
| Field Summary | |
|---|---|
static java.util.TreeMap<java.lang.String,java.lang.Integer> |
name_map
map display list string names to their corresponding OpenGL display list integers. |
| Constructor Summary | |
|---|---|
DisplayListManager()
|
|
| Method Summary | |
|---|---|
static void |
addList(GLAutoDrawable g,
java.lang.String name,
java.lang.Integer list)
Add new list to the manager. |
static void |
clear(GLAutoDrawable g)
clears the mapping, and also calls glDeleteLists on every display list that was in this map. |
static java.lang.Integer |
getList(java.lang.String name)
get OpenGL display list integer value that is mapped to 'name' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.TreeMap<java.lang.String,java.lang.Integer> name_map
| Constructor Detail |
|---|
public DisplayListManager()
| Method Detail |
|---|
public static void clear(GLAutoDrawable g)
g - GLAutoDrawable
public static void addList(GLAutoDrawable g,
java.lang.String name,
java.lang.Integer list)
name - String - name of the new list.list - Integer - corresponding OpenGL display list integer.public static java.lang.Integer getList(java.lang.String name)
name - String - display list's name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||