⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texture2d.html

📁 java 3d帮助文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Sun Jun 23 01:50:42 PDT 2002 --><TITLE>Texture2D (Java 3D API)</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><SCRIPT>function asd(){parent.document.title="Texture2D (Java 3D API)";}</SCRIPT><BODY BGCOLOR="white" onload="asd();"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/media/j3d/Texture.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/j3d/Texture3D.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>  &nbsp;&nbsp;<A HREF="Texture2D.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.media.j3d</FONT><BR>Class  Texture2D</H2><PRE>java.lang.Object  |  +--<A HREF="../../../javax/media/j3d/SceneGraphObject.html">javax.media.j3d.SceneGraphObject</A>        |        +--<A HREF="../../../javax/media/j3d/NodeComponent.html">javax.media.j3d.NodeComponent</A>              |              +--<A HREF="../../../javax/media/j3d/Texture.html">javax.media.j3d.Texture</A>                    |                    +--<B>javax.media.j3d.Texture2D</B></PRE><HR><DL><DT>public class <B>Texture2D</B><DT>extends <A HREF="../../../javax/media/j3d/Texture.html">Texture</A></DL><P>Texture2D is a subclass of Texture class. It extends Texture class by adding a constructor and a mutator method for setting a 2D texture image. <P> Each Texture2D object has the following properties:<P> <UL> <LI>Magnification filter - the magnification filter function. Used when the pixel being rendered maps to an area less than or equal to one texel. In addition to the magnification filter functions defined in the base Texture class, the following values are supported:</LI><P> <UL> <LI>LINEAR_DETAIL - performs linear sampling in both the base level  texture image and the detail texture image, and combines the two texture values according to the detail texture mode.</LI><P> <LI>LINEAR_DETAIL_RGB - performs linear detail for the rgb components only. The alpha component is computed using BASE_LEVEL_LINEAR filter.</LI><P> <LI>LINEAR_DETAIL_ALPHA - performs linear detail for the alpha component only. The rgb components are computed using BASE_LEVEL_LINEAR filter.</LI><P> </UL> <LI>Detail Texture Image - Detail texture image to be used when the texture magnification filter mode specifies LINEAR_DETAIL, LINEAR_DETAIL_ALPHA, or LINEAR_DETAIL_RGB; if the detail texture images is null, then the texture magnification filter mode will fall back to BASE_LEVEL_LINEAR. </LI><P> <LI>Detail Texture Mode - specifies how the texture image is combined with the detail image. The detail texture modes are as follows: </LI><P> <UL> <LI>DETAIL_ADD</LI><P> <UL> T' = T<sub>texture</sub> + DetailFunc(LOD) * (2 * T<sub>detail</sub> - 1)<P> </UL> <LI>DETAIL_MODULATE</LI><P> <UL> T' = T<sub>texture</sub> * (1 + DetailFunc(LOD) * (2 * T<sub>detail</sub> - 1))<P> </UL> </UL> where T<sub>texture</sub> is the texture value computed from the base level texture image, and T<sub>detail</sub> is the texture value computed from the detail texture image.<P> <LI>Detail Texture Function - specifies the function of level-of-detail used in combining the detail texture with the base level texture of this object.</LI><P> <LI>Detail Texture Level - specifies the number of levels that separate the base level image of this texture object and the detail texture image. This value is used in the linear filter calculation of the detail texture image. Note, detail texture will only be applied to the level 0 of the texture image. Hence, for detail texture to work, base level has to be set to 0.</LI><P> </UL><P><P><DL><DT><B>See Also:</B><DD><A HREF="../../../javax/media/j3d/Canvas3D.html#queryProperties()"><CODE>Canvas3D.queryProperties()</CODE></A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Texture2D.html#ALLOW_DETAIL_TEXTURE_READ">ALLOW_DETAIL_TEXTURE_READ</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies that this Texture object allows reading its detail texture information (e.g., detail texture image, detail texture mode, detail texture function, detail texture function points count, detail texture level)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Texture2D.html#DETAIL_ADD">DETAIL_ADD</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the detail texture image to the level 0 image of this texture object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Texture2D.html#DETAIL_MODULATE">DETAIL_MODULATE</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modulates the detail texture image with the level 0 image of this texture object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Texture2D.html#LINEAR_DETAIL">LINEAR_DETAIL</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs linear sampling in both the base level texture image and the detail texture image, and combines the two texture values according to the detail texture mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Texture2D.html#LINEAR_DETAIL_ALPHA">LINEAR_DETAIL_ALPHA</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs linear detail for the alpha component only.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Texture2D.html#LINEAR_DETAIL_RGB">LINEAR_DETAIL_RGB</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs linear detail for the rgb components only.</TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_javax.media.j3d.Texture"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/Texture.html">Texture</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/Texture.html#ALLOW_ANISOTROPIC_FILTER_READ">ALLOW_ANISOTROPIC_FILTER_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_BOUNDARY_COLOR_READ">ALLOW_BOUNDARY_COLOR_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_BOUNDARY_MODE_READ">ALLOW_BOUNDARY_MODE_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_ENABLE_READ">ALLOW_ENABLE_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_ENABLE_WRITE">ALLOW_ENABLE_WRITE</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_FILTER_READ">ALLOW_FILTER_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_FILTER4_READ">ALLOW_FILTER4_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_FORMAT_READ">ALLOW_FORMAT_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_IMAGE_READ">ALLOW_IMAGE_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_IMAGE_WRITE">ALLOW_IMAGE_WRITE</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_LOD_RANGE_READ">ALLOW_LOD_RANGE_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_LOD_RANGE_WRITE">ALLOW_LOD_RANGE_WRITE</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_MIPMAP_MODE_READ">ALLOW_MIPMAP_MODE_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_SHARPEN_TEXTURE_READ">ALLOW_SHARPEN_TEXTURE_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALLOW_SIZE_READ">ALLOW_SIZE_READ</A>, <A HREF="../../../javax/media/j3d/Texture.html#ALPHA">ALPHA</A>, <A HREF="../../../javax/media/j3d/Texture.html#ANISOTROPIC_NONE">ANISOTROPIC_NONE</A>, <A HREF="../../../javax/media/j3d/Texture.html#ANISOTROPIC_SINGLE_VALUE">ANISOTROPIC_SINGLE_VALUE</A>, <A HREF="../../../javax/media/j3d/Texture.html#BASE_LEVEL">BASE_LEVEL</A>, <A HREF="../../../javax/media/j3d/Texture.html#BASE_LEVEL_LINEAR">BASE_LEVEL_LINEAR</A>, <A HREF="../../../javax/media/j3d/Texture.html#BASE_LEVEL_POINT">BASE_LEVEL_POINT</A>, <A HREF="../../../javax/media/j3d/Texture.html#CLAMP">CLAMP</A>, <A HREF="../../../javax/media/j3d/Texture.html#CLAMP_TO_BOUNDARY">CLAMP_TO_BOUNDARY</A>, <A HREF="../../../javax/media/j3d/Texture.html#CLAMP_TO_EDGE">CLAMP_TO_EDGE</A>, <A HREF="../../../javax/media/j3d/Texture.html#FASTEST">FASTEST</A>, <A HREF="../../../javax/media/j3d/Texture.html#FILTER4">FILTER4</A>, <A HREF="../../../javax/media/j3d/Texture.html#INTENSITY">INTENSITY</A>, <A HREF="../../../javax/media/j3d/Texture.html#LINEAR_SHARPEN">LINEAR_SHARPEN</A>, <A HREF="../../../javax/media/j3d/Texture.html#LINEAR_SHARPEN_ALPHA">LINEAR_SHARPEN_ALPHA</A>, <A HREF="../../../javax/media/j3d/Texture.html#LINEAR_SHARPEN_RGB">LINEAR_SHARPEN_RGB</A>, <A HREF="../../../javax/media/j3d/Texture.html#LUMINANCE">LUMINANCE</A>, <A HREF="../../../javax/media/j3d/Texture.html#LUMINANCE_ALPHA">LUMINANCE_ALPHA</A>, <A HREF="../../../javax/media/j3d/Texture.html#MULTI_LEVEL_LINEAR">MULTI_LEVEL_LINEAR</A>, <A HREF="../../../javax/media/j3d/Texture.html#MULTI_LEVEL_MIPMAP">MULTI_LEVEL_MIPMAP</A>, <A HREF="../../../javax/media/j3d/Texture.html#MULTI_LEVEL_POINT">MULTI_LEVEL_POINT</A>, <A HREF="../../../javax/media/j3d/Texture.html#NICEST">NICEST</A>, <A HREF="../../../javax/media/j3d/Texture.html#RGB">RGB</A>, <A HREF="../../../javax/media/j3d/Texture.html#RGBA">RGBA</A>, <A HREF="../../../javax/media/j3d/Texture.html#WRAP">WRAP</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/Texture2D.html#Texture2D()">Texture2D</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a texture object using default values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/Texture2D.html#Texture2D(int, int, int, int)">Texture2D</A></B>(int&nbsp;mipMapMode,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -