RetroArch
Classes | Functions
video_state_tracker.c File Reference
#include <stdlib.h>
#include <compat/strl.h>
#include <retro_inline.h>
#include "video_state_tracker.h"
#include "../input/input_driver.h"
#include "../verbosity.h"
Include dependency graph for video_state_tracker.c:
This graph shows which files directly or indirectly include this file:

Classes

struct  state_tracker_internal
 
struct  state_tracker
 

Functions

state_tracker_tstate_tracker_init (const struct state_tracker_info *info)
 
void state_tracker_free (state_tracker_t *tracker)
 
static INLINE uint16_t state_tracker_fetch (const struct state_tracker_internal *info)
 
static void state_tracker_update_element (struct state_tracker_uniform *uniform, struct state_tracker_internal *info, unsigned frame_count)
 
void state_tracker_update_input (uint16_t *input1, uint16_t *input2)
 
unsigned state_tracker_get_uniform (state_tracker_t *tracker, struct state_tracker_uniform *uniforms, unsigned elem, unsigned frame_count)
 

Function Documentation

◆ state_tracker_fetch()

static INLINE uint16_t state_tracker_fetch ( const struct state_tracker_internal info)
static
Here is the caller graph for this function:

◆ state_tracker_free()

void state_tracker_free ( state_tracker_t tracker)

state_tracker_free: : State tracker handle.

Frees a state tracker handle.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ state_tracker_get_uniform()

unsigned state_tracker_get_uniform ( state_tracker_t tracker,
struct state_tracker_uniform uniforms,
unsigned  elem,
unsigned  frame_count 
)

state_tracker_get_uniform: : State tracker handle. : State tracker uniforms. : Amount of uniform elements. : Frame count.

Calls state_tracker_update_input(), and updates each uniform element accordingly.

Returns: Amount of state elements (either equal to or equal to ->info_eleme).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ state_tracker_init()

state_tracker_t* state_tracker_init ( const struct state_tracker_info info)

state_tracker_init: : State tracker info handle.

Creates and initializes graphics state tracker.

Returns: new state tracker handle if successful, otherwise NULL.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ state_tracker_update_element()

static void state_tracker_update_element ( struct state_tracker_uniform uniform,
struct state_tracker_internal info,
unsigned  frame_count 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ state_tracker_update_input()

void state_tracker_update_input ( uint16_t input1,
uint16_t input2 
)

state_tracker_update_input:

Updates 16-bit input in same format as libretro API itself.

Here is the caller graph for this function: