public LineBatch(GraphicsDevice graphicsDevice, ContentManager contentManager) { GraphicsDevice = graphicsDevice; rlm = new RoundLineManager(graphicsDevice, contentManager); instanceData.Initialize(); instanceCount = 0; }
private DisplayManager(Game aGame, int aNbPlayer) { mGame = aGame; mSpriteBatch = new SpriteBatch(aGame.GraphicsDevice); mPrimitiveBatch = new PrimitiveBatch(aGame.GraphicsDevice, aGame); mDrawLevelManager = new DrawableLevelManager(aGame); mRoundLineManager = new RoundLineManager(); mRoundLineManager.Init(aGame.GraphicsDevice, aGame.Content); Rectangle rect = new Rectangle(0, 0, aGame.GraphicsDevice.Viewport.Width, aGame.GraphicsDevice.Viewport.Height); mScreenSplitter = new ScreenSplitter(rect, aNbPlayer); //mFpsCounter = new FrameRateCounter(mGame); //mGame.Components.Add(mFpsCounter); mGame.Components.Add(mDrawLevelManager); }
public void InitSprites() { _yborder = new SpriteMap3D { Columns = 1, Rows = 2, Texture = TextureManager.Textures("LifegraphYBorder") }; _xborder = new SpriteMap3D { Columns = 2, Rows = 1, Texture = TextureManager.Textures("LifegraphXBorder") }; _backgroundSprite = new Sprite3D { Texture = TextureManager.Textures("LifeGraphMiddle"), }; _cornerSpriteMap = new SpriteMap3D { Columns = 2, Rows = 2, Texture = TextureManager.Textures("LifeGraphCorners") }; _legendSpriteMap = new SpriteMap3D { Columns = 1, Rows = 5, Texture = TextureManager.Textures("PlayerIdentifiers") }; _teamLegendSpriteMap = new SpriteMap3D { Columns = 1, Rows = 2, Texture = TextureManager.Textures("TeamIdentifiers") }; LineDrawer = RoundLineManager.Instance; }
public void Init() { _roundLine = RoundLineManager.Instance; _lineList = new List <RoundLine>(); }