コード例 #1
0
ファイル: Resources.cs プロジェクト: razluta/jazz2
        public static GraphicResource From(GenericGraphicResource resBase, string shader, ColorRgba color, bool isIndexed)
        {
            GraphicResource res = new GraphicResource();

            res.FrameDuration = resBase.FrameDuration;
            res.FrameCount    = resBase.FrameCount;
            res.Base          = resBase;

            res.AsyncFinalize = new GraphicResourceAsyncFinalize {
                Shader = shader,
                Color  = color,
                BindPaletteToMaterial = isIndexed
            };

            return(res);
        }