Revision 3543a3cf
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/library/main/InternalStackFrameList.java | ||
---|---|---|
152 | 152 |
} |
153 | 153 |
} |
154 | 154 |
|
155 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
156 |
|
|
157 |
@SuppressWarnings("unused") |
|
158 |
static void debugMap() |
|
159 |
{ |
|
160 |
int num = mFrameList.size(); |
|
161 |
InternalStackFrame frame; |
|
162 |
|
|
163 |
for(int i=0; i<num; i++) |
|
164 |
{ |
|
165 |
frame = mFrameList.get(i); |
|
166 |
frame.debugMap("frame "+i); |
|
167 |
} |
|
168 |
} |
|
169 |
|
|
155 | 170 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
156 | 171 |
// must be called from a thread holding OpenGL Context |
157 | 172 |
|
... | ... | |
200 | 215 |
return mCurrentFrame; |
201 | 216 |
} |
202 | 217 |
|
218 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
219 |
|
|
220 |
static long getNextEffectsID() |
|
221 |
{ |
|
222 |
return mCurrentFrame.getNextEffectsID(); |
|
223 |
} |
|
224 |
|
|
203 | 225 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
204 | 226 |
|
205 | 227 |
static void setInitialized(boolean init) |
... | ... | |
207 | 229 |
mCurrentFrame.setInitialized(init); |
208 | 230 |
} |
209 | 231 |
|
232 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
233 |
|
|
234 |
static InternalNodeData getMapID(ArrayList<Long> key) |
|
235 |
{ |
|
236 |
return mCurrentFrame.getMapID(key); |
|
237 |
} |
|
238 |
|
|
239 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
240 |
|
|
241 |
static InternalNodeData putNewDataToMap(ArrayList<Long> key) |
|
242 |
{ |
|
243 |
return mCurrentFrame.putNewDataToMap(key); |
|
244 |
} |
|
245 |
|
|
246 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
247 |
|
|
248 |
static void removeKeyFromMap(ArrayList<Long> key) |
|
249 |
{ |
|
250 |
mCurrentFrame.removeKeyFromMap(key); |
|
251 |
} |
|
252 |
|
|
210 | 253 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
211 | 254 |
// PUBLIC API |
255 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
256 |
|
|
257 |
public static long getNextEffectID() |
|
258 |
{ |
|
259 |
return mCurrentFrame.getNextEffectID(); |
|
260 |
} |
|
261 |
|
|
212 | 262 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
213 | 263 |
|
214 | 264 |
public static boolean isInitialized() |
Also available in: Unified diff
Put new things to the StackFrame.