public DrawWrapper(SpriteBatch batch, GraphicsDevice device, AssetManager assetsManager) { GlobalScale = 1f; spriteBatch = batch; graphicsDevice = device; deviceWidth = graphicsDevice.Viewport.Width; Assets = assetsManager; basicEffect = new BasicEffect(device) { VertexColorEnabled = true, World = Matrix.Identity, View = Matrix.Identity, }; guiEffect = (BasicEffect) basicEffect.Clone(); SetProjectionMatrix(standardWidth, standardHeight); ScreenSize = new Vector2(graphicsDevice.Viewport.Width, graphicsDevice.Viewport.Height); displayWidth = standardWidth; displayHeight = standardHeight; }
public MainGame() { Graphics = new GraphicsDeviceManager(this); assetManager = new AssetManager(Content); Profiler = new Profiler(); Thread.CurrentThread.Priority = ThreadPriority.AboveNormal; }
public AudioWrapper(AssetManager assetsManager) { Assets = assetsManager; }