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

Author Topic: Double buffering with OpenGL  (Read 2445 times)

0 Members and 1 Guest are viewing this topic.

tobix10

  • Newbie
  • *
  • Posts: 7
    • View Profile
Double buffering with OpenGL
« on: December 14, 2009, 07:51:00 pm »
Is SFML by default use double buffering with code using OpenGL? (I am displaying graphic in sf::Window).


What is PreserveOpenGLStates(true) doing ?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Double buffering with OpenGL
« Reply #1 on: December 14, 2009, 07:52:40 pm »
Quote
Is SFML by default use double buffering with code using OpenGL?

Yes.

Quote
What is PreserveOpenGLStates(true) doing ?

It prevents the SFML graphics classes from polluting your own OpenGL states.
Laurent Gomila - SFML developer

tobix10

  • Newbie
  • *
  • Posts: 7
    • View Profile
Double buffering with OpenGL
« Reply #2 on: December 14, 2009, 09:42:43 pm »
Thx. :D

 

anything