Esempio n. 1
0
 public static D3DApp11 Create(Control control) {
     lock (SyncObject) {
         if (_app != null) {
             throw new Exception("App is already created.");
         }
         _app = new D3DApp11(control);
         return _app;
     }
 }
Esempio n. 2
0
 public static D3DApp11 Create(Control control)
 {
     lock (SyncObject) {
         if (_app != null)
         {
             throw new Exception("App is already created.");
         }
         _app = new D3DApp11(control);
         return(_app);
     }
 }