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

📄 vertexarray.html

📁 J2ME Mobile3D API,高性能手机3D开发的api
💻 HTML
📖 第 1 页 / 共 2 页
字号:
&nbsp;<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>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= 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="VertexArray(int, int, int)"><!-- --></A><H3>
VertexArray</H3>
<PRE>
public <B>VertexArray</B>(int&nbsp;numVertices,                   int&nbsp;numComponents,                   int&nbsp;componentSize)</PRE>
<DL>
<DD><p>Constructs a new VertexArray with the given dimensions. The array elements are initialized to zero. The elements can be set later with either the 8-bit or the 16-bit version of the <code>set</code> method, depending on the component size selected here.</p>
<P>
<DT><B>Parameters:</B><DD><CODE>numVertices</CODE> - number of vertices in this VertexArray;        must be [1, 65535]<DD><CODE>numComponents</CODE> - number of components per vertex; must be [2, 4]<DD><CODE>componentSize</CODE> - number of bytes per component; must be [1, 2]<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if any of the parameters are outside         of their allowed ranges</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="set(int, int, short[])"><!-- --></A><H3>
set</H3>
<PRE>
public void <B>set</B>(int&nbsp;firstVertex,                int&nbsp;numVertices,                short[]&nbsp;values)</PRE>
<DL>
<DD><p>Copies in an array of 16-bit vertex attributes. Positions, normals, and texture coordinates can be set with this method, but colors must be set with 8-bit input. This method is available only if <code>componentSize</code>, specified in the constructor, is 2.</p> <p>The vertex attributes are copied in starting from the first element of the source array. The number of elements copied in is <code>numComponents * numVertices</code>, where <code>numComponents</code> is either 2, 3, or 4, as specified at construction time. The source array must have at least that many elements.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>firstVertex</CODE> - index of the first vertex to replace<DD><CODE>numVertices</CODE> - number of vertices to replace<DD><CODE>values</CODE> - array of 16-bit integers to copy vertex attributes from<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if <code>values</code> is null<DD><CODE>java.lang.IllegalStateException</CODE> - if this is not a 16-bit VertexArray<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>numVertices &lt; 0</code><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>values.length &lt;         numVertices * numComponents</code><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>firstVertex &lt; 0</code><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>firstVertex +         numVertices &gt; N</code> where N is the number of         vertices in this VertexArray, specified in the         constructor</DL>
</DD>
</DL>
<HR>

<A NAME="set(int, int, byte[])"><!-- --></A><H3>
set</H3>
<PRE>
public void <B>set</B>(int&nbsp;firstVertex,                int&nbsp;numVertices,                byte[]&nbsp;values)</PRE>
<DL>
<DD><p>Copies in an array of 8-bit vertex attributes. All vertex attributes can be set with this method, including positions, normals, colors, and texture coordinates. This method is available only if <code>componentSize</code>, specified in the constructor, is 1.</p> <p>The vertex attributes are copied in as specified in the other <code>set</code> variant.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>firstVertex</CODE> - index of the first vertex to replace<DD><CODE>numVertices</CODE> - number of vertices to replace<DD><CODE>values</CODE> - array of 8-bit integers to copy vertex attributes from<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - if <code>values</code> is null<DD><CODE>java.lang.IllegalStateException</CODE> - if this is not an 8-bit VertexArray<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>numVertices &lt; 0</code><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>values.length &lt;         numVertices * numComponents</code><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>firstVertex &lt; 0</code><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <code>firstVertex +         numVertices &gt; N</code> where N is the number of         vertices in this VertexArray, specified in the         constructor.</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>&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="class-use/VertexArray.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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-files/index-1.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><B>Nov 19, 2003</B></EM></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/microedition/m3g/TriangleStripArray.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/microedition/m3g/VertexBuffer.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="VertexArray.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;FIELD&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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<EM>Copyright &copy 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 + -