-
Notifications
You must be signed in to change notification settings - Fork 13
Platform functions
This category contains structures, enumerations and functions for initializing/releasing the platform. More...
| Type | Name |
|---|---|
| fpl_common_api const char * |
fplGetPlatformName (const fplPlatformType type) Gets the string representation of the given platform type. |
| fpl_common_api fplPlatformResultType |
fplGetPlatformResult (void) Gets the result type of the platform initialization. |
| fpl_common_api fplPlatformType |
fplGetPlatformType (void) Gets the type of the platform. |
| fpl_common_api bool |
fplIsPlatformInitialized (void) Gets a value indicating whether the platform is initialized. |
| fpl_common_api bool |
fplPlatformInit (const fplInitFlags initFlags, const fplSettings *initSettings) Initializes the platform layer. |
| fpl_common_api void |
fplPlatformRelease (void) Releases the resources allocated by the platform layer. |
This category contains structures, enumerations and functions for initializing/releasing the platform.
fpl_common_api const char * fplGetPlatformName ( const fplPlatformType type)Gets the string representation of the given platform type.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | type | The platform type enumeration value fplPlatformType. |
Returns: Returns the string representation for the given platform type
See also: Get Current Platform Type/Name
fpl_common_api fplPlatformResultType fplGetPlatformResult ( void )Gets the result type of the platform initialization.
Returns: Returns the platform result type enumeration value
See also: Check platform result
fpl_common_api fplPlatformType fplGetPlatformType ( void )Gets the type of the platform.
Returns: Returns the
See also: Get Current Platform Type/Name
fpl_common_api bool fplIsPlatformInitialized ( void )Gets a value indicating whether the platform is initialized.
Returns: Returns true if the platform is initialized, false otherwise.
fpl_common_api bool fplPlatformInit ( const fplInitFlags initFlags, const fplSettings * initSettings )Initializes the platform layer.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | initFlags | The init flags fplInitFlags used to enable certain features, like video/audio, etc. |
| [in] | initSettings | Reference to the source structure fplSettings, that controls the platform layer behaviors or systems. If null is passed here, default values are used automatically. |
Returns: Returns true when it was successful, false otherwise.
Note: fplPlatformRelease() must be called when you are done! After
fplPlatformRelease() has been called, you can call this function again if needed.
See also: Initialization with default settings
fpl_common_api void fplPlatformRelease ( void )Releases the resources allocated by the platform layer.
Note: Can only be called when
fplPlatformInit() was successful.
See also: Releasing the Platform
- 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