@erawein wrote:
I have a class with a method to create a sqaure
namespace Game1 {
public class Rectangle { Texture2D quadl; GraphicsDeviceManager graphics; public Rectangle() { graphics = new GraphicsDeviceManager(this); \\ this underlined saying cannot convert from game1.rectangle to microsoft.xna.framework.game } public void size() { quadl = new Texture2D(this.GraphicsDevice, 100,100); \\ GraphicsDevice underlined } }
}
I then call that in my game1 class in the draw method.
However mentioned in the comments there are some errors
Thanks in advance
Posts: 1
Participants: 1