docs
Loading...
Searching...
No Matches
ULRenderTarget

#include <Ultralight/CAPI/CAPI_Defines.h>

Overview

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.

Member Data Documentation

◆ height

unsigned int height

The viewport height (in device coordinates).

◆ is_empty

bool is_empty

Whether this target is empty (null texture).

◆ render_buffer_id

unsigned int render_buffer_id

The GPUDriver-specific render buffer ID.

◆ texture_format

ULBitmapFormat texture_format

The pixel format of the texture.

◆ texture_height

unsigned int texture_height

The texture height (in pixels). This may be padded.

◆ texture_id

unsigned int texture_id

The GPUDriver-specific texture ID (you should bind the texture using your custom GPUDriver implementation before drawing a quad).

◆ texture_width

unsigned int texture_width

The texture width (in pixels). This may be padded.

◆ uv_coords

ULRect uv_coords

UV coordinates of the texture (this is needed because the texture may be padded).

◆ width

unsigned int width

The viewport width (in device coordinates).


The documentation for this struct was generated from the following file: