RetroArch
video_state_tracker.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  *
5  * RetroArch is free software: you can redistribute it and/or modify it under the terms
6  * of the GNU General Public License as published by the Free Software Found-
7  * ation, either version 3 of the License, or (at your option) any later version.
8  *
9  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  * PURPOSE. See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along with RetroArch.
14  * If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef __VIDEO_STATE_TRACKER_H
18 #define __VIDEO_STATE_TRACKER_H
19 
20 #include <stdint.h>
21 
22 #include <boolean.h>
23 #include <retro_common_api.h>
24 
26 
28 {
35 };
36 
38 {
43 };
44 
46 {
49  char id[64];
53 };
54 
56 {
57  const char *script;
58  const char *script_class;
60  const uint8_t *wram;
61  unsigned info_elem;
63 };
64 
66 {
67  const char *id;
68  float value;
69 };
70 
72 
82 
89 void state_tracker_free(state_tracker_t *tracker);
90 
105  struct state_tracker_uniform *uniforms,
106  unsigned elem, unsigned frame_count);
107 
108 void state_tracker_update_input(uint16_t *input1, uint16_t *input2);
109 
111 
112 #endif
Definition: video_state_tracker.h:41
enum state_ram_type ram_type
Definition: video_state_tracker.h:48
unsigned info_elem
Definition: video_state_tracker.h:61
Definition: video_state_tracker.h:40
Definition: video_state_tracker.h:34
uint16_t equal
Definition: video_state_tracker.h:51
Definition: video_state_tracker.h:32
state_tracker_t * state_tracker_init(const struct state_tracker_info *info)
Definition: video_state_tracker.c:81
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
state_tracker_type
Definition: video_state_tracker.h:27
Definition: video_state_tracker.h:42
const char * id
Definition: video_state_tracker.h:67
float value
Definition: video_state_tracker.h:68
Definition: libretro.h:2275
const uint8_t * wram
Definition: video_state_tracker.h:60
Definition: video_state_tracker.h:33
Definition: video_state_tracker.h:31
const char * script
Definition: video_state_tracker.h:57
Definition: video_state_tracker.h:29
void state_tracker_free(state_tracker_t *tracker)
Definition: video_state_tracker.c:175
unsigned state_tracker_get_uniform(state_tracker_t *tracker, struct state_tracker_uniform *uniforms, unsigned elem, unsigned frame_count)
Definition: video_state_tracker.c:280
const char * script_class
Definition: video_state_tracker.h:58
Definition: video_state_tracker.h:65
bool script_is_file
Definition: video_state_tracker.h:59
Definition: video_state_tracker.c:61
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
void state_tracker_update_input(uint16_t *input1, uint16_t *input2)
Definition: input_driver.c:789
enum state_tracker_type type
Definition: video_state_tracker.h:47
Definition: video_state_tracker.h:55
Definition: video_state_tracker.h:45
state_ram_type
Definition: video_state_tracker.h:37
uint16_t mask
Definition: video_state_tracker.h:50
const struct state_tracker_uniform_info * info
Definition: video_state_tracker.h:62
unsigned short uint16_t
Definition: stdint.h:125
unsigned char uint8_t
Definition: stdint.h:124
unsigned int uint32_t
Definition: stdint.h:126
Definition: video_state_tracker.h:39
Definition: video_state_tracker.h:30
uint32_t addr
Definition: video_state_tracker.h:52