Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Different Drawing Areas?  (Read 1764 times)

0 Members and 1 Guest are viewing this topic.

alx123

  • Newbie
  • *
  • Posts: 5
    • View Profile
Different Drawing Areas?
« on: April 23, 2010, 11:46:55 pm »
Hi everyone.

I'm a beginner in graphics programming and in SFML, and I wanted to know how would you define different areas for a game.

In the game i`m making(Breakout clone) I would like something like this.
(A fast sketch I made)

Thanks for your time

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Different Drawing Areas?
« Reply #1 on: April 24, 2010, 12:10:00 am »
Well, i would simply draw the sprites in the game area, and the text stuff in the box right to the game area... What are you curious about, exactly?

Spidyy

  • Sr. Member
  • ****
  • Posts: 493
    • View Profile
Different Drawing Areas?
« Reply #2 on: April 24, 2010, 12:27:37 am »
For the game area, you could use one or multiple sf::View, defining the viewport (with values between 0 and 1).

For your HUD elements, just draw them on the screen in the default view.