protected void Load() { CoreComponents.LoadContent(); Components.LoadContent(); _Cube = new Content.Cube(this); _Cube.LoadContent(); LoadContent(); }
protected virtual void Initialize() { CoreComponents.Add(_Keyboard = new Keyboard(this)); CoreComponents.Add(_Mouse = new Mouse(this)); CoreComponents.Add(_Camera = new Camera(this)); _ModelFactory = new ModelFactory(this); _TextureFactory = new TextureFactory(this); _EffectFactory = new EffectFactory(this); _MaterialFactory = new MaterialFactory(this); }
protected void Unload() { Components.UnloadContent(); CoreComponents.UnloadContent(); if (_Cube != null) { _Cube.UnloadContent(); } _Cube = null; ModelFactory.UnloadAll(); MaterialFactory.UnloadAll(); EffectFactory.UnloadAll(); TextureFactory.UnloadAll(); UnloadContent(); }
private void Draw3D(EngineTime time, ref Matrix world, ref Matrix view, ref Matrix proj) { CoreComponents.Draw(time, ref world, ref view, ref proj); Components.Draw(time, ref world, ref view, ref proj); }
protected virtual void Update(EngineTime time) { CoreComponents.Update(time); Components.Update(time); }