Although in theory there is nothing wrong with this and fosphor itself
should support it. However it seems some OpenCL implementation don't
really like having multiple context created in parallell, so we prevent
this manually here.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Note that the d_zoom_* vars are kept as double to avoid error build-up
when changing them a lot from the UI.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This is required for OSX where you need to tell the GL context when resize
has occured and stuff like that.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The setters can be called from any thrad and will just set the
member variables and a flag asking the main processing thread to apply
the new settings on the next iteration.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
It's split into:
- A generic "base" sink that handles pretty much everything except
managing a GL context and getting the UI interaction for it
- The GLFW specific part
This is preparation for for WX and QT widget implementations of a
fosphor sink.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>