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

Author Topic: Creating a Context with sfContextSettings?  (Read 4682 times)

0 Members and 1 Guest are viewing this topic.

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Creating a Context with sfContextSettings?
« on: September 18, 2012, 07:13:11 am »
I guess this question is mainly for Laurent, but anyone else is welcome to school me on the subject!

Anyways, my question revolves around the sfContext functions. The sfContextSettings struct is clearly defined, but there doesn't seem to be any use for it when defining an sfContext. Was this done on purpose or am I completely missing something?

Thanks, guys!
DSFML - SFML for the D Programming Language.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Creating a Context with sfContextSettings?
« Reply #1 on: September 18, 2012, 08:18:48 am »
The context settings are used when creating a window.
Laurent Gomila - SFML developer

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Re: Creating a Context with sfContextSettings?
« Reply #2 on: September 18, 2012, 08:46:17 am »
Oh, sweet! I see what you mean now.

I was just confused because the C++ version has a constructor in the Context class which takes a ContextSettings as a parameter but I didn't see any CSFML counterpart.

Thanks for the help!
DSFML - SFML for the D Programming Language.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Creating a Context with sfContextSettings?
« Reply #3 on: September 18, 2012, 09:15:21 am »
Quote
I was just confused because the C++ version has a constructor in the Context class which takes a ContextSettings as a parameter but I didn't see any CSFML counterpart.
Yes, and if you read its documentation, you can see:
Quote
This constructor is for internal use
Laurent Gomila - SFML developer

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Re: Creating a Context with sfContextSettings?
« Reply #4 on: September 18, 2012, 09:21:38 am »
I most definitely missed that.

Sorry for asking such a silly question! I will make sure to read the documentation more thoroughly in the future.
DSFML - SFML for the D Programming Language.

 

anything