Lines Matching refs:list

10  *   notice, this list of conditions and the following disclaimer.
13 * notice, this list of conditions and the following disclaimer in the
49 private Light[] list, tlist;
83 list = new Light[DEFAULT_SIZE];
98 Light[] temp = new Light[list.length * 2];
99 float[] temp2 = new float[list.length * 2];
100 System.arraycopy(list, 0, temp, 0, list.length);
101 System.arraycopy(distToOwner, 0, temp2, 0, list.length);
102 list = temp;
107 * Adds a light to the list. List size is doubled if there is no room.
113 if (listSize == list.length) {
116 list[listSize] = l;
131 list[listSize] = null;
136 list[i] = list[i+1];
138 list[listSize] = null;
148 if (list[i] == l){
156 * @return The size of the list.
170 return list[num];
174 * Resets list size to 0.
181 list[i] = null;
190 * Sorts the elements in the list acording to their Comparator.
203 if (tlist == null || tlist.length != list.length) {
204 tlist = list.clone();
206 System.arraycopy(list, 0, tlist, 0, list.length);
212 list[i].computeLastDistance(owner);
216 // now merge sort tlist into list
217 SortUtil.msort(tlist, list, 0, listSize - 1, c);
222 * Updates a "world-space" light list, using the spatial's local-space
223 * light list and its parent's world-space light list.
229 // clear the list as it will be reconstructed
233 while (list.length <= local.listSize){
237 // add the lights from the local list
238 System.arraycopy(local.list, 0, list, 0, local.listSize);
240 // list[i] = local.list[i];
245 // from the parent list as well
248 while (list.length <= sz)
253 list[p] = parent.list[i];
281 return list[index++];
296 clone.list = list.clone();
298 clone.tlist = null; // list used for sorting only
312 lights.add(list[i]);
326 list = new Light[arraySize];
330 list[i] = lights.get(i);