ソースを参照

fergot to check this in

georges 25 年 前
コミット
75b1470d8e
1 ファイル変更13 行追加0 行削除
  1. 13 0
      panda/src/dxgsg/dxGraphicsStateGuardian.I

+ 13 - 0
panda/src/dxgsg/dxGraphicsStateGuardian.I

@@ -680,6 +680,19 @@ enable_blend(bool val) {
   }
 }
 
+////////////////////////////////////////////////////////////////////
+//     Function: DXGraphicsStateGuardian::enable_blend
+//       Access:
+//  Description:
+////////////////////////////////////////////////////////////////////
+INLINE void DXGraphicsStateGuardian::
+set_shademode(D3DSHADEMODE val) {
+  if (_CurShadeMode != val) {
+    _CurShadeMode = val;
+	_d3dDevice->SetRenderState(D3DRENDERSTATE_SHADEMODE, (DWORD)val);
+  }
+}
+
 ////////////////////////////////////////////////////////////////////
 //     Function: DXGraphicsStateGuardian::enable_fog
 //       Access: