MLGraphicsRenderTarget
Module: Graphics
Definition of a single render target defined in MLGraphicsRenderBufferInfo. More...
#include <ml_graphics.h>
Public Attributes
Type | Name |
---|---|
uint32_t | width |
uint32_t | height |
MLHandle | id |
MLSurfaceFormat | format |
Detailed Description
struct MLGraphicsRenderTarget;
Definition of a single render target defined in MLGraphicsRenderBufferInfo.
Each render target defines one of the buffered entries color/depth surfaces (with maximum count defined by MLGraphics_BufferCount). Clients can assume that the handle provided here will be in the list of handles returned from MLGraphicsBeginFrameEx.
Deprecated
Deprecated since 1.6.0. Scheduled for removal.
Public Attributes Documentation
width
uint32_t width;
The width of the target.
height
uint32_t height;
The height of the target.
id
MLHandle id;
Type | Description |
---|---|
MLHandle | Integer handle type used to reference many things returned by the API, instead of returning pointers directly. Use MLHandleIsValid() to check if a handle is valid or not. |
The handle (ID) of the 2D texture array, each layer represents a virtual camera.
format
MLSurfaceFormat format;
Type | Description |
---|---|
MLSurfaceFormat | The definition of the supported color/depth surface formats. |
The surface format of the target.