Engine.Objects.HWSurfaceInstance.Init C# (CSharp) Method

Init() private method

private Init ( ) : void
return void
        private void Init()
        {
            PopulateFunctions();
            if (_myBatch == null) _myBatch = new SpriteBatch(_tex);
            SetBlendMode((int)BlendModes.Blend);
            DefineProperty("width", new PropertyDescriptor((int)_width, PropertyAttributes.Sealed), true);
            DefineProperty("height", new PropertyDescriptor((int)_height, PropertyAttributes.Sealed), true);
        }