protected void Init(RenderableProperties properties)
        {
            Properties = properties;

            if (string.IsNullOrEmpty(Properties.TextureFileName))
            {
                Log.Debug("Texture filename was not set");
                return;
            }

            var(textureId, successfull) = LoadTexture(Properties.TextureFileName, Properties.TextureRepeated);

            if (!successfull)
            {
                return;
            }

            TextureId = textureId;
        }
 public abstract void Initialize(RenderableProperties renderableProperties);
Beispiel #3
0
 public override void Initialize(RenderableProperties renderableProperties)
 {
     Init(renderableProperties);
 }