• Forum
  • Lounge
  • sfml transparent problem using vs expres

 
sfml transparent problem using vs express for windows desktop

Can anyone help me.

when im running a test program of SFML in vs express, i keep getting this weird transparent window, even in codeblocks.

when im using community, i dont have any problem


Here is the screenshort:
http://tinypic.com/view.php?pic=jrzqpt&s=8#.VUWjUpOJjLE

thanks.
Can I see your code?

It seems as though you're not updating the window... are you are calling window.display(); at the end of the frame?
Last edited on
@Avilius

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow win(sf::VideoMode(200, 200), "SFML Test");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

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

        win.clear();
        win.draw(shape);
        win.display();
    }

    return 0;
}
What video card do you have? If it's an Intel GMA card, they are known to be bad at rendering opengl.
Last edited on
That doesn't look like a 200x200 window.
Also isn't 200x200 too tiny on Windows? Try a 500x500 one.

(If you press the X button, does the window go down?)
Topic archived. No new replies allowed.