Ultralight C++ API 1.3.0
|
#include <Ultralight/platform/Surface.h>
SurfaceFactory can be used to provide your own native Surface implementation.
This can be used to wrap a platform-specific GPU texture, Windows DIB, macOS CGImage, or any other pixel buffer target for display on screen.
The default factory creates/destroys a BitmapSurface but you can override this by providing your own factory to Platform::set_surface_factory.
Public Member Functions | |
virtual | ~SurfaceFactory () |
virtual Surface * | CreateSurface (uint32_t width, uint32_t height)=0 |
Create a native Surface with a certain width and height (in pixels). | |
virtual void | DestroySurface (Surface *surface)=0 |
Destroy a native Surface previously created by CreateSurface(). | |
|
virtual |
|
pure virtual |
Create a native Surface with a certain width and height (in pixels).
|
pure virtual |
Destroy a native Surface previously created by CreateSurface().