Example #1
0
        public GraphicsWindow(IMessageBus bus, IObservableTimer timer)
            : base(1280, 720, new GraphicsMode(32, 0, 0, 4), "Sharp Engine")
        {
            Views = new ConcurrentDictionary<int, IGameObjectView>();
            _assets = new AssetManager
                          {
                              Shaders = new ShaderProvider(),
                              VBO = new VBOProvider(),
                              Textures = new TextureProvider()
                          };
            _timer = timer;
            Bus = bus;

            _gui = new GUIManager(_assets);

            Mouse.ButtonDown += MouseButtonDown;

            Bus.OfType<GameObjectCreated>().Subscribe(OnGameObjectCreated);
        }
Example #2
0
 public GUIManager(AssetManager assets)
 {
     _assets = assets;
 }