Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Window vs. RenderWindow  (Read 6996 times)

0 Members and 1 Guest are viewing this topic.

TheNeedle

  • Newbie
  • *
  • Posts: 2
    • View Profile
Window vs. RenderWindow
« on: April 09, 2008, 10:56:57 pm »
Hi,

I'm using SFML 1.2 on a linux(debian)-box.
I tried the code from the documentation, which creates a window with class RenderWindow. For the image in backround i used one with some nice girls, by the way... :P ... everything works fine.
Next i started to try "Opening a Window" as shown in Tutorial. There the App.-Window is created with Window. In this window, the girls are stil visible, but distorted. The point is not the distortion, but why are they visible?

[/i]

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Window vs. RenderWindow
« Reply #1 on: April 10, 2008, 03:35:54 am »
As said in the tutorial, if nothing is drawn in the window then there could be anything, most likely the content of the video memory (ie. the last thing you displayed -- your cute girls :)).

You need at least to call glClear if you want your window to be filled with a color.
Laurent Gomila - SFML developer

TheNeedle

  • Newbie
  • *
  • Posts: 2
    • View Profile
Window vs. RenderWindow
« Reply #2 on: April 10, 2008, 02:56:29 pm »
Oh, sorry! I missed this tiny part in the text... :P
I recognized, that after restart the picture is also stil visible, turning tho box off and on the girls were gone...

Thx4Reply,
regards

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
Window vs. RenderWindow
« Reply #3 on: April 11, 2008, 05:05:43 pm »
Quote from: "TheNeedle"
Oh, sorry! I missed this tiny part in the text... :P


That's what happens when you are looking at cute girls at the same time. :D