|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
inline |
Construct a Surface around a pre-built Layer and Context.
Surface takes shared ownership of all three components. The caller is responsible for ensuring the Layer and Context were constructed against window.
The default factory Portal::Forma::create_surface delegates here after building a fresh Layer and Context against the global EventManager. Call this constructor directly when you need a custom Context subclass or want to share a Layer across multiple Contexts.
| window | Target window. Must match the window the Context was constructed against. |
| layer | Pre-built Layer. |
| ctx | Pre-built Context, already wired to window. |
Definition at line 81 of file Surface.hpp.