XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

The name "ViewportRect" does not exist ???

Last post 10/08/2009 9:26 by Mj 9311. 2 replies.
  • 10/08/2009 9:16

    The name "ViewportRect" does not exist ???

    hey i am a beginner at C# and i was typing this:


     Backgroundtexture = Content.Load<Texture2D>(

                    "sprites\\background");

                ViewportRect = new Rectangle (0, 0,

                  graphics.GraphicsDevice.Viewport.Width,

                  graphics.GraphicsDevice.Viewport.Height);




    Please help me with that "ViewportRect" error ive tryed spelling it like this "viewPortrect" that also failed... :/
  • 10/08/2009 9:19 In reply to

    Re: The name "ViewportRect" does not exist ???

    Also i was watching XNA creators Club Beginners Guide 2D: chapter 4.3, and i spelled "viewportRect" exactly as in the video...
  • 10/08/2009 9:26 In reply to

    Re: The name "ViewportRect" does not exist ???

    wow i feel really stupid now its not "ViewportRect"


    its "Viewportrect" lol nvm ppl...
Page 1 of 1 (3 items) Previous Next