📄 shaderprogram.html
字号:
<!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="ALLOW_SHADERS_READ"><!-- --></A><H3>ALLOW_SHADERS_READ</H3><PRE>public static final int <B>ALLOW_SHADERS_READ</B></PRE><DL><DD>Specifies that this ShaderProgram object allows reading its shaders.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.ShaderProgram.ALLOW_SHADERS_READ">Constant Field Values</A></DL></DL><HR><A NAME="ALLOW_NAMES_READ"><!-- --></A><H3>ALLOW_NAMES_READ</H3><PRE>public static final int <B>ALLOW_NAMES_READ</B></PRE><DL><DD>Specifies that this ShaderProgram object allows reading its shader or vertex attribute names.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.ShaderProgram.ALLOW_NAMES_READ">Constant Field Values</A></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setVertexAttrNames(java.lang.String[])"><!-- --></A><H3>setVertexAttrNames</H3><PRE>public abstract void <B>setVertexAttrNames</B>(java.lang.String[] vertexAttrNames)</PRE><DL><DD>Sets the vertex attribute names array for this ShaderProgram object. Each element in the array specifies the shader attribute name that is bound to the corresponding numbered vertex attribute within a GeometryArray object that uses this shader program. Array element 0 specifies the name of GeometryArray vertex attribute 0, array element 1 specifies the name of GeometryArray vertex attribute 1, and so forth. The array of names may be null or empty (0 length), but the elements of the array must be non-null.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>vertexAttrNames</CODE> - array of vertex attribute names for this shader program. A copy of this array is made.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/RestrictedAccessException.html" title="class in javax.media.j3d">RestrictedAccessException</A></CODE> - if the method is called when this object is part of live or compiled scene graph.<DD><CODE>java.lang.NullPointerException</CODE> - if any element in the vertexAttrNames array is null.</DL></DD></DL><HR><A NAME="getVertexAttrNames()"><!-- --></A><H3>getVertexAttrNames</H3><PRE>public abstract java.lang.String[] <B>getVertexAttrNames</B>()</PRE><DL><DD>Retrieves the vertex attribute names array from this ShaderProgram object.<P><DD><DL><DT><B>Returns:</B><DD>a copy of this ShaderProgram's array of vertex attribute names.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="setShaderAttrNames(java.lang.String[])"><!-- --></A><H3>setShaderAttrNames</H3><PRE>public abstract void <B>setShaderAttrNames</B>(java.lang.String[] shaderAttrNames)</PRE><DL><DD>Sets the shader attribute names array for this ShaderProgram object. Each element in the array specifies a shader attribute name that may be set via a ShaderAttribute object. Only those attributes whose names that appear in the shader attribute names array can be set for a given shader program. The array of names may be null or empty (0 length), but the elements of the array must be non-null. <p> TODO: finish this.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>shaderAttrNames</CODE> - array of shader attribute names for this shader program. A copy of this array is made.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/RestrictedAccessException.html" title="class in javax.media.j3d">RestrictedAccessException</A></CODE> - if the method is called when this object is part of live or compiled scene graph.<DD><CODE>java.lang.NullPointerException</CODE> - if any element in the shaderAttrNames array is null.</DL></DD></DL><HR><A NAME="getShaderAttrNames()"><!-- --></A><H3>getShaderAttrNames</H3><PRE>public abstract java.lang.String[] <B>getShaderAttrNames</B>()</PRE><DL><DD>Retrieves the shader attribute names array from this ShaderProgram object.<P><DD><DL><DT><B>Returns:</B><DD>a copy of this ShaderProgram's array of shader attribute names.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="setShaders(javax.media.j3d.Shader[])"><!-- --></A><H3>setShaders</H3><PRE>public abstract void <B>setShaders</B>(<A HREF="../../../javax/media/j3d/Shader.html" title="class in javax.media.j3d">Shader</A>[] shaders)</PRE><DL><DD>Copies the specified array of shaders into this shader program. This method makes a shallow copy of the array. The array of shaders may be null or empty (0 length), but the elements of the array must be non-null. The shading language of each shader in the array must match the subclass. Subclasses may impose additional restrictions.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>shaders</CODE> - array of Shader objects to be copied into this ShaderProgram<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/RestrictedAccessException.html" title="class in javax.media.j3d">RestrictedAccessException</A></CODE> - if the method is called when this object is part of live or compiled scene graph.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the shading language of any shader in the shaders array doesn't match the type of the subclass.<DD><CODE>java.lang.NullPointerException</CODE> - if any element in the shaders array is null.</DL></DD></DL><HR><A NAME="getShaders()"><!-- --></A><H3>getShaders</H3><PRE>public abstract <A HREF="../../../javax/media/j3d/Shader.html" title="class in javax.media.j3d">Shader</A>[] <B>getShaders</B>()</PRE><DL><DD>Retrieves the array of shaders from this shader program. A shallow copy of the array is returned. The return value may be null.<P><DD><DL><DT><B>Returns:</B><DD>a copy of this ShaderProgram's array of Shader objects<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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="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-all.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></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/media/j3d/ShaderErrorListener.html" title="interface in javax.media.j3d"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/Shape3D.html" title="class in javax.media.j3d"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/media/j3d/ShaderProgram.html" target="_top"><B>FRAMES</B></A> <A HREF="ShaderProgram.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -