Exemple #1
0
 public static void SetContext(Window window)
 {
     currentContext    = window.GetDeviceContext();
     currentTargetView = window.GetRenderTargetView();
     currentClearColor = Color.Black;
     currentContext.InputAssembler.PrimitiveTopology = SharpDX.Direct3D.PrimitiveTopology.TriangleList;
 }