|
Ultralight C API 2.0.0
|
#include <Ultralight/CAPI/CAPI_Defines.h>
Offscreen render target, used when rendering Views via the GPU renderer.
When a View is rendered via the GPU renderer (see ulViewIsAccelerated()), it will be rendered to an offscreen render target (ulViewGetRenderTarget()) that you can display in your application.
This is intended to be used with a custom ULGPUDriver implementation in a game or similar application (ulPlatformSetGPUDriver()).
Public Attributes | |
| bool | is_empty |
| Whether this target is empty (null texture). | |
| unsigned int | width |
| The viewport width (in device coordinates). | |
| unsigned int | height |
| The viewport height (in device coordinates). | |
| unsigned int | texture_id |
| The GPUDriver-specific texture ID (you should bind the texture using your custom GPUDriver implementation before drawing a quad). | |
| unsigned int | texture_width |
| The texture width (in pixels). This may be padded. | |
| unsigned int | texture_height |
| The texture height (in pixels). This may be padded. | |
| ULBitmapFormat | texture_format |
| The pixel format of the texture. | |
| ULRect | uv_coords |
| UV coordinates of the texture (this is needed because the texture may be padded). | |
| unsigned int | render_buffer_id |
| The GPUDriver-specific render buffer ID. | |
| unsigned int height |
The viewport height (in device coordinates).
| bool is_empty |
Whether this target is empty (null texture).
| unsigned int render_buffer_id |
The GPUDriver-specific render buffer ID.
| ULBitmapFormat texture_format |
The pixel format of the texture.
| unsigned int texture_height |
The texture height (in pixels). This may be padded.
| unsigned int texture_id |
The GPUDriver-specific texture ID (you should bind the texture using your custom GPUDriver implementation before drawing a quad).
| unsigned int texture_width |
The texture width (in pixels). This may be padded.
| ULRect uv_coords |
UV coordinates of the texture (this is needed because the texture may be padded).
| unsigned int width |
The viewport width (in device coordinates).