|
Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
|
Interface for components that provide clip rectangles. More...
Classes | |
| class | IClipProvider |
Interface for components that provide clip rectangles.
Implement this interface on any component to have Standard2DRenderer automatically push/pop clip rects during rendering. No pass registration needed.
Implementing the interface is not enough on its own: the renderer discovers it through ComponentInterfaceAdapters, so each component must also register an adapter from its StaticType to this interface. Do that once, from the package's registration path:
This block used to show a QueryInterface override calling DekiComponent::QueryInterface(id). DekiComponent has no such method and never has — following the example produced a compile error on the first custom implementation. The adapter registry exists precisely so DekiComponent needs no virtual for this.