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

HWSurfaceInstance() public method

public HWSurfaceInstance ( ScriptEngine parent, Texture texture ) : System
parent ScriptEngine
texture SFML.Graphics.Texture
return System
        public HWSurfaceInstance(ScriptEngine parent, Texture texture)
            : base(parent.Object.InstancePrototype)
        {
            _source = new FloatRect(_ox, _oy, texture.Size.X, texture.Size.Y);
            _ox += _source.Width + 1;
            if (_ox > _aw) { _ox = 0; _oy += _source.Height + 1; }
            Init();
        }

Same methods

HWSurfaceInstance::HWSurfaceInstance ( ) : System
HWSurfaceInstance::HWSurfaceInstance ( ScriptEngine parent, Image image ) : System
HWSurfaceInstance::HWSurfaceInstance ( ScriptEngine parent, int width, int height, System.Color bg_color ) : System
HWSurfaceInstance::HWSurfaceInstance ( ScriptEngine parent, string filename ) : System