This category contains functions for retrieving or resizing the video buffer.
More...
|
typedef struct fplVideoBackBuffer | fplVideoBackBuffer |
| A structure containing video backbuffer properties.
|
|
typedef struct fplVideoRect | fplVideoRect |
| A structure defining a video rectangles position and size.
|
|
typedef union fplVideoRequirements | fplVideoRequirements |
| Stores the video requirements for the desired video backend.
|
|
typedef struct fplVideoRequirementsVulkan | fplVideoRequirementsVulkan |
| Stores the requirements for the Vulkan video backend.
|
|
typedef struct fplVideoSurface | fplVideoSurface |
| Stores the surface properties for the active video backend.
|
|
typedef struct fplVideoSurfaceOpenGL | fplVideoSurfaceOpenGL |
| Stores the surface properties for the OpenGL video backend.
|
|
typedef struct fplVideoSurfaceVulkan | fplVideoSurfaceVulkan |
| Stores the surface properties for the Vulkan video backend.
|
|
typedef union fplVideoWindow | fplVideoWindow |
| Stores the video window handles.
|
|
This category contains functions for retrieving or resizing the video buffer.
◆ fplCreateVideoRectFromLTRB()
fpl_inline fplVideoRect fplCreateVideoRectFromLTRB |
( |
int32_t |
left, |
|
|
int32_t |
top, |
|
|
int32_t |
right, |
|
|
int32_t |
bottom |
|
) |
| |
Makes a video rectangle from a LTRB rectangle.
- Parameters
-
left | The left position in screen units |
top | The top position in screen units |
right | The right position in screen units |
bottom | The bottom position in screen units |
- Returns
- Returns the computed video rectangle fplVideoRect
Definition at line 6593 of file final_platform_layer.h.
◆ fplGetVideoBackBuffer()
Retrieves the pointer to the current video backbuffer.
- Returns
- Returns the pointer to the current fplVideoBackBuffer.
- Warning
- Do not release this memory by any means, otherwise you will corrupt heap memory!
◆ fplGetVideoBackendName()
Gets a string that represents the given video backend.
- Parameters
-
- Returns
- Returns a string for the given video backend type
◆ fplGetVideoBackendType()
Gets the current video backend.
- Returns
- Returns the current video backend type fplVideoBackendType
◆ fplGetVideoProcedure()
fpl_common_api const void * fplGetVideoProcedure |
( |
const char * |
procName | ) |
|
Gets the procedure by the specified name from the active video backend.
- Parameters
-
procName | The name of the procedure. |
- Returns
- Returns the function pointer of the procedure.
◆ fplGetVideoRequirements()
Gets the video requirements for the specified video backend.
- Parameters
-
- Returns
- Returns true when the fplVideoRequirements are filled out, false otherwise.
◆ fplGetVideoSurface()
◆ fplResizeVideoBackBuffer()
fpl_common_api bool fplResizeVideoBackBuffer |
( |
const uint32_t |
width, |
|
|
const uint32_t |
height |
|
) |
| |
Resizes the current video backbuffer.
- Parameters
-
width | The width in pixels |
height | The height in pixels |
- Returns
- Returns true when video back buffer could be resized, false otherwise.