示例#1
0
文件: Texture.cs 项目: kukuru3/Sargon
 internal Texture(int width, int height, Ur.Color color)
 {
     this.Path                = "";
     this.nativeTexture       = null;
     this.nativeRenderTexture = new SFML.Graphics.RenderTexture((uint)width, (uint)height, false);
     this.nativeRenderTexture.Clear(color.ToSFMLColor());
     this.Size   = new Int2(width, height);
     IsRenderTex = true;
     StartLoad();
 }
示例#2
0
        static internal SFML.Graphics.Color ToSFMLColor(this Ur.Color source)
        {
            var z = Ur.Color.ToUnsignedInteger(source);

            return(new SFML.Graphics.Color(z));
        }
示例#3
0
 public void AddParam(string id, Ur.Color param) => parameterBag[id] = param;
示例#4
0
 public BackgroundColorSetter(Pipeline p, Ur.Color color) : base(p)
 {
     Color = color;
 }