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(); }
static internal SFML.Graphics.Color ToSFMLColor(this Ur.Color source) { var z = Ur.Color.ToUnsignedInteger(source); return(new SFML.Graphics.Color(z)); }
public void AddParam(string id, Ur.Color param) => parameterBag[id] = param;
public BackgroundColorSetter(Pipeline p, Ur.Color color) : base(p) { Color = color; }