📄 compositingmode.html
字号:
<CODE> float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#getDepthOffsetFactor()">getDepthOffsetFactor</A></B>()</CODE>
<BR>
Retrieves the current depth offset slope factor. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#getDepthOffsetUnits()">getDepthOffsetUnits</A></B>()</CODE>
<BR>
Retrieves the current constant depth offset. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#isAlphaWriteEnabled()">isAlphaWriteEnabled</A></B>()</CODE>
<BR>
Queries whether alpha writing is enabled.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#isColorWriteEnabled()">isColorWriteEnabled</A></B>()</CODE>
<BR>
Queries whether color writing is enabled.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#isDepthTestEnabled()">isDepthTestEnabled</A></B>()</CODE>
<BR>
Queries whether depth testing is enabled.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#isDepthWriteEnabled()">isDepthWriteEnabled</A></B>()</CODE>
<BR>
Queries whether depth writing is enabled.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#setAlphaThreshold(float)">setAlphaThreshold</A></B>(float threshold)</CODE>
<BR>
Sets the threshold value for alpha testing. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#setAlphaWriteEnable(boolean)">setAlphaWriteEnable</A></B>(boolean enable)</CODE>
<BR>
Enables or disables writing of fragment alpha values into the color buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#setBlending(int)">setBlending</A></B>(int mode)</CODE>
<BR>
Selects a method of combining the pixel to be rendered with the pixel already in the frame buffer. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#setColorWriteEnable(boolean)">setColorWriteEnable</A></B>(boolean enable)</CODE>
<BR>
Enables or disables writing of fragment color values into the color buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#setDepthOffset(float, float)">setDepthOffset</A></B>(float factor, float units)</CODE>
<BR>
Defines a value that is added to the screen space Z coordinate of a pixel immediately before depth test and depth write. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#setDepthTestEnable(boolean)">setDepthTestEnable</A></B>(boolean enable)</CODE>
<BR>
Enables or disables depth testing. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/m3g/CompositingMode.html#setDepthWriteEnable(boolean)">setDepthWriteEnable</A></B>(boolean enable)</CODE>
<BR>
Enables or disables writing of fragment depth values into the depth buffer. </TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_javax.microedition.m3g.Object3D"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.microedition.m3g.<A HREF="../../../javax/microedition/m3g/Object3D.html">Object3D</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../javax/microedition/m3g/Object3D.html#addAnimationTrack(javax.microedition.m3g.AnimationTrack)">addAnimationTrack</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#animate(int)">animate</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#duplicate()">duplicate</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#find(int)">find</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getAnimationTrack(int)">getAnimationTrack</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getAnimationTrackCount()">getAnimationTrackCount</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getReferences(javax.microedition.m3g.Object3D[])">getReferences</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getUserID()">getUserID</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#getUserObject()">getUserObject</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#removeAnimationTrack(javax.microedition.m3g.AnimationTrack)">removeAnimationTrack</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#setUserID(int)">setUserID</A>, <A HREF="../../../javax/microedition/m3g/Object3D.html#setUserObject(java.lang.Object)">setUserObject</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="ALPHA"><!-- --></A><H3>
ALPHA</H3>
<PRE>
public static final int <B>ALPHA</B></PRE>
<DL>
<DD><p>Selects the alpha blend mode. A weighted average of the source and destination pixels is computed.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.m3g.CompositingMode.ALPHA">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ALPHA_ADD"><!-- --></A><H3>
ALPHA_ADD</H3>
<PRE>
public static final int <B>ALPHA_ADD</B></PRE>
<DL>
<DD><p>Selects the additive blend mode. The source pixel is first scaled by the source alpha and then summed with the destination pixel.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.m3g.CompositingMode.ALPHA_ADD">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="MODULATE"><!-- --></A><H3>
MODULATE</H3>
<PRE>
public static final int <B>MODULATE</B></PRE>
<DL>
<DD><p>Selects the basic modulating blending mode; source pixels are multiplied with the destination pixels.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.m3g.CompositingMode.MODULATE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="MODULATE_X2"><!-- --></A><H3>
MODULATE_X2</H3>
<PRE>
public static final int <B>MODULATE_X2</B></PRE>
<DL>
<DD><p>Selects the brighter modulating blending mode. This is the same as basic modulation, but the results are multiplied by two (and saturated to 1.0) to compensate for the loss of luminance caused by the component-wise multiplication.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.m3g.CompositingMode.MODULATE_X2">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="REPLACE"><!-- --></A><H3>
REPLACE</H3>
<PRE>
public static final int <B>REPLACE</B></PRE>
<DL>
<DD><p>Selects the replace mode. The destination pixel is overwritten with the source pixel.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.m3g.CompositingMode.REPLACE">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="CompositingMode()"><!-- --></A><H3>
CompositingMode</H3>
<PRE>
public <B>CompositingMode</B>()</PRE>
<DL>
<DD><p>Constructs a CompositingMode object with default values. The default values are:</p> <ul> <li>blending mode : <code>REPLACE</code></li> <li>alpha threshold : 0.0</li> <li>depth offset : 0.0, 0.0</li> <li>depth test : enabled</li> <li>depth write : enabled</li> <li>color write : enabled</li> <li>alpha write : enabled</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="setBlending(int)"><!-- --></A><H3>
setBlending</H3>
<PRE>
public void <B>setBlending</B>(int mode)</PRE>
<DL>
<DD><p>Selects a method of combining the pixel to be rendered with the pixel already in the frame buffer. Blending is applied as the very last step of the pixel processing pipeline.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mode</CODE> - the new blending mode<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>mode</code> is not one of the symbolic constants listed above<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/CompositingMode.html#getBlending()"><CODE>getBlending</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getBlending()"><!-- --></A><H3>
getBlending</H3>
<PRE>
public int <B>getBlending</B>()</PRE>
<DL>
<DD><p>Retrieves the current frame buffer blending mode.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the currently active blending mode<DT><B>See Also:</B><DD><A HREF="../../../javax/microedition/m3g/CompositingMode.html#setBlending(int)"><CODE>setBlending</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setAlphaThreshold(float)"><!-- --></A><H3>
setAlphaThreshold</H3>
<PRE>
public void <B>setAlphaThreshold</B>(float threshold)</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -