C SDK
Loading...
Searching...
No Matches
Data Structures | Typedefs
PerformanceKit

Data Structures

struct  PleyResolution
 
struct  PleyPerformanceKit
 

Typedefs

typedef struct PleyResolution PleyResolution
 
typedef void(* PleyPFKViewportSizeChangedCB) (PleyResolution resolution, void *callback_data)
 
typedef void(* PleyPFKFullscreenChangedCB) (bool fullscreen, void *callback_data)
 
typedef struct PleyPerformanceKit PleyPerformanceKit
 

Detailed Description


Data Structure Documentation

◆ PleyResolution

struct PleyResolution
Data Fields
int32_t height
int32_t width

◆ PleyPerformanceKit

struct PleyPerformanceKit

Data Fields

PleyResult(* get_viewport_size )(PleyResolution *resolution)
 
PleyResult(* get_common_resolutions )(const PleyResolution **resolutions, int32_t *resolutions_len)
 
PleyResult(* set_on_viewport_size_changed )(PleyPFKViewportSizeChangedCB callback, void *callback_data)
 
PleyResult(* set_aspect_ratio )(float aspect_ratio)
 
PleyResult(* set_game_resolution )(const PleyResolution *resolution, bool match_common, bool cap_to_screen)
 
PleyResult(* get_game_resolution )(PleyResolution *resolution)
 
PleyResult(* get_is_fullscreen )(bool *is_fullscreen)
 
PleyResult(* set_on_fullscreen_changed )(PleyPFKFullscreenChangedCB callback, void *callback_data)
 
PleyResult(* set_fullscreen )(bool value)
 

Field Documentation

◆ get_common_resolutions

PleyResult(* PleyPerformanceKit::get_common_resolutions) (const PleyResolution **resolutions, int32_t *resolutions_len)

◆ get_game_resolution

PleyResult(* PleyPerformanceKit::get_game_resolution) (PleyResolution *resolution)

◆ get_is_fullscreen

PleyResult(* PleyPerformanceKit::get_is_fullscreen) (bool *is_fullscreen)

◆ get_viewport_size

PleyResult(* PleyPerformanceKit::get_viewport_size) (PleyResolution *resolution)

◆ set_aspect_ratio

PleyResult(* PleyPerformanceKit::set_aspect_ratio) (float aspect_ratio)

◆ set_fullscreen

PleyResult(* PleyPerformanceKit::set_fullscreen) (bool value)

◆ set_game_resolution

PleyResult(* PleyPerformanceKit::set_game_resolution) (const PleyResolution *resolution, bool match_common, bool cap_to_screen)
Returns
Possible error: PLEY_RESULT_INVALID_ARGUMENTS

◆ set_on_fullscreen_changed

PleyResult(* PleyPerformanceKit::set_on_fullscreen_changed) (PleyPFKFullscreenChangedCB callback, void *callback_data)

◆ set_on_viewport_size_changed

PleyResult(* PleyPerformanceKit::set_on_viewport_size_changed) (PleyPFKViewportSizeChangedCB callback, void *callback_data)

Typedef Documentation

◆ PleyPerformanceKit

◆ PleyPFKFullscreenChangedCB

typedef void(* PleyPFKFullscreenChangedCB) (bool fullscreen, void *callback_data)

◆ PleyPFKViewportSizeChangedCB

typedef void(* PleyPFKViewportSizeChangedCB) (PleyResolution resolution, void *callback_data)

◆ PleyResolution