10 lines
251 B
Go
10 lines
251 B
Go
package driver
|
|
|
|
// WithContext allows drivers to execute within another context.
|
|
// Mostly this helps GLFW code execute within the painter's GL context.
|
|
type WithContext interface {
|
|
RunWithContext(f func())
|
|
RescaleContext()
|
|
Context() interface{}
|
|
}
|