BlisterUI.LogoScreen.Logo.build C# (CSharp) Method

build() public method

public build ( GraphicsDevice g ) : void
g GraphicsDevice
return void
            public void build(GraphicsDevice g)
            {
                using (FileStream fs = File.Open(tPath, FileMode.Open))
                {
                    texture = Texture2D.FromStream(g, fs);
                }
                tSize = new Vector2(texture.Width, texture.Height);
                tCenter = tSize / 2f;
                location = new Vector2(g.Viewport.Width, g.Viewport.Height) / 2f;

                setSize(tSize);
            }