61
SFML projects / Re: SFGUI (0.0.0 released)
« on: January 09, 2013, 01:28:54 am »
Hi, I'm having some trouble learning the API with the documentation alone. Where can I get some additional example code other than Hello, World!?
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.
Really? I don't make copies all the time. I try to use pass-by-ref all the time if it's not fundamental types. And there are copies that are absolutely unnecessary(sf::Vector2f in my case). This is why STL provides emplace functions.QuoteIt's just that I don't like unnecessary copies if I can avoid itI think it's wrong to think this way. You do copies all the time, and I'm sure you don't notice most of them. And they are not unnecessary; or if you think so, then maybe you should work with an assembly language rather than one that provides abstractions
And, of course, "I don"t like" alone is never an argument. I can't build a library based on what one user likes or not. I need strong arguments. I'm sure you understand that
It's just that I don't like unnecessary copies if I can avoid itQuoteThis seems inconsistent with other functions in SFML.
sf::Shape::setPosition(), sf::Shape::setScale(), sf::Shape::setOrigin(), sf::Shape::move(), and other functions have overloads for taking 2 separate arguments.
But why not sf::Rect::setSize()?Quote from: LaurentFunctions that have overloads taking separate floats are there mainly for historical reasons.QuoteOther than "ugliness", I can avoid unnecessary copies of sf::Vector2f objectWhat's wrong with copying sf::Vector2?
This seems inconsistent with other functions in SFML.QuoteI think there's no reason for this not to be implemented.The reason is to avoid duplicating a big amount of functions. In my opinion, "ugliness" is not a valid argument for it.
Functions that have overloads taking separate floats are there mainly for historical reasons.
Did anyone successfully compiled sfeMovie for Visual Studio 2012?
Hi Ceylo !What did you do and what is the error you get?
I'm new to the SFML and trying to run this sfeMovie project to my Visual Studio project.The problem i get is with the creation of the FFmpeg.I followed the provided instructions but every thing crashes on the last step in the minGW.
I'm running the file build.sh but for some reason i get the strange message that ffmped-sourse directory is missing.
Where should i put it or what i can do to generate the ffmpeg libs