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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Thratur

Pages: [1]
1
Feature requests / String sub rectangle
« on: August 28, 2009, 09:24:15 pm »
Hi,

thank you very much for the answer!  I'm happy that SFML 2 will handle this and I'll be waiting for it.

2
Feature requests / String sub rectangle
« on: August 27, 2009, 08:10:42 pm »
Well, if we'll be able to do that in SFML2, then there isn't any problem.

However, I believe that the first solution (directly drawing the sub rectangle from the string) would be lighter, easier to add, and simpler to use.

Thanks for the answer!

3
Feature requests / String sub rectangle
« on: August 27, 2009, 05:44:52 pm »
Hi!

I was using SDL for a long time and I used SDL_TTF.  Later, I installed SFML and I was very happy about it.  I like it a lot and it is much more simpler and strings are better than with SDL_TTF by far.  However, there's one thing I can't do with SFML that I could with SDL_TTF, because it was a big texture rather than small letters textures.  I can't take my string and cut it where I want just to have a part of a letter and the rest of the string or any other sub rectangle.

I think it would be nice to have a function that takes the sub rectangle coordinates and draw a sub part of the string or that return a sf::sprite that I could then sub-rect myself without any problem.

I may have forgot a function that could do that, but I looked for a while in the documentation, and I couldn't find anything.  So, what do you think of my idea?  I won't care if it's a bad suggestion.

Pages: [1]