RetroArch
Classes | Typedefs | Enumerations | Functions
video_state_tracker.h File Reference
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
Include dependency graph for video_state_tracker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  state_tracker_uniform_info
 
struct  state_tracker_info
 
struct  state_tracker_uniform
 

Typedefs

typedef struct state_tracker state_tracker_t
 

Enumerations

enum  state_tracker_type {
  RARCH_STATE_CAPTURE = 0, RARCH_STATE_CAPTURE_PREV, RARCH_STATE_TRANSITION, RARCH_STATE_TRANSITION_COUNT,
  RARCH_STATE_TRANSITION_PREV, RARCH_STATE_PYTHON
}
 
enum  state_ram_type { RARCH_STATE_NONE, RARCH_STATE_WRAM, RARCH_STATE_INPUT_SLOT1, RARCH_STATE_INPUT_SLOT2 }
 

Functions

state_tracker_tstate_tracker_init (const struct state_tracker_info *info)
 
void state_tracker_free (state_tracker_t *tracker)
 
unsigned state_tracker_get_uniform (state_tracker_t *tracker, struct state_tracker_uniform *uniforms, unsigned elem, unsigned frame_count)
 
void state_tracker_update_input (uint16_t *input1, uint16_t *input2)
 

Typedef Documentation

◆ state_tracker_t

Enumeration Type Documentation

◆ state_ram_type

Enumerator
RARCH_STATE_NONE 
RARCH_STATE_WRAM 
RARCH_STATE_INPUT_SLOT1 
RARCH_STATE_INPUT_SLOT2 

◆ state_tracker_type

Enumerator
RARCH_STATE_CAPTURE 
RARCH_STATE_CAPTURE_PREV 
RARCH_STATE_TRANSITION 
RARCH_STATE_TRANSITION_COUNT 
RARCH_STATE_TRANSITION_PREV 
RARCH_STATE_PYTHON 

Function Documentation

◆ 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 update_input(), and updates each uniform element accordingly.

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

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_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 call graph for this function: