context.go 251 B

123456789
  1. package driver
  2. // WithContext allows drivers to execute within another context.
  3. // Mostly this helps GLFW code execute within the painter's GL context.
  4. type WithContext interface {
  5. RunWithContext(f func())
  6. RescaleContext()
  7. Context() interface{}
  8. }