I’m making a game in C# and XNA and I want to use a Texture2D as a parameter in a class constructor. Which of the following methods should I use? 1. //Load the texture as a variable and then pass it Texture2D myTexture = Content.Load<Texture2D>("MyTexture"); MyClass myClass = new MyClass(myTexture); 2. //Pass the loading code […]
The post How should I pass a Texture2D as a parameter? appeared first on BlogoSfera.