📄 m3g.html.svn-base
字号:
boolean depth,
int arguments,
<A HREF="../../../com/sun/lwuit/M3G.Callback.html" title="interface in com.sun.lwuit">M3G.Callback</A> c)</CODE>
<BR>
Binds the Graphics3D object to the current graphics context and invokes callback to perform the rendering.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getInstance()"><!-- --></A><H3>
getInstance</H3>
<PRE>
public static <A HREF="../../../com/sun/lwuit/M3G.html" title="class in com.sun.lwuit">M3G</A> <B>getInstance</B>()</PRE>
<DL>
<DD>Returns the singleton instance of this class
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the singleton instance of this class</DL>
</DD>
</DL>
<HR>
<A NAME="isM3GSupported()"><!-- --></A><H3>
isM3GSupported</H3>
<PRE>
public static boolean <B>isM3GSupported</B>()</PRE>
<DL>
<DD>Returns true if the M3G (JSR 184) API is supported on this device
<P>
<DD><DL>
<DT><B>Returns:</B><DD>True if this device supports M3G</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxTextureDimension()"><!-- --></A><H3>
getMaxTextureDimension</H3>
<PRE>
public int <B>getMaxTextureDimension</B>()</PRE>
<DL>
<DD>Returns the maximum size for a texture according to the underlying graphics engine
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="closestLowerPowerOf2(int)"><!-- --></A><H3>
closestLowerPowerOf2</H3>
<PRE>
public static int <B>closestLowerPowerOf2</B>(int x)</PRE>
<DL>
<DD>Helper method returns the closest power of two smaller than X
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="closestHigherPowerOf2(int)"><!-- --></A><H3>
closestHigherPowerOf2</H3>
<PRE>
public static int <B>closestHigherPowerOf2</B>(int x)</PRE>
<DL>
<DD>Helper method returns the closest power of two larger than X
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="renderM3G(com.sun.lwuit.Graphics, boolean, int, com.sun.lwuit.M3G.Callback)"><!-- --></A><H3>
renderM3G</H3>
<PRE>
public void <B>renderM3G</B>(<A HREF="../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A> g,
boolean depth,
int arguments,
<A HREF="../../../com/sun/lwuit/M3G.Callback.html" title="interface in com.sun.lwuit">M3G.Callback</A> c)</PRE>
<DL>
<DD>Binds the Graphics3D object to the current graphics context and invokes callback to perform the rendering. This method is responsible for flushing the graphics3D object and buffer to avoid problems related to 2D/3D rendering pipeline collision.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - Graphics context to draw on, notice that translate and clipping might be ignored<DD><CODE>depth</CODE> - should depth buffering be used in the graphics context bind method<DD><CODE>arguments</CODE> - arguments to the Graphics3D bind method<DD><CODE>c</CODE> - the callback invoked to perform the actual 3D rendering</DL>
</DD>
</DL>
<HR>
<A NAME="createImage2D(int, com.sun.lwuit.Image)"><!-- --></A><H3>
createImage2D</H3>
<PRE>
public javax.microedition.m3g.Image2D <B>createImage2D</B>(int type,
<A HREF="../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> img)</PRE>
<DL>
<DD>Converts an image to a new image 2D object, notice that further changes to the would have no effect on the Image2D object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the type of the image e.g. RGB, ARGB etc.<DD><CODE>img</CODE> - image to convert
<DT><B>Returns:</B><DD>Image2D object useful in the 3D API</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/M3G.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../com/sun/lwuit/List.html" title="class in com.sun.lwuit"><B>PREV CLASS</B></A>
<A HREF="../../../com/sun/lwuit/M3G.Callback.html" title="interface in com.sun.lwuit"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?com/sun/lwuit/M3G.html" target="_top"><B>FRAMES</B></A>
<A HREF="M3G.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -