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

Pages: [1]
1
Graphics / Re: Are shapes even drawable in 2.0...?
« on: July 14, 2012, 07:03:45 pm »
OK so apparently this turned into a giant mess.

Quote
It can be irritating when people obviously didn't read the documentation and tutorials

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.

Quote
It's also irritating to see people who don't seem to be able to do anything on their own.

I actually usually don't even questions, but thanks for the assumption. 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.

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.

2
Graphics / Re: Are shapes even drawable in 2.0...?
« on: July 13, 2012, 04:46:37 pm »
I updated my drivers < 6 months ago. I'm using an HP-Dv7 4285dx. Core i5 2.53 ghz, 6gb ram, and a radeon 6370m.

I doubt it's anything hardware related, as I could run OpenGL fine just a few months ago. How are you linking?

3
Graphics / Re: Are shapes even drawable in 2.0...?
« on: July 13, 2012, 03:22:12 pm »
Editing first post seems silly when there's a reply feature. Anyway, not here to argue conventions of forum use.

What I've been testing is one of the examples, just instead of displaying test I changed it to a CircleShape. The only difference. The text worked, this does not.

4
Graphics / Re: Are shapes even drawable in 2.0...?
« on: July 13, 2012, 03:08:35 pm »
Do you all even read? I tried every arrangement of clear, draw, and display. None of them worked.

5
Graphics / Re: Are shapes even drawable in 2.0...?
« on: July 13, 2012, 06:04:11 am »
Let me reword that, similar code (some classes didn't exist in 1.6) worked just fine before.

I did mention everything I had tried, and I got no error messages. Though I did in fact post what error I was getting. After that, I have no idea what is going on.

I don't tend to ask questions often as I prefer to figure things out on my own, but I don't believe this error is on my end, and I can't seem to find anyone else having similar problems.

6
Graphics / Re: Are shapes even drawable in 2.0...?
« on: July 13, 2012, 05:18:59 am »
Thanks for questioning my intelligence, but I do understand what these functions do. 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.

So stop with your undeserved cockiness, and just tell me what I'm doing wrong, if anything. Because this worked just fine in 1.6.

7
Graphics / Re: Are shapes even drawable in 2.0...?
« on: July 13, 2012, 04:34:22 am »
Yes, cause I have no idea what you mean.

8
Graphics / Are shapes even drawable in 2.0...?
« on: July 13, 2012, 04:11:59 am »
So I've had nothing but terrible luck with 2.0. I finally got some time to sit down and mess around with it again, and now I can't get anything to draw. According to the documentation, I'm doing nothing wrong (unless this is some linking issue which every bug seems to be related to).

sf::CircleShape ball;
    ball.setRadius(250);
    ball.setFillColor(sf::Color::Red);
    ball.setOutlineColor(sf::Color::Red);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
            {
                window.close();
            }
        }

        window.clear();
        window.draw(ball);
        window.display();
    }

I've tried it this way, tried giving it an initial position explicitly, tried creating it dynamically like that would help. All to no avail. And don't tell me to "search the forums". I have.

EDIT:
Had a piece of old code that made no sense. Not related to problem.

9
General / Re: Switch from 1.6 to 2.0
« on: July 05, 2012, 03:50:49 pm »
Ah I did not search github for this.

Seems as if the fix to this is to just explicitly call getDefaultFont() in the sf::Text constructor?

10
General / Re: Switch from 1.6 to 2.0
« on: July 05, 2012, 03:15:56 pm »
@Laurent,

Hi I did read that. I used your test code that you have on the setting up page. I did download the RC, and I did get the SJLJ download.

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(300, 200), "SFML works!");
    sf::Text text("Hello SFML");

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(text);
        window.display();
    }

    return 0;
}

Generates no build errors, and no real run time errors. The error only comes up when I actually try to close the window. In which case, the error message comes up.

I'm not sure what more info you want. I've checked to make sure things are in order at my end, and I've posted the error message and now the code. I'm not at my computer with the program in question, so I can't really run the debugger on it.

11
General / Switch from 1.6 to 2.0
« on: July 05, 2012, 04:46:31 am »
Hey there, this is my first post here. I've been using SFML for a bit now and so far really enjoy it. Anyway, I just did the switch from 1.6 to 2.0, and ran into an odd issue that I have no idea on.

If a run my program in debug mode, it runs fine until I go to close the SFML window. When I do so, I get a "Test.exe has stopped working... Searching for reason" Windows message (You know how helpful those are -_-). Anyway, after about 30 seconds of it searching for a reason, it gives me an option to debug. I click that and get this:

Quote
An unhandled win32 exception occured in Test.exe[6688]. Just-In-Time debugging this exception failed with the following error: No installed debugging has Just-In-Time debugging enabled. In Visual Studio... Goes on to explain how to get it in VS

This is odd, because I'm not using VS, nor do I even have it installed on my computer actually. I don't know if this is a known issue, or I'm the only one to experience this. If you have any suggestions, I would appreciate it. It doesn't seem to be some terrible thing, but it's annoying that this happens every time I close my program.

EDIT:
I should probably say I'm using Code::Blocks 10.05 and the version of G++ that comes with that.

Thanks,
-Biscuit

Pages: [1]