16
Graphics / Re: Bitmap font -> Chatbox (with scrollbar)
« on: February 14, 2013, 07:12:51 pm »
Thank you for replying. I don't think I've stated anywhere that I needed code. I simply need some help on this subject since I haven't done this before.
I am able to draw the glyphs using a function that takes an std::string as parameter at specified coordinates.
This is not the problem. (no idea if this is the most efficient solution)
Wrapping the text up should not be a problem also.
My question is therefore (which I should have stated previously): is a sf::View suitable/efficient for scrolling and what would the calculations/position for the scrollbar/view be (thumb size and position)?
I am able to draw the glyphs using a function that takes an std::string as parameter at specified coordinates.
This is not the problem. (no idea if this is the most efficient solution)
Wrapping the text up should not be a problem also.
My question is therefore (which I should have stated previously): is a sf::View suitable/efficient for scrolling and what would the calculations/position for the scrollbar/view be (thumb size and position)?