com.jme3.renderer
クラス IDList

java.lang.Object
  上位を拡張 com.jme3.renderer.IDList

public class IDList
extends java.lang.Object

A specialized data-structure used to optimize state changes of "slot" based state.


フィールドの概要
 int newLen
           
 int[] newList
           
 int oldLen
           
 int[] oldList
           
 
コンストラクタの概要
IDList()
           
 
メソッドの概要
 void copyNewToOld()
          Copies the new list to the old list, and clears the new list.
 boolean moveToNew(int idx)
          Adds an index to the new list.
 void print()
          Prints the contents of the lists
 void reset()
          Reset all states to zero
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

newList

public int[] newList

oldList

public int[] oldList

newLen

public int newLen

oldLen

public int oldLen
コンストラクタの詳細

IDList

public IDList()
メソッドの詳細

reset

public void reset()
Reset all states to zero


moveToNew

public boolean moveToNew(int idx)
Adds an index to the new list. If the index was not in the old list, false is returned, if the index was in the old list, it is removed from the old list and true is returned.

パラメータ:
idx - The index to move
戻り値:
True if it existed in old list and was removed from there, false otherwise.

copyNewToOld

public void copyNewToOld()
Copies the new list to the old list, and clears the new list.


print

public void print()
Prints the contents of the lists