コード例 #1
0
        public static ITexture Construct(SingleColorTexture metaResource)
        {
            var r = new Texel.A8R8G8B8[1, 1];

            r[0, 0] = metaResource.Texel;
            return(new Texture <Texel.A8R8G8B8>(r));
        }
コード例 #2
0
        public static ITexture SingleColorTexture(System.Drawing.Color color)
        {
            var r = new Texel.A8R8G8B8[1, 1];

            r[0, 0] = new Graphics.Software.Texel.A8R8G8B8(color);
            return(new Texture <Texel.A8R8G8B8>(r));
        }