Пример #1
0
 public void Begin()
 {
     oldRenderSurface       = DeviceMain.GetRenderTarget(0);
     oldDepthStencilSurface = DeviceMain.DepthStencilSurface;
     DeviceMain.SetRenderTarget(0, renderSurface);
     DeviceMain.DepthStencilSurface = renderDepthStencilSurface;
     DeviceMain.Clear(ClearFlags.ZBuffer | ClearFlags.Target, new Color4(0.0f, 0.0f, 0.0f, 0.0f), 1f, 0);
 }
Пример #2
0
 public void End()
 {
     DeviceMain.SetRenderTarget(0, oldRenderSurface);
     DeviceMain.DepthStencilSurface = oldDepthStencilSurface;
 }