RetroArch
|
#include <stdlib.h>
#include <compat/strl.h>
#include <retro_inline.h>
#include "video_state_tracker.h"
#include "../input/input_driver.h"
#include "../verbosity.h"
Classes | |
struct | state_tracker_internal |
struct | state_tracker |
Functions | |
state_tracker_t * | state_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) |
|
static |
void state_tracker_free | ( | state_tracker_t * | tracker | ) |
state_tracker_free: : State tracker handle.
Frees a state tracker handle.
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).
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.
|
static |