|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.M3G
public class M3G
Support for binding the 3D graphics M3G API (JSR 184), this allows us to integrate 2D UI's with 3D special effects and transitions while keeping the rendering pipelines in sync.
This class is a singleton that includes a callback interface which abstracts the separation between the 2D and 3D pipelines. For more on the difference between 2D and 3D rendering pipelines please consult the M3G documentation.
Nested Class Summary | |
---|---|
static interface |
M3G.Callback
Deprecated. Callback interface that allows rendering of 3D graphics on top/bellow the current form. |
Method Summary | |
---|---|
static int |
closestHigherPowerOf2(int x)
Deprecated. Helper method returns the closest power of two larger than X |
static int |
closestLowerPowerOf2(int x)
Deprecated. Helper method returns the closest power of two smaller than X |
static M3G |
getInstance()
Deprecated. Returns the singleton instance of this class |
int |
getMaxTextureDimension()
Deprecated. Returns the maximum size for a texture according to the underlying graphics engine |
static boolean |
isM3GSupported()
Deprecated. Returns true if the M3G (JSR 184) API is supported on this device |
void |
renderM3G(Graphics g,
boolean depth,
int arguments,
M3G.Callback c)
Deprecated. Binds the Graphics3D object to the current graphics context and invokes callback to perform the rendering. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static M3G getInstance()
public static boolean isM3GSupported()
public int getMaxTextureDimension()
public static int closestLowerPowerOf2(int x)
x
- number
public static int closestHigherPowerOf2(int x)
x
- number
public void renderM3G(Graphics g, boolean depth, int arguments, M3G.Callback c)
g
- Graphics context to draw on, notice that translate and clipping might be ignoreddepth
- should depth buffering be used in the graphics context bind methodarguments
- arguments to the Graphics3D bind methodc
- the callback invoked to perform the actual 3D rendering
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |