SFML community forums

Bindings - other languages => C => Topic started by: Jebbs on September 18, 2012, 07:13:11 am

Title: Creating a Context with sfContextSettings?
Post by: Jebbs 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!
Title: Re: Creating a Context with sfContextSettings?
Post by: Laurent on September 18, 2012, 08:18:48 am
The context settings are used when creating a window.
Title: Re: Creating a Context with sfContextSettings?
Post by: Jebbs 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!
Title: Re: Creating a Context with sfContextSettings?
Post by: Laurent 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
Title: Re: Creating a Context with sfContextSettings?
Post by: Jebbs 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.