📄 textureattributes.html
字号:
<CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#ALLOW_MODE_READ">ALLOW_MODE_READ</A></B></CODE><BR> Specifies that this TextureAttributes object allows reading its texture mode component information and perspective correction mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#ALLOW_MODE_WRITE">ALLOW_MODE_WRITE</A></B></CODE><BR> Specifies that this TextureAttributes object allows writing its texture mode component information and perspective correction mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#ALLOW_TRANSFORM_READ">ALLOW_TRANSFORM_READ</A></B></CODE><BR> Specifies that this TextureAttributes object allows reading its texture transform component information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#ALLOW_TRANSFORM_WRITE">ALLOW_TRANSFORM_WRITE</A></B></CODE><BR> Specifies that this TextureAttributes object allows writing its texture transform component information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#BLEND">BLEND</A></B></CODE><BR> Blend the texture blend color with the object color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE">COMBINE</A></B></CODE><BR> Combine the object color with texture color as specified in the combine mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_ADD">COMBINE_ADD</A></B></CODE><BR> Add two colors.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_ADD_SIGNED">COMBINE_ADD_SIGNED</A></B></CODE><BR> Add two colors plus an implicit offset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_CONSTANT_COLOR">COMBINE_CONSTANT_COLOR</A></B></CODE><BR> Texture blend color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_DOT3">COMBINE_DOT3</A></B></CODE><BR> Dot product of two colors.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_INTERPOLATE">COMBINE_INTERPOLATE</A></B></CODE><BR> Interpolate two colors with a factor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_MODULATE">COMBINE_MODULATE</A></B></CODE><BR> Modulates one color with another color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_OBJECT_COLOR">COMBINE_OBJECT_COLOR</A></B></CODE><BR> Object color coming into the texturing state.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_ONE_MINUS_SRC_ALPHA">COMBINE_ONE_MINUS_SRC_ALPHA</A></B></CODE><BR> Color function is f = (1 - C<sub>a</sub>)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_ONE_MINUS_SRC_COLOR">COMBINE_ONE_MINUS_SRC_COLOR</A></B></CODE><BR> Color function is f = (1 - C<sub>rgb</sub>)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_PREVIOUS_TEXTURE_UNIT_STATE">COMBINE_PREVIOUS_TEXTURE_UNIT_STATE</A></B></CODE><BR> Color from the previous texture unit state.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_REPLACE">COMBINE_REPLACE</A></B></CODE><BR> Replace the input color with the specified color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_SRC_ALPHA">COMBINE_SRC_ALPHA</A></B></CODE><BR> Color function is f = C<sub>a</sub></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_SRC_COLOR">COMBINE_SRC_COLOR</A></B></CODE><BR> Color function is f = C<sub>rgb</sub></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_SUBTRACT">COMBINE_SUBTRACT</A></B></CODE><BR> Subtract one color from another color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#COMBINE_TEXTURE_COLOR">COMBINE_TEXTURE_COLOR</A></B></CODE><BR> Texture color of the corresponding texture unit state.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#DECAL">DECAL</A></B></CODE><BR> Apply the texture color to the object as a decal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#FASTEST">FASTEST</A></B></CODE><BR> Use the fastest available method for perspective correction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#MODULATE">MODULATE</A></B></CODE><BR> Modulate the object color with the texture color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#NICEST">NICEST</A></B></CODE><BR> Use the nicest (highest quality) available method for texture mapping perspective correction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#REPLACE">REPLACE</A></B></CODE><BR> Replace the object color with the texture color.</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#TextureAttributes()">TextureAttributes</A></B>()</CODE><BR> Constructs a TextureAttributes object with default parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#TextureAttributes(int, javax.media.j3d.Transform3D, javax.vecmath.Color4f, int)">TextureAttributes</A></B>(int textureMode, <A HREF="../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> transform, <A HREF="../../../javax/vecmath/Color4f.html" title="class in javax.vecmath">Color4f</A> textureBlendColor, int perspCorrectionMode)</CODE><BR> Constructs a TextureAttributes object with the specified values.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">NodeComponent</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#cloneNodeComponent()">cloneNodeComponent</A></B>()</CODE><BR> <B>Deprecated.</B> <I>replaced with cloneNodeComponent(boolean forceDuplicate)</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#getCombineAlphaFunction(int)">getCombineAlphaFunction</A></B>(int index)</CODE><BR> Retrieves the function for the alpha component of the specified color operand for this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#getCombineAlphaMode()">getCombineAlphaMode</A></B>()</CODE><BR> Retrieves the combine mode for the alpha component of the output color for this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#getCombineAlphaScale()">getCombineAlphaScale</A></B>()</CODE><BR> Retrieves the scale factor for the alpha component of the output color for this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#getCombineAlphaSource(int)">getCombineAlphaSource</A></B>(int index)</CODE><BR> Retrieves the source for the alpha component of the specified color operand for this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureAttributes.html#getCombineRgbFunction(int)">getCombineRgbFunction</A></B>(int index)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -