I have looked up on the net and on this forum but I couldn’t find something clear.
I have a texture loaded in memory, then I want to attach a sprite to my entity. For now this works, but it feels like it is a long way to do something so basic:
var texProvider = new SpriteFromTexture();
spriteComponent = new SpriteComponent();
texProvider.Texture = TankAIGame.TankTexture;
spriteComponent.SpriteProvider = texProvider;
Entity.Add(spriteComponent);
Is this how it is supposed to be done ?
Thanks