ofWindowSettings vs ofGLFWWindowSettings

What’s the difference between the 2 classes and why would one use one over another?
If I create a window using ofWindowSettings, does it not use GLFW library at all?
Which works better on all desktop platforms? (better for crossplatform)

Hi,

ofGLFWWindowSettings is a subclass of ofWindowSettings. This means that the former will have all the public members of the latter but not the other way around. When you use ofWindowSettings it will get auto converted to the right subclass.

No, it will use GLFW if GLFW is the suitable windowing system for the platform you are using.

ofWindowSettings should work for all platforms but it wont give you access to specific properties available in its subclasses.

1 Like

Thank you so much Sir!

1 Like