Пример #1
0
        public MeterRenderer(ContentManager content, string shaderFile)
        {
            Alpha = 255;
            var shaderFilename = new Filename(shaderFile);

            _meterEffect   = content.Load <Effect>(shaderFilename.GetRelPathFileNoExt());
            _effectsParams = _meterEffect.Parameters;
        }
Пример #2
0
 protected void LoadContent(ContentManager content, Filename borderImage, Filename meterImage, Filename alphaMaskImage)
 {
     BorderImage    = content.Load <Texture2D>(borderImage.GetRelPathFileNoExt());
     MeterImage     = content.Load <Texture2D>(meterImage.GetRelPathFileNoExt());
     AlphaMaskImage = content.Load <Texture2D>(alphaMaskImage.GetRelPathFileNoExt());
 }