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

Pages: [1]
1
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.

2
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]