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

📄 状态.htm

📁 此文件是微软MSDN中d3d部分资料的翻译文件
💻 HTM
📖 第 1 页 / 共 5 页
字号:
  style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-fareast-language: ZH-CN"><A 
  href="http://www.gesoftfactory.com/developer/States.htm#纹理层状态">纹理层状态</A></SPAN></U><SPAN 
  lang=EN-US 
  style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-fareast-language: ZH-CN"><o:p></o:p></SPAN> 

  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l7 level1 lfo1"><U><SPAN 
  lang=EN-US 
  style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-fareast-language: ZH-CN"><A 
  href="http://www.gesoftfactory.com/developer/States.htm#状态块">状态块</A></SPAN></U><SPAN 
  lang=EN-US 
  style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-fareast-language: ZH-CN"><o:p></o:p></SPAN> 
  </LI></UL>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN lang=EN-US 
style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-fareast-language: ZH-CN">
<HR align=center width="100%" SIZE=1>
</SPAN></DIV>
<H1><A name=渲染状态>渲染状态</A></H1><SPAN style="mso-bookmark: 渲染状态"></SPAN>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN">
<HR align=center width="100%" SIZE=1>
</SPAN></DIV>
<P>设备渲染状态控制<SPAN lang=EN-US>Microsoft&reg; 
Direct3D&reg;设备光栅化模块的行为,它们通过改变渲染状态的属性,使用何种类型的着色算法,雾属性和其它光栅化器操作来达到这个目的。</SPAN></P>
<P><SPAN 
lang=EN-US>C++应用程序通过调用<U>IDirect3DDevice9::SetRenderState</U>方法控制渲染状态的属性。<U>D3DRENDERSTATETYPE</U>枚举类型指定所有可能的渲染状态,应用程序把一个枚举类型值作为第一个参数传递给<B 
style="mso-bidi-font-weight: normal">IDirect3DDevice9::SetRenderState</B>方法。<o:p></o:p></SPAN></P>
<P>固定功能顶点处理由<B style="mso-bidi-font-weight: normal"><SPAN 
lang=EN-US>IDirect3DDevice9::SetRenderState</SPAN></B>方法和以下设备渲染状态控制。这些控制中的大多数在使用可编程顶点着色器时没有任何作用。<SPAN 
lang=EN-US><o:p></o:p></SPAN></P>
<UL type=disc>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_SPECULARENABLE 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_FOGSTART 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_FOGEND <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_FOGDENSITY 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_RANGEFOGENABLE 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_LIGHTING 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_AMBIENT 
<o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_FOGVERTEXMODE 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_COLORVERTEX 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_LOCALVIEWER 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_NORMALIZENORMALS 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_DIFFUSEMATERIALSOURCE 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_SPECULARMATERIALSOURCE 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_AMBIENTMATERIALSOURCE 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_EMISSIVEMATERIALSOURCE 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l2 level1 lfo2"><SPAN 
  lang=EN-US 
  style="mso-fareast-language: ZH-CN">D3DRS_VERTEXBLEND<o:p></o:p></SPAN> 
</LI></UL>
<P>另外,固定功能顶点处理流水线使用以下方法设置变换、材质和光照。</P>
<UL type=disc>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l4 level1 lfo3"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">IDirect3DDevice9::SetTransform 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l4 level1 lfo3"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">IDirect3DDevice9::SetMaterial 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l4 level1 lfo3"><SPAN 
  lang=EN-US style="mso-fareast-language: ZH-CN">IDirect3DDevice9::SetLight 
  <o:p></o:p></SPAN>
  <LI class=MsoNormal 
  style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: list 36.0pt; mso-list: l4 level1 lfo3"><SPAN 
  lang=EN-US 
  style="mso-fareast-language: ZH-CN">IDirect3DDevice9::LightEnable<o:p></o:p></SPAN> 
  </LI></UL>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN 
style="FONT-FAMILY: 宋体; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">注意</SPAN></B><SPAN 
lang=EN-US style="mso-fareast-language: ZH-CN"><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>D3DRS_SPECULARENABLE</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制像素流水线中镜面反射色的加法。</SPAN><SPAN 
lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_FOGSTART</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,</SPAN><SPAN 
lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_FOGEND</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN><SPAN 
lang=EN-US style="mso-fareast-language: ZH-CN">D3DRS_FOGDENSITY</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-fareast-language: ZH-CN; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制如何计算雾的起点、终点和像素雾的密度。</SPAN><SPAN 
lang=EN-US style="mso-fareast-language: ZH-CN"><o:p></o:p></SPAN></P>
<P>更多的信息包含在以下主题中。</P>
<H2>概述</H2>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#阿尔法混合状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">阿尔法混合状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#阿尔法测试状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">阿尔法测试状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#环境光状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">环境光状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#抗锯齿状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">抗锯齿状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#剔除状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">剔除状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#深度缓存状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">深度缓存状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#雾状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">雾状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#光照状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">光照状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#轮廓和填充状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">轮廓和填充状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#每顶点颜色状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">每顶点颜色状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#图元裁剪状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">图元裁剪状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#着色状态"><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">着色状态</SPAN></A><o:p></o:p></SPAN></U></B></P>
<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><U><SPAN lang=EN-US 
style="mso-fareast-language: ZH-CN"><A 
href="http://www.gesoftfactory.com/developer/States.htm#模板缓存状态"><SPAN 

⌨️ 快捷键说明

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