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

Pages: [1]
1
System / Using std::map and sf::Vector as key?
« on: August 28, 2012, 02:00:58 pm »
Yoho all, Is it possible to use a sf::Vector*<*> as the key for a std::map? I've been trying to use it and I keep getting errors about it attempting to compare them past checking the x/y/z matches up.

The Error being " /usr/include/c++/4.6/bits/stl_function.h|236|error: no match for ‘operator<’ in ‘__x < __y’| "

Here's minimal code just to show it.
#include <SFML/System.hpp>
#include <map>

int main()
{
    std::map<sf::Vector3i,int> mymap;

    mymap[sf::Vector3i(1,1,1)] = 1;

    return 0;
}
 

Is there any solution for me or should I just use strings or something as the key instead (obviously putting the numbers together in a stringstream).

2
SFML website / [Forum Request] Off topic boards?
« on: November 18, 2010, 03:38:43 pm »
Excuse me If this has been requested before (I tried to search for it)
But I was wondering if you could add an off topic section to the forum. With boards for General Programming discussion and of course the holy Off topic/general chat/pointless discussion board.
It's just I think it could help with getting people to post more maybe help make a more active community? (correct me if I'm wrong and it won't help)

3
Graphics / SFML 2.0 Pixel Stretch on sprites in my maps.
« on: November 17, 2010, 11:15:17 pm »
Hi everyone. I made this map loader with SFML 1.6 It worked just as intended with no graphical glitches.
However I had a horrid FrameRate. I read on this forum about upgrading to SFML 2.0 fixed their framerate Problem.

So I downloaded cmake. And with help of the tutorial on the SFML 2 Tutorials I downloaded and compiled the latest revision of SFML 2
Edited my source where things had changed and got it up and running.
I now had 60-61 fps.

However in return I have this odd glitch. It seems to stretch the last pixels on the rightside outwards. I have no idea what's causing it and like I said didn't happen in 1.6.

Here's a pic.
http://i9.photobucket.com/albums/a66/Pkmn_knight/graphicglitch.png

In case it makes any difference. I'm using Visual Studio C++ 2010.
I'm using Revision 1667 of SFML 2.0. Just updated to 1671.
My graphics card is ATI Radeon HD 4350 (I get that crashing bug too) Latest drivers updated today.

Any ideas?

Pages: [1]