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

Pages: [1]
1
System / Re: Using std::map and sf::Vector as key?
« on: August 28, 2012, 02:57:37 pm »
Oh doh, thanks guys. I've written a functor and it works now :)

2
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).

3
SFML projects / Re: TGUI: a c++ GUI for SFML (with Form Builder)
« on: August 25, 2012, 06:30:12 pm »
Oh It's not I'm trying to stop an object from being drawn, as I could easily hide and disable it. What i'm trying to do is draw Spritesheets as one layer in a Panel, then draw Particles from Thor, then draw the interface Panel ontop of it all.

So i'd be doing this

 
draw()
{
      window.draw(*worldpanel);
      window.draw(particles);
      window.draw(*interfacepanel);
}
 

I'm not worried too much about having it today, I can make due with doing the interface in code as I have it atm till you're done. :)

4
SFML projects / Re: TGUI: a c++ GUI for SFML (with Form Builder)
« on: August 25, 2012, 05:57:19 pm »
Yeah sorry about asking a stupid question when the answer was already there.
What limitations will I run into?

That workaround would work fine :)

5
SFML projects / Re: TGUI: a c++ GUI for SFML (with Form Builder)
« on: August 25, 2012, 05:10:51 pm »
Texus can you make Panel's draw function public? It's just I'd like to be able to use Panels to layer the order in which i draw things, so I can draw things outside of TGUI in-between the drawing of the GUI. I'd rather not have to make a new object just so I can draw things in the correct order.
Sorry if I'm being an idiot and missed something to let me do this already.

Turns out I'm an idiot who should have tested window.draw(PanelName); before posting this.

Also can I request a feature for the form builder? The feature being the ability to use percentage based values for size and position. I'd like to use form builder generated/self made text files for all my interfaces but I simply can't while allowing my program to have different resolutions set for it.

6
General / SFML2 Error / Crash message on Vista with ATI drivers
« on: November 18, 2010, 07:02:21 pm »
This isn't a vista Specific bug. I had it on xp to.
But I expect Laurent will get it fixed.. somehow... lol Maybe ATI will fix it.. who knows.

7
SFML website / [Forum Request] Off topic boards?
« on: November 18, 2010, 07:00:40 pm »
Ah I see. Costs a bit for this to be kept up I see.

8
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)

9
General / SFML games working slowly...
« on: November 18, 2010, 01:36:42 am »
... Every game that uses SFML? Or are you talking about games in general?....

10
General / SFML games working slowly...
« on: November 18, 2010, 01:18:59 am »
Are you using sfml 1.6?
My game got slow fps in SFML 1.6 with it's maploader. I updated to the latest revision of sfml 2.0 and my fps problem was cured.

11
Graphics / SFML 2.0 Pixel Stretch on sprites in my maps.
« on: November 17, 2010, 11:37:20 pm »
Ah I see, That was it. I need to pay attention more when reading documentation.

Thanke Laurent.

13
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?

14
General discussions / Thanks
« on: November 17, 2010, 10:20:48 pm »
Thanks Laurent!
SFML is "Simply Fun on Many Levels"

Pages: [1]