The ViewRenderer is in charge of drawing a View in a user-supplied texture.
More...
|
virtual void | Destroy ()=0 |
| Destorys the ViewRednerer.
|
|
virtual PaintResult | Paint (unsigned frameId, bool runUntilCompleteFrame)=0 |
| Call this each frame to update the UI texture. This call will perform the actual rendering using the backend associated in the SystemRenderer.
|
|
virtual void | SetRenderTarget (void *nativeTexture, void *nativeDepthStencil, unsigned width, unsigned height, unsigned samples)=0 |
| Sets the user texture that will be used for rendering. More...
|
|
virtual void | FreeRenderingResources ()=0 |
| Frees all rendering resources used by Hummingbird that are associated with this specific view. To free all resources, you need to call this method on all ViewRenderer objects and on the SystemRenderer. More...
|
|
The ViewRenderer is in charge of drawing a View in a user-supplied texture.
◆ PaintResult
The result of the Paint call.
Enumerator |
---|
PR_NothingToPaint | Such frame was not found, it might have already been painted.
|
PR_PaintedSome | The frame did nothing because there we no actual changes to apply.
|
PR_FrameComplete | The call executed some commands but the frame is not yet completely done.
All rendering commands for this frame have been completed
|
◆ FreeRenderingResources()
virtual void cohtml::ViewRenderer::FreeRenderingResources |
( |
| ) |
|
|
pure virtual |
◆ SetRenderTarget()
virtual void cohtml::ViewRenderer::SetRenderTarget |
( |
void * |
nativeTexture, |
|
|
void * |
nativeDepthStencil, |
|
|
unsigned |
width, |
|
|
unsigned |
height, |
|
|
unsigned |
samples |
|
) |
| |
|
pure virtual |
Sets the user texture that will be used for rendering.
- Parameters
-
nativeTexture | An opaque object that will later be passed to the rendering backend. This should represent the texture to draw into in whatever object is expected by the backend. |
nativeDepthStencil | An opaque object that will later be passed to the rendering backend. This should represent the depth-stencil texture in whatever object is expected by the backend. |
width | the width of the backend texture |
height | the height of the backend texture |
samples | the number of samples of the target texture if MSAA is used. Set to 1 if no MSAA is enabled. |