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

Author Topic: how to keep a GUI on-screen without moving or resizing it  (Read 1243 times)

0 Members and 1 Guest are viewing this topic.

GRIFFnDOOR

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
how to keep a GUI on-screen without moving or resizing it
« on: July 31, 2011, 12:38:15 am »
Hey i'm trying to make a GUI lib with SFML, and everything's done except one problem: Making the Interface stay still even when the camera moves or zooms in/out.

This would be easy to fix if zooming wasn't possible, but zooming out means having to scale the contents of the Interface up so it doesn't shrink, which causes it's text/images to become blurry.

Does anyone have a way to get around this issue? (preferably only using SFML as I don't want to make my lib openGL dependent)
"you must unzip your genes to reproduce"
- my science teacher =)

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
how to keep a GUI on-screen without moving or resizing it
« Reply #1 on: July 31, 2011, 12:43:17 am »
Use two different views, one for the scene and one for the interface?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything