The library uses this to create/destroy Surface instances when rendering Views on the CPU.
- Precondition
- This is automatically managed for you when using App::Create(), if you want to override Surface or SurfaceFactory, you'll need to use Renderer::Create() instead.
Setting the Surface Factory
The default factory creates/destroys a BitmapSurface but you can override this by providing your own factory to Platform::set_surface_factory().
◆ ~SurfaceFactory()
◆ CreateSurface()
virtual Surface * CreateSurface |
( |
uint32_t | width, |
|
|
uint32_t | height ) |
|
pure virtual |
Create a native Surface with a certain width and height (in pixels).
◆ DestroySurface()
virtual void DestroySurface |
( |
Surface * | surface | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: