📄 polygonmode.html
字号:
<li>shading : <code>SHADE_SMOOTH</code></li> <li>two-sided lighting: <i>false</i> (disabled)</li> <li>local camera lighting : <i>false</i> (disabled)</li> <li>perspective correction : <i>false</i> (disabled)</li> </ul>
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="setCulling(int)"><!-- --></A><H3>
setCulling</H3>
<PRE>
public void <B>setCulling</B>(int mode)</PRE>
<DL>
<DD><p>Sets the polygon culling mode. The culling mode defines which sides of a polygon are culled (that is, not rendered). The winding mode, on the other hand, defines which side is considered to be the front. See the class description for more information.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mode</CODE> - the culling mode to set: back, front or none<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>mode</code> is not one of <code>CULL_BACK, CULL_FRONT, CULL_NONE</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/PolygonMode.html#getCulling()"><CODE>getCulling</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getCulling()"><!-- --></A><H3>
getCulling</H3>
<PRE>
public int <B>getCulling</B>()</PRE>
<DL>
<DD><p>Retrieves the current polygon culling mode.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the current culling mode; one of the symbolic constants<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/PolygonMode.html#setCulling(int)"><CODE>setCulling</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setWinding(int)"><!-- --></A><H3>
setWinding</H3>
<PRE>
public void <B>setWinding</B>(int mode)</PRE>
<DL>
<DD><p>Sets the polygon winding mode to clockwise or counter-clockwise. The winding mode defines which side of a polygon is considered to be the front. This and the culling mode together determine which sides of a polygon are rendered. The winding mode has consequences on lighting, as well, if two-sided lighting is enabled. See the class description for more information.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mode</CODE> - the winding mode to set: clockwise or counter-clockwise<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>mode</code> is not one of <code>WINDING_CCW, WINDING_CW</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/PolygonMode.html#getWinding()"><CODE>getWinding</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getWinding()"><!-- --></A><H3>
getWinding</H3>
<PRE>
public int <B>getWinding</B>()</PRE>
<DL>
<DD><p>Retrieves the current polygon winding mode.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the current winding mode; one of the symbolic constants<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/PolygonMode.html#setWinding(int)"><CODE>setWinding</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setShading(int)"><!-- --></A><H3>
setShading</H3>
<PRE>
public void <B>setShading</B>(int mode)</PRE>
<DL>
<DD><p>Sets the polygon shading mode. The shading mode defines whether a single color is assigned to the whole polygon (flat shading) or if a color is computed separately for each pixel (smooth shading). See the class description for more information.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mode</CODE> - the shading mode to set: flat or smooth<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>mode</code> is not one of <code>SHADE_FLAT, SHADE_SMOOTH</code><DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/PolygonMode.html#getShading()"><CODE>getShading</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getShading()"><!-- --></A><H3>
getShading</H3>
<PRE>
public int <B>getShading</B>()</PRE>
<DL>
<DD><p>Retrieves the current polygon shading mode.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the current shading mode: flat or smooth<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/PolygonMode.html#setShading(int)"><CODE>setShading</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setTwoSidedLightingEnable(boolean)"><!-- --></A><H3>
setTwoSidedLightingEnable</H3>
<PRE>
public void <B>setTwoSidedLightingEnable</B>(boolean enable)</PRE>
<DL>
<DD><p>Enables or disables two-sided lighting. If two-sided lighting is enabled, the lit colors for the front and back faces of a polygon are computed differently. Otherwise, both faces are assigned the same color. See the class description for more information.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - <i>true</i> to enable two-sided lighting; <i>false</i> to use one-sided lighting<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/PolygonMode.html#isTwoSidedLightingEnabled()"><CODE>isTwoSidedLightingEnabled</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="isTwoSidedLightingEnabled()"><!-- --></A><H3>
isTwoSidedLightingEnabled</H3>
<PRE>
public boolean <B>isTwoSidedLightingEnabled</B>()</PRE>
<DL>
<DD><p>Queries whether two-sided lighting is enabled.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD><i>true</i> if two-sided lighting is enabled; <i>false</i> if not<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/PolygonMode.html#setTwoSidedLightingEnable(boolean)"><CODE>setTwoSidedLightingEnable</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setLocalCameraLightingEnable(boolean)"><!-- --></A><H3>
setLocalCameraLightingEnable</H3>
<PRE>
public void <B>setLocalCameraLightingEnable</B>(boolean enable)</PRE>
<DL>
<DD><p>Enables or disables local camera lighting. Note that this is only a hint: the implementation may or may not obey it. See the class description for further discussion on local camera lighting.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - <i>true</i> to enable local camera lighting; <i>false</i> to disable it</DL>
</DD>
</DL>
<HR>
<A NAME="setPerspectiveCorrectionEnable(boolean)"><!-- --></A><H3>
setPerspectiveCorrectionEnable</H3>
<PRE>
public void <B>setPerspectiveCorrectionEnable</B>(boolean enable)</PRE>
<DL>
<DD><p>Enables or disables perspective correction. Note that this is only a hint: the implementation may or may not obey it. See the class description for further discussion on perspective correction.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - <i>true</i> to enable perspective correction; <i>false</i> to disable it</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<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/PolygonMode.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><B>Nov 19, 2003</B></EM></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../javax/microedition/m3g/Object3D.html"><B>PREV CLASS</B></A>
<A HREF="../../../javax/microedition/m3g/RayIntersection.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="PolygonMode.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<EM>Copyright © 2003 Nokia Corporation. See the <a href="../../../overview-summary.html#Copyright">Copyright Notice</a> for details.</EM>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -