Need I say more?Code: [Select]window.draw(ball);
window.clear();
window.display();
If you're implying my draw() function is in the wrong spot, I have stuck it in every conceivable spot. All to the same result. Even commented it out for shits and giggles. Same result.All spots except one would lead to the same result. As such your efforts to permute through all of them were unfortunately in vain. Commenting it out wouldn't cause the desired effect either. I assume you know this by now.
So stop with your undeserved cockiness, and just tell me what I'm doing wrong, if anything.First of all, I try to help the best I can, and after reviewing your code, I saw an error in it. Posting obviously erroneous code without mentioning that you have tried other variants of it (which are also more correct) and expecting someone to help you without mentioning the error I already quoted is asking for someone to read your mind, which I can not yet do. Normally I would ask for a more complete example that I could compile for myself, however based on the aforementioned assumption I deemed it unnecessary. Now that you have asserted that making the calls in the right order also leads to the same results I would be willing to help you if there was a more complete example.
Because this worked just fine in 1.6.If you refer to your posted code when you say "this", then no, it wouldn't have worked in 1.6 either. Getting the drawing and clearing order wrong never works, anywhere.
Do you all even read? I tried every arrangement of clear, draw, and display. None of them worked.Then edit your first post! ::)
>:( Wow, just joined because I had a similar issue, but appears this forum is useless. Every reply seems to be insult your intelligence and then tell you to RTFM. What is the point of a forum for seeking help with SFML if you basically insult and demean the person seeking help then say RTFM? Save a lot of space on your server with this attitude as you won't need to have the forums, just plaster RTFM on every page.You obviously don't understand what free help is. Everyone in here helping others takes parts from it's freetime to help others. Now if someone comes a long with a problem that has an obvious error in it (draw, clear, display) then it seems like the writer hasn't taken much time to fine a solution on it's own, because if you look at any example or the documentation or the tutorials it would get clear pretty soon what the solution should be (clear, draw, display).
Though, I must thank you, with your attitude you have made me decide to go to SDL/Allegro or any other library as at least they don't insult potential users for asking questions.Good luck by deal with ugly APIs. :)
Though, I must thank you, with your attitude you have made me decide to go to SDL/Allegro or any other library as at least they don't insult potential users for asking questions.Yeah, good argument for SDL/Allegro. I'm sure there's also the library developer himself who spends all his free time on answering almost every question within hours.
For other threads where we advice people to read the docs or a C++ book, we're trying to get people to understand how to help them self and fix their own problems. So we help them for self-help (capacity building) and that's more important then just fixing their things (reallife example: Africa).That is my point, if you want them to help themselves why bother with a forum where people can ask for help? That is like customer support for a company telling you to figure it out on your own when their product breaks, you will move to another product that does the same thing. My issue is that you can help them help themselves, but it seems a lot of the replies come across as just rude and demeaning. When looking back at other posts I see the same pattern of posts that come across as rude/demeaning and makes me hesitant to post, not knowing if the question would get actual help or the rude/demeaning self help replies. Problem is that even when reading the docs you may miss it so you come here to ask a question to get RTFM as the reply. I've done this numerous times when reading docs and replies like binary's where he used bold on "every" immediately made me think of a parent scolding their kid.
Good luck by deal with ugly APIs. :)SFML isn't any less ugly. I've been programming for 16 years and have never seen an API that isn't ugly. Qt, Allegro, SDL, SFML, enet, Box 2d, etc all have ugly APIs and could be improved upon in one way or another. To be honest I write wrappers for every library I use so the ugliness isn't an issue.
Yeah, good argument for SDL/Allegro. I'm sure there's also the library developer himself who spends all his free time on answering almost every question within hours.Well in Allegro they do because several members of the community are the developers of it. Don't know about SDL but it has so many tutorials around that I've not had to ask questions on it as of yet, but I've just started learning it too so I can't predict the future in that regard. With SFML I've only seen a few sites that link back to the tutorials for 1.6 and 2.0 or others that just basically copied these tutorials and pasted them on their page.
SFML isn't any less ugly. I've been programming for 16 years and have never seen an API that isn't ugly. Qt, Allegro, SDL, SFML, enet, Box 2d, etc all have ugly APIs and could be improved upon in one way or another. To be honest I write wrappers for every library I use so the ugliness isn't an issue.What exactly is ugly in SFML? It's a real question, because I'm interested in your criterions, as I personally have only seen very few C++ libraries with such a clean API as SFML. For me, "clean" includes points like:
It can be irritating when people obviously didn't read the documentation and tutorials
It's also irritating to see people who don't seem to be able to do anything on their own.
Well, I did actually read the documentation and ended up reading every relevant tutorial. Nowhere does it have anything relating to my problem. They all assumed that there wouldn't be a problem with something so simple.Like Nexus said, don't take it for yourself, that wasn't targeted to anyone in particular. Don't play the victim too much :P
Once again, I came here and asked when I pretty sure the problem had nothing to do with my code. And it didnt, considering it worked just fine on my Linux VM.Of course but you should have made it clear in your first post. All that people saw at the beginning was this totally obvious error, and thus focused on that. And again, my statement was not about you.
Anyway, this thread has completely turned me off from this entire library. I will not be recommending this to anyway, and I will be dropping the library myself.That's your choice, but I think it's a very bad reason. It implies that you choose your tools according to your feelings, instead of the usual technical details (design of the API, documentation/tutorials, features, ...). And because you didn't like a single user's posts doesn't mean that SFML is a bad library. Although I'm the administrator, I can't control what every user says on the forum.