-
Notifications
You must be signed in to change notification settings - Fork 13
Video functions
This category contains functions for retrieving or resizing the video buffer. More...
| Type | Name |
|---|---|
| struct |
fplVideoBackBuffer A structure containing video backbuffer properties. More... |
| struct |
fplVideoRect A structure defining a video rectangle's position and size. More... |
| union |
fplVideoRequirements Stores the video requirements for the desired video backend. More... |
| struct |
fplVideoRequirementsVulkan Stores the requirements for the Vulkan video backend. More... |
| struct |
fplVideoSurface Stores the surface properties for the active video backend. More... |
| struct |
fplVideoSurfaceOpenGL Stores the surface properties for the OpenGL video backend. More... |
| struct |
fplVideoSurfaceVulkan Stores the surface properties for the Vulkan video backend. More... |
| union |
fplVideoWindow Stores the video window handles. More... |
| Type | Name |
|---|---|
| fpl_common_api fplVideoRect |
fplCreateVideoRectFromLTRB (int32_t left, int32_t top, int32_t right, int32_t bottom) Makes a video rectangle from a LTRB rectangle. |
| fpl_common_api fplVideoBackBuffer * |
fplGetVideoBackBuffer (void) Retrieves the pointer to the current video backbuffer. |
| fpl_common_api const char * |
fplGetVideoBackendName (fplVideoBackendType backendType) Gets a string that represents the given video backend. |
| fpl_common_api fplVideoBackendType |
fplGetVideoBackendType (void) Gets the current video backend. |
| fpl_common_api const void * |
fplGetVideoProcedure (const char *procName) Gets the procedure by the specified name from the active video backend. |
| fpl_common_api bool |
fplGetVideoRequirements (const fplVideoBackendType backendType, fplVideoRequirements *requirements) Gets the video requirements for the specified video backend. |
| fpl_common_api const fplVideoSurface * |
fplGetVideoSurface (void) Gets the current video surface that stores all handles used for the active video backend. |
| fpl_common_api bool |
fplResizeVideoBackBuffer (const uint32_t width, const uint32_t height) Resizes the current video backbuffer. |
| fpl_common_api void |
fplVideoFlip (void) Forces the window to be redrawn or to swap the back/front buffer. |
This category contains functions for retrieving or resizing the video buffer.
fpl_common_api fplVideoRect fplCreateVideoRectFromLTRB ( int32_t left, int32_t top, int32_t right, int32_t bottom )Makes a video rectangle from a LTRB rectangle.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | left | The left position in screen units. |
| [in] | top | The top position in screen units. |
| [in] | right | The right position in screen units. |
| [in] | bottom | The bottom position in screen units. |
Returns: Returns the computed video rectangle.
fpl_common_api fplVideoBackBuffer * fplGetVideoBackBuffer ( void )Retrieves the pointer to the current video backbuffer.
Returns: Returns the pointer to the current video backbuffer
Warning: Do not release this memory by any means, otherwise you will corrupt heap memory!
fpl_common_api const char * fplGetVideoBackendName ( fplVideoBackendType backendType)Gets a string that represents the given video backend.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | backendType | The video backend type fplVideoBackendType. |
Returns: Returns a string for the given video backend type.
fpl_common_api fplVideoBackendType fplGetVideoBackendType ( void )Gets the current video backend.
Returns: Returns the current video backend type.
fpl_common_api const void * fplGetVideoProcedure ( const char * procName)Gets the procedure by the specified name from the active video backend.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | procName | The name of the procedure. |
Returns: Returns the function pointer of the procedure.
fpl_common_api bool fplGetVideoRequirements ( const fplVideoBackendType backendType, fplVideoRequirements * requirements )Gets the video requirements for the specified video backend.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | backendType | The video backend type fplVideoBackendType. |
| [out] | requirements | Reference to the video requirements fplVideoRequirements. |
Returns: Returns true when the video requirements are filled out, false otherwise.
fpl_common_api const fplVideoSurface * fplGetVideoSurface ( void )Gets the current video surface that stores all handles used for the active video backend.
Returns: The resulting video surface reference
fpl_common_api bool fplResizeVideoBackBuffer ( const uint32_t width, const uint32_t height )Resizes the current video backbuffer.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | width | The width in pixels. |
| [in] | height | The height in pixels. |
Returns: Returns true when the video backbuffer could be resized, false otherwise.
- Assertion & Debug
- Atomic operations
- Audio functions
- Clipboard functions
- Console functions
- Constants
- Display/Monitor functions
- Dynamic library loading
- Error Handling
- Files/IO functions
- Function macros
- Hardware Infos
- Input types and functions
- Localization functions
- Logging
- Memory Macros
- Memory functions
- Operating system Infos
- Path functions
- Platform functions
- Session Infos
- Settings & Configurations
- Storage class identifiers
- String functions
- Threading and synchronizations routines
- Timing functions
- Video functions
- Window events
- Window functions
- fplARMCPUCapabilities
- fplAudioChannelMap
- fplAudioDeviceID
- fplAudioDeviceInfo
- fplAudioFormat
- fplAudioSettings
- fplColor32
- fplConditionVariable
- fplConsoleSettings
- fplCPUCapabilities
- fplCPUIDLeaf
- fplDateTime
- fplDateTimeCreationResult
- fplDateTimeResult
- fplDisplayInfo
- fplDisplayMode
- fplDynamicLibraryHandle
- fplEndianess
- fplEvent
- fplFileEntry
- fplFileHandle
- fplFilePermissions
- fplFileTimeStamps
- fplGamepadButton
- fplGamepadData
- fplGamepadEvent
- fplGamepadInfo
- fplGamepadInputBinding
- fplGamepadMapping
- fplGamepadSettings
- fplGamepadState
- fplGamepadStates
- fplGraphicsApiSettings
- fplImageSource
- fplInputBackendMask
- fplInputBackendSupport
- fplInputDevice
- fplInputDeviceGuid
- fplInputSettings
- fplInternalConditionVariable
- fplInternalDynamicLibraryHandle
- fplInternalFileEntryHandle
- fplInternalFileHandle
- fplInternalFileRootInfo
- fplInternalMutexHandle
- fplInternalSemaphoreHandle
- fplInternalSignalHandle
- fplInternalThreadHandle
- fplKeyboardEvent
- fplKeyboardState
- fplLogSettings
- fplLogWriter
- fplLogWriterConsole
- fplLogWriterCustom
- fplMemoryAllocationSettings
- fplMemoryBlock
- fplMemoryInfos
- fplMemorySettings
- fplMouseEvent
- fplMouseState
- fplMutexHandle
- fplOpenGLSettings
- fplOSVersionInfos
- fplSemaphoreHandle
- fplSettings
- fplSignalHandle
- fplSpecificAudioSettings
- fplThreadHandle
- fplThreadParameters
- fplTimestamp
- fplVersionInfo
- fplVideoBackBuffer
- fplVideoRect
- fplVideoRequirements
- fplVideoRequirementsVulkan
- fplVideoSettings
- fplVideoSurface
- fplVideoSurfaceOpenGL
- fplVideoSurfaceVulkan
- fplVideoWindow
- fplVulkanSettings
- fplWindowCallbacks
- fplWindowDropFiles
- fplWindowEvent
- fplWindowPosition
- fplWindowSettings
- fplWindowSize
- fplX86CPUCapabilities