equal
deleted
inserted
replaced
18 package javax.microedition.m3g; |
18 package javax.microedition.m3g; |
19 |
19 |
20 import java.lang.ref.WeakReference; |
20 import java.lang.ref.WeakReference; |
21 import java.util.Hashtable; |
21 import java.util.Hashtable; |
22 import com.nokia.mj.impl.rt.legacy.ToolkitInvoker; |
22 import com.nokia.mj.impl.rt.legacy.ToolkitInvoker; |
23 import com.nokia.mj.impl.rt.legacy.ToolkitObserver; |
23 import com.nokia.mj.impl.rt.legacy.ToolkitObserverNGAExtension; |
24 import com.nokia.mj.impl.rt.support.Finalizer; |
24 import com.nokia.mj.impl.rt.support.Finalizer; |
25 import com.nokia.mj.impl.rt.legacy.MemoryUtil; |
25 import com.nokia.mj.impl.rt.legacy.MemoryUtil; |
26 |
26 |
27 /** |
27 /** |
28 * M3G interface object. An interface is automatically created for |
28 * M3G interface object. An interface is automatically created for |
29 * each MIDlet using the 3D API to keep track of Java-side object |
29 * each MIDlet using the 3D API to keep track of Java-side object |
30 * lifetimes etc. |
30 * lifetimes etc. |
31 */ |
31 */ |
32 class Interface implements ToolkitObserver |
32 class Interface implements ToolkitObserverNGAExtension |
33 { |
33 { |
34 //------------------------------------------------------------------ |
34 //------------------------------------------------------------------ |
35 // Static data |
35 // Static data |
36 //------------------------------------------------------------------ |
36 //------------------------------------------------------------------ |
37 |
37 |
425 handle = 0; |
425 handle = 0; |
426 eventSrcHandle = 0; |
426 eventSrcHandle = 0; |
427 } |
427 } |
428 MemoryUtil.freeNativeMemory(); |
428 MemoryUtil.freeNativeMemory(); |
429 } |
429 } |
|
430 |
|
431 /* |
|
432 * @see ToolkitObserverNGAExtension#foregroundEvent(boolean) |
|
433 */ |
|
434 public void foregroundEvent(boolean foreground) |
|
435 { |
|
436 if (graphics3D != null) |
|
437 { |
|
438 graphics3D.setForeground(foreground); |
|
439 } |
|
440 } |
430 |
441 |
431 // Native constructor |
442 // Native constructor |
432 private static native int _ctor(int eventSrcHandle); |
443 private static native int _ctor(int eventSrcHandle); |
433 |
444 |
434 // Native class ID resolver |
445 // Native class ID resolver |