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 - bendy

Pages: [1]
1
General / Re: Problem using an STL vector of sf::Vector2f s
« on: January 02, 2015, 02:25:21 am »
It works perfectly. I had made an error in my algorithm elsewhere which was producing the mayhem.
Thanks everyone.

2
General / Problem using an STL vector of sf::Vector2f s
« on: January 01, 2015, 08:50:36 pm »
Hi,
I am trying to load up an STL vector with sf::Vector2f s.

The problem is when I try to use an iterator over the vector. The iterator keeps on going past the stop condition.

                 std::vector<sf::Vector2f> points;
                 std::vector<sf::Vector2f>::iterator pIter;

                 for(pIter = points.begin(); pIter !=points.end(); pIter++) {
                 }   

And the real funny part is that sometimes it works and sometimes it doesn't.

Any suggestions?

3
Graphics / Re: Pass a vertex array to an sf::Image
« on: December 23, 2014, 07:03:17 pm »
Thanks, worked perfectly. :)

4
Graphics / Pass a vertex array to an sf::Image
« on: December 23, 2014, 06:17:05 pm »
I'm fairly new at this. I can draw user defined vertex arrays to the screen/window, and also define/export an image pixel by pixel. Is there a way to combine the two? I mean to create a vertex array and then export it as an image as a .png etc..
Thanks a bunch.

Pages: [1]