public void LoadContent() { _device = _game.GraphicsDevice; _content = _game.Content; _spriteBatch = new SpriteBatch(_device); _contentLibrary = new GUIContentLibrary(_device); _contentLibrary.LoadContent(_content); _shapeRenderer = new GUI.ShapeRenderer(_device, _contentLibrary); _loaded = true; _rootControl = new RootControl(); _rootControl.internal_setguimanager(this); _rootControl.internal_onfocused(); }
public ShapeRenderer(GraphicsDevice device, GUIContentLibrary contentLibrary) { _spriteBatch = new SpriteBatch(device); _contentLibrary = contentLibrary; }