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.


Topics - Davi

Pages: [1]
1
General / Displaying a number with sf::string
« on: April 10, 2012, 07:57:08 pm »
Hey all. I am using the MinGW which comes with Code::Blocks, SFML 1.6.

I will be straight on my question. How do I display a number? I've tried this:

Code: [Select]
PlayingPos.SetText(Music1.GetPlayingOffset());
To later display that string, but SetText() can't take float as argument. So, how could I set my string as number for later use? Is there any conversion possible?

2
Graphics / Taking a sprite from a image based on a rect
« on: March 17, 2012, 03:44:10 pm »
Hey all! I'm new here, both on the forums and on the library. I came from SDL, and I think SFML does the job better, specially because I'm not the guy which cares about compatibility. Plus my projects would be too heavy to work on an Android or iOS.

Well, I will jump on right on my question.

I would like to know if there's an feature that selects just an part of a image file to be my sprite. Just like the second argument of the SDL's "SDL_LoadBMP()" function.

If there's no function like this, I'm pretty sure I could do it manually acessing the pixels of the sprite and etc. But I'm too much of a beginner to do that right now. If anyone could give me an function or explain with details how I could do that, I would appreciate.

If this is not possible yet, and has not been requested, I would like that this go to the "Feature Request" forums.

Thanks, and sorry if it's possible and already explained. I just didn't find it.

Oh, by the way, SFML 1.6 please. I would like to stick to it, but if you have any motives that I should move to SFML 2, I'm open to ideas.  :roll:

Pages: [1]