Ejemplo n.º 1
0
        // need a way to "force" w/h to be at some value
        public Grid(Game game, GraphicsDeviceManager graphics, SpriteBatch spriteBatch, GridData gridData)
        {
            this.graphics = graphics;
            this.spriteBatch = spriteBatch;

            offsetx = gridData.offsetx;
            offsety = gridData.offsety;
            gridthicknessH = gridData.gridthicknessH;
            gridthicknessV = gridData.gridthicknessV;
            tilesizeH = gridData.tilesizeH;
            tilesizeV = gridData.tilesizeV;

            texture = new Texture2D(this.graphics.GraphicsDevice, 1, 1);
            texture.SetData(new Color[] { Color.White });
        }
Ejemplo n.º 2
0
        // need a way to "force" w/h to be at some value
        public Grid(Game game, GraphicsDeviceManager graphics, SpriteBatch spriteBatch, GridData gridData)
        {
            this.graphics    = graphics;
            this.spriteBatch = spriteBatch;

            offsetx        = gridData.offsetx;
            offsety        = gridData.offsety;
            gridthicknessH = gridData.gridthicknessH;
            gridthicknessV = gridData.gridthicknessV;
            tilesizeH      = gridData.tilesizeH;
            tilesizeV      = gridData.tilesizeV;


            texture = new Texture2D(this.graphics.GraphicsDevice, 1, 1);
            texture.SetData(new Color[] { Color.White });
        }