Example #1
0
 public DirectXUi(IGame game, WorldContainer worldContainer)
 {
     #if GPU_DEBUG
     SharpDX.Configuration.EnableObjectTracking = true;
     #endif
     _game = game;
     _worldContainer = worldContainer;
     _timer = new Toolkit.Timer();
     _notificationResolver = new NotificationResolver();
 }
Example #2
0
 public Context(RenderForm form, Dx11 directX, IGame game, WorldContainer worldContainer, IUiManager uiManager, IInput input, Camera camera, NotificationResolver notificationResolver, DataLock datalock)
 {
     _worldContainer = worldContainer;
     NotificationResolver = notificationResolver;
     Form = form;
     DirectX = directX;
     Game = game;
     TextureManager = new TextureManager(DirectX.Device);
     TextManager = new TextManager(this);
     Shaders = new ShaderManager(DirectX.Device);
     Camera = camera;
     UiManager = uiManager;
     Input = input;
     DataLock = datalock;
 }