-
Notifications
You must be signed in to change notification settings - Fork 0
/
core_8h.html
1061 lines (1014 loc) · 86.3 KB
/
core_8h.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hydra core API: include/hydra/core.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">hydra core API<span id="projectnumber"> 1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_ebddc7057cc9d7d063cd5a0709e1bd9f.html">hydra</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">core.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>The hydra core API.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <stddef.h></code><br />
<code>#include <stdint.h></code><br />
<code>#include <stdbool.h></code><br />
</div>
<p><a href="core_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcVideoInfo.html">HcVideoInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcAudioInfo.html">HcAudioInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcImageData.html">HcImageData</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcAudioData.html">HcAudioData</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcContentInfo.html">HcContentInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcCoreInfo.html">HcCoreInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcEnvironmentInfo.html">HcEnvironmentInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcDestroyInfo.html">HcDestroyInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcResetInfo.html">HcResetInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcHostInfo.html">HcHostInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcInputRequest.html">HcInputRequest</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcRunStateInfo.html">HcRunStateInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcContentLoadInfo.html">HcContentLoadInfo</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structHcCallbacks.html">HcCallbacks</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:acdd8a3bf6b35ebe9fad0ee609203b83b" id="r_acdd8a3bf6b35ebe9fad0ee609203b83b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="#acdd8a3bf6b35ebe9fad0ee609203b83b">HYDRA_CORE_MAJOR</a>   0</td></tr>
<tr class="separator:acdd8a3bf6b35ebe9fad0ee609203b83b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7960e7bc647641c1afa36d6afcb6280a" id="r_a7960e7bc647641c1afa36d6afcb6280a"><td class="memItemLeft" align="right" valign="top"><a id="a7960e7bc647641c1afa36d6afcb6280a" name="a7960e7bc647641c1afa36d6afcb6280a"></a>
#define </td><td class="memItemRight" valign="bottom"><b>HYDRA_CORE_MINOR</b>   1</td></tr>
<tr class="separator:a7960e7bc647641c1afa36d6afcb6280a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3c0d7e701d9f17579102d16334d4fc31" id="r_a3c0d7e701d9f17579102d16334d4fc31"><td class="memItemLeft" align="right" valign="top"><a id="a3c0d7e701d9f17579102d16334d4fc31" name="a3c0d7e701d9f17579102d16334d4fc31"></a>
#define </td><td class="memItemRight" valign="bottom"><b>HYDRA_CORE_PATCH</b>   0</td></tr>
<tr class="separator:a3c0d7e701d9f17579102d16334d4fc31"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a57b4e4584e8fb693d9ef25aef63ecfd0" id="r_a57b4e4584e8fb693d9ef25aef63ecfd0"><td class="memItemLeft" align="right" valign="top"><a id="a57b4e4584e8fb693d9ef25aef63ecfd0" name="a57b4e4584e8fb693d9ef25aef63ecfd0"></a>
#define </td><td class="memItemRight" valign="bottom"><b>HYDRA_API_IMPORT</b></td></tr>
<tr class="separator:a57b4e4584e8fb693d9ef25aef63ecfd0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac6ca4fed2ccad9b21a9c8528d1f827da" id="r_ac6ca4fed2ccad9b21a9c8528d1f827da"><td class="memItemLeft" align="right" valign="top"><a id="ac6ca4fed2ccad9b21a9c8528d1f827da" name="ac6ca4fed2ccad9b21a9c8528d1f827da"></a>
#define </td><td class="memItemRight" valign="bottom"><b>HYDRA_API_EXPORT</b>   __attribute__((visibility("default")))</td></tr>
<tr class="separator:ac6ca4fed2ccad9b21a9c8528d1f827da"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad9baf731702b2182f08dc93e40fc128a" id="r_ad9baf731702b2182f08dc93e40fc128a"><td class="memItemLeft" align="right" valign="top"><a id="ad9baf731702b2182f08dc93e40fc128a" name="ad9baf731702b2182f08dc93e40fc128a"></a>
#define </td><td class="memItemRight" valign="bottom"><b>HYDRA_API_CALL</b></td></tr>
<tr class="separator:ad9baf731702b2182f08dc93e40fc128a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a18b85d9b6292599229765c8c647229ff" id="r_a18b85d9b6292599229765c8c647229ff"><td class="memItemLeft" align="right" valign="top"><a id="a18b85d9b6292599229765c8c647229ff" name="a18b85d9b6292599229765c8c647229ff"></a>
#define </td><td class="memItemRight" valign="bottom"><b>HYDRA_API_ATTR</b></td></tr>
<tr class="separator:a18b85d9b6292599229765c8c647229ff"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:aac493aff7704ab82ffce67dea584e6f2" id="r_aac493aff7704ab82ffce67dea584e6f2"><td class="memItemLeft" align="right" valign="top"><a id="aac493aff7704ab82ffce67dea584e6f2" name="aac493aff7704ab82ffce67dea584e6f2"></a>
typedef enum <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> </td><td class="memItemRight" valign="bottom"><b>HcResult</b></td></tr>
<tr class="separator:aac493aff7704ab82ffce67dea584e6f2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef9c5565467c6cb887a5b8cee08428aa" id="r_aef9c5565467c6cb887a5b8cee08428aa"><td class="memItemLeft" align="right" valign="top"><a id="aef9c5565467c6cb887a5b8cee08428aa" name="aef9c5565467c6cb887a5b8cee08428aa"></a>
typedef enum HcPixelFormat </td><td class="memItemRight" valign="bottom"><b>HcPixelFormat</b></td></tr>
<tr class="separator:aef9c5565467c6cb887a5b8cee08428aa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a42f383fe4baa7ce6821cfc3265213a77" id="r_a42f383fe4baa7ce6821cfc3265213a77"><td class="memItemLeft" align="right" valign="top"><a id="a42f383fe4baa7ce6821cfc3265213a77" name="a42f383fe4baa7ce6821cfc3265213a77"></a>
typedef enum HcArchitecture </td><td class="memItemRight" valign="bottom"><b>HcArchitecture</b></td></tr>
<tr class="separator:a42f383fe4baa7ce6821cfc3265213a77"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac3a498de04e47ed1bfa591700ac34d14" id="r_ac3a498de04e47ed1bfa591700ac34d14"><td class="memItemLeft" align="right" valign="top"><a id="ac3a498de04e47ed1bfa591700ac34d14" name="ac3a498de04e47ed1bfa591700ac34d14"></a>
typedef enum HcOperatingSystem </td><td class="memItemRight" valign="bottom"><b>HcOperatingSystem</b></td></tr>
<tr class="separator:ac3a498de04e47ed1bfa591700ac34d14"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abbf8fca257839fd9d1d6b388e6b89b67" id="r_abbf8fca257839fd9d1d6b388e6b89b67"><td class="memItemLeft" align="right" valign="top"><a id="abbf8fca257839fd9d1d6b388e6b89b67" name="abbf8fca257839fd9d1d6b388e6b89b67"></a>
typedef enum <a class="el" href="#a037648f237857cb51b76e3fa9a1ad283">HcDriveMode</a> </td><td class="memItemRight" valign="bottom"><b>HcDriveMode</b></td></tr>
<tr class="separator:abbf8fca257839fd9d1d6b388e6b89b67"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b94c2ab62d1c28920c05f76c3367b3b" id="r_a0b94c2ab62d1c28920c05f76c3367b3b"><td class="memItemLeft" align="right" valign="top"><a id="a0b94c2ab62d1c28920c05f76c3367b3b" name="a0b94c2ab62d1c28920c05f76c3367b3b"></a>
typedef enum HcStructureType </td><td class="memItemRight" valign="bottom"><b>HcStructureType</b></td></tr>
<tr class="separator:a0b94c2ab62d1c28920c05f76c3367b3b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a59a495c40e7ac5f45f75ab184c3ffb4f" id="r_a59a495c40e7ac5f45f75ab184c3ffb4f"><td class="memItemLeft" align="right" valign="top"><a id="a59a495c40e7ac5f45f75ab184c3ffb4f" name="a59a495c40e7ac5f45f75ab184c3ffb4f"></a>
typedef enum HcOpenGlVersion </td><td class="memItemRight" valign="bottom"><b>HcOpenGlVersion</b></td></tr>
<tr class="separator:a59a495c40e7ac5f45f75ab184c3ffb4f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae4a68ee9f2839af65be824c5aba3ae75" id="r_ae4a68ee9f2839af65be824c5aba3ae75"><td class="memItemLeft" align="right" valign="top"><a id="ae4a68ee9f2839af65be824c5aba3ae75" name="ae4a68ee9f2839af65be824c5aba3ae75"></a>
typedef enum HcOpenGlEsVersion </td><td class="memItemRight" valign="bottom"><b>HcOpenGlEsVersion</b></td></tr>
<tr class="separator:ae4a68ee9f2839af65be824c5aba3ae75"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acfeb6b0016c93f80d18860f19152282f" id="r_acfeb6b0016c93f80d18860f19152282f"><td class="memItemLeft" align="right" valign="top"><a id="acfeb6b0016c93f80d18860f19152282f" name="acfeb6b0016c93f80d18860f19152282f"></a>
typedef enum HcWebGlVersion </td><td class="memItemRight" valign="bottom"><b>HcWebGlVersion</b></td></tr>
<tr class="separator:acfeb6b0016c93f80d18860f19152282f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a34e933cd5d9a6a7ee38b07dfa952f489" id="r_a34e933cd5d9a6a7ee38b07dfa952f489"><td class="memItemLeft" align="right" valign="top"><a id="a34e933cd5d9a6a7ee38b07dfa952f489" name="a34e933cd5d9a6a7ee38b07dfa952f489"></a>
typedef enum HcVulkanVersion </td><td class="memItemRight" valign="bottom"><b>HcVulkanVersion</b></td></tr>
<tr class="separator:a34e933cd5d9a6a7ee38b07dfa952f489"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab28949d8055eae2c0ef9f420ec6fd148" id="r_ab28949d8055eae2c0ef9f420ec6fd148"><td class="memItemLeft" align="right" valign="top"><a id="ab28949d8055eae2c0ef9f420ec6fd148" name="ab28949d8055eae2c0ef9f420ec6fd148"></a>
typedef enum HcMetalVersion </td><td class="memItemRight" valign="bottom"><b>HcMetalVersion</b></td></tr>
<tr class="separator:ab28949d8055eae2c0ef9f420ec6fd148"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6d68dab2888108403abc06cbd4e6789a" id="r_a6d68dab2888108403abc06cbd4e6789a"><td class="memItemLeft" align="right" valign="top"><a id="a6d68dab2888108403abc06cbd4e6789a" name="a6d68dab2888108403abc06cbd4e6789a"></a>
typedef enum HcDirect3DVersion </td><td class="memItemRight" valign="bottom"><b>HcDirect3DVersion</b></td></tr>
<tr class="separator:a6d68dab2888108403abc06cbd4e6789a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaadbab6263f698e0fb38a319e33a8fdc" id="r_aaadbab6263f698e0fb38a319e33a8fdc"><td class="memItemLeft" align="right" valign="top"><a id="aaadbab6263f698e0fb38a319e33a8fdc" name="aaadbab6263f698e0fb38a319e33a8fdc"></a>
typedef enum HcRendererType </td><td class="memItemRight" valign="bottom"><b>HcRendererType</b></td></tr>
<tr class="separator:aaadbab6263f698e0fb38a319e33a8fdc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3c84c5844d25dd1829969b430733ae8b" id="r_a3c84c5844d25dd1829969b430733ae8b"><td class="memItemLeft" align="right" valign="top"><a id="a3c84c5844d25dd1829969b430733ae8b" name="a3c84c5844d25dd1829969b430733ae8b"></a>
typedef enum HcAudioFormat </td><td class="memItemRight" valign="bottom"><b>HcAudioFormat</b></td></tr>
<tr class="separator:a3c84c5844d25dd1829969b430733ae8b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b93ced81b6804fcf24fd3d3cd5d4ad5" id="r_a0b93ced81b6804fcf24fd3d3cd5d4ad5"><td class="memItemLeft" align="right" valign="top"><a id="a0b93ced81b6804fcf24fd3d3cd5d4ad5" name="a0b93ced81b6804fcf24fd3d3cd5d4ad5"></a>
typedef enum HcAudioChannels </td><td class="memItemRight" valign="bottom"><b>HcAudioChannels</b></td></tr>
<tr class="separator:a0b93ced81b6804fcf24fd3d3cd5d4ad5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a42105999d1b4d3f703ee464c26775812" id="r_a42105999d1b4d3f703ee464c26775812"><td class="memItemLeft" align="right" valign="top"><a id="a42105999d1b4d3f703ee464c26775812" name="a42105999d1b4d3f703ee464c26775812"></a>
typedef enum <a class="el" href="#a5d3cc654aa7d949329150eb6adb80e7a">HcResetType</a> </td><td class="memItemRight" valign="bottom"><b>HcResetType</b></td></tr>
<tr class="separator:a42105999d1b4d3f703ee464c26775812"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a43ec20f918ec2e8862ad00baa3c8bdd8" id="r_a43ec20f918ec2e8862ad00baa3c8bdd8"><td class="memItemLeft" align="right" valign="top"><a id="a43ec20f918ec2e8862ad00baa3c8bdd8" name="a43ec20f918ec2e8862ad00baa3c8bdd8"></a>
typedef enum HcInputType </td><td class="memItemRight" valign="bottom"><b>HcInputType</b></td></tr>
<tr class="separator:a43ec20f918ec2e8862ad00baa3c8bdd8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aefda9c0fe58bbe1b7000ef1db1e8a6bd" id="r_aefda9c0fe58bbe1b7000ef1db1e8a6bd"><td class="memItemLeft" align="right" valign="top"><a id="aefda9c0fe58bbe1b7000ef1db1e8a6bd" name="aefda9c0fe58bbe1b7000ef1db1e8a6bd"></a>
typedef enum <a class="el" href="#a44bf83ff1a6d60fc89b3dacf92783ae7">HcRunState</a> </td><td class="memItemRight" valign="bottom"><b>HcRunState</b></td></tr>
<tr class="separator:aefda9c0fe58bbe1b7000ef1db1e8a6bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a87a50b0f2ad8644801592332cd5e5ab9" id="r_a87a50b0f2ad8644801592332cd5e5ab9"><td class="memItemLeft" align="right" valign="top"><a id="a87a50b0f2ad8644801592332cd5e5ab9" name="a87a50b0f2ad8644801592332cd5e5ab9"></a>
typedef struct HcVideoInfo </td><td class="memItemRight" valign="bottom"><b>HcVideoInfo</b></td></tr>
<tr class="separator:a87a50b0f2ad8644801592332cd5e5ab9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a11fe568bd7216de055f5300740f37a6b" id="r_a11fe568bd7216de055f5300740f37a6b"><td class="memItemLeft" align="right" valign="top"><a id="a11fe568bd7216de055f5300740f37a6b" name="a11fe568bd7216de055f5300740f37a6b"></a>
typedef struct HcAudioInfo </td><td class="memItemRight" valign="bottom"><b>HcAudioInfo</b></td></tr>
<tr class="separator:a11fe568bd7216de055f5300740f37a6b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aafea627c185979cf98eb82635d63ae96" id="r_aafea627c185979cf98eb82635d63ae96"><td class="memItemLeft" align="right" valign="top"><a id="aafea627c185979cf98eb82635d63ae96" name="aafea627c185979cf98eb82635d63ae96"></a>
typedef struct HcImageData </td><td class="memItemRight" valign="bottom"><b>HcImageData</b></td></tr>
<tr class="separator:aafea627c185979cf98eb82635d63ae96"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae7c8610162911c24107bdf6e3e9342cd" id="r_ae7c8610162911c24107bdf6e3e9342cd"><td class="memItemLeft" align="right" valign="top"><a id="ae7c8610162911c24107bdf6e3e9342cd" name="ae7c8610162911c24107bdf6e3e9342cd"></a>
typedef struct HcAudioData </td><td class="memItemRight" valign="bottom"><b>HcAudioData</b></td></tr>
<tr class="separator:ae7c8610162911c24107bdf6e3e9342cd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a49f7f6b8ebe04c769c275c71a4f74ca4" id="r_a49f7f6b8ebe04c769c275c71a4f74ca4"><td class="memItemLeft" align="right" valign="top"><a id="a49f7f6b8ebe04c769c275c71a4f74ca4" name="a49f7f6b8ebe04c769c275c71a4f74ca4"></a>
typedef struct HcContentInfo </td><td class="memItemRight" valign="bottom"><b>HcContentInfo</b></td></tr>
<tr class="separator:a49f7f6b8ebe04c769c275c71a4f74ca4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a27d0ea947ff775192ebedd086d0f68f3" id="r_a27d0ea947ff775192ebedd086d0f68f3"><td class="memItemLeft" align="right" valign="top"><a id="a27d0ea947ff775192ebedd086d0f68f3" name="a27d0ea947ff775192ebedd086d0f68f3"></a>
typedef struct HcCoreInfo </td><td class="memItemRight" valign="bottom"><b>HcCoreInfo</b></td></tr>
<tr class="separator:a27d0ea947ff775192ebedd086d0f68f3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a72c1bdfa34f9730b2cc3a56a668ea087" id="r_a72c1bdfa34f9730b2cc3a56a668ea087"><td class="memItemLeft" align="right" valign="top"><a id="a72c1bdfa34f9730b2cc3a56a668ea087" name="a72c1bdfa34f9730b2cc3a56a668ea087"></a>
typedef struct HcEnvironmentInfo </td><td class="memItemRight" valign="bottom"><b>HcEnvironmentInfo</b></td></tr>
<tr class="separator:a72c1bdfa34f9730b2cc3a56a668ea087"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5a094ddd5a108e9873410117a6176a42" id="r_a5a094ddd5a108e9873410117a6176a42"><td class="memItemLeft" align="right" valign="top"><a id="a5a094ddd5a108e9873410117a6176a42" name="a5a094ddd5a108e9873410117a6176a42"></a>
typedef struct HcDestroyInfo </td><td class="memItemRight" valign="bottom"><b>HcDestroyInfo</b></td></tr>
<tr class="separator:a5a094ddd5a108e9873410117a6176a42"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad784cb80d309104fba52ee8b5f15594c" id="r_ad784cb80d309104fba52ee8b5f15594c"><td class="memItemLeft" align="right" valign="top"><a id="ad784cb80d309104fba52ee8b5f15594c" name="ad784cb80d309104fba52ee8b5f15594c"></a>
typedef struct HcResetInfo </td><td class="memItemRight" valign="bottom"><b>HcResetInfo</b></td></tr>
<tr class="separator:ad784cb80d309104fba52ee8b5f15594c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aac073054f9d846f69858202f8370850b" id="r_aac073054f9d846f69858202f8370850b"><td class="memItemLeft" align="right" valign="top"><a id="aac073054f9d846f69858202f8370850b" name="aac073054f9d846f69858202f8370850b"></a>
typedef struct HcHostInfo </td><td class="memItemRight" valign="bottom"><b>HcHostInfo</b></td></tr>
<tr class="separator:aac073054f9d846f69858202f8370850b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af817889cf4d51a0121cdda198118f088" id="r_af817889cf4d51a0121cdda198118f088"><td class="memItemLeft" align="right" valign="top"><a id="af817889cf4d51a0121cdda198118f088" name="af817889cf4d51a0121cdda198118f088"></a>
typedef struct HcInputRequest </td><td class="memItemRight" valign="bottom"><b>HcInputRequest</b></td></tr>
<tr class="separator:af817889cf4d51a0121cdda198118f088"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a701a11d9a31eee83754589313fb8e567" id="r_a701a11d9a31eee83754589313fb8e567"><td class="memItemLeft" align="right" valign="top"><a id="a701a11d9a31eee83754589313fb8e567" name="a701a11d9a31eee83754589313fb8e567"></a>
typedef struct HcRunStateInfo </td><td class="memItemRight" valign="bottom"><b>HcRunStateInfo</b></td></tr>
<tr class="separator:a701a11d9a31eee83754589313fb8e567"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2cefed1566d39b416146d79c65d29349" id="r_a2cefed1566d39b416146d79c65d29349"><td class="memItemLeft" align="right" valign="top"><a id="a2cefed1566d39b416146d79c65d29349" name="a2cefed1566d39b416146d79c65d29349"></a>
typedef struct HcContentLoadInfo </td><td class="memItemRight" valign="bottom"><b>HcContentLoadInfo</b></td></tr>
<tr class="separator:a2cefed1566d39b416146d79c65d29349"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab75b651123a0744550de1973241fde51" id="r_ab75b651123a0744550de1973241fde51"><td class="memItemLeft" align="right" valign="top"><a id="ab75b651123a0744550de1973241fde51" name="ab75b651123a0744550de1973241fde51"></a>
typedef struct HcCallbacks </td><td class="memItemRight" valign="bottom"><b>HcCallbacks</b></td></tr>
<tr class="separator:ab75b651123a0744550de1973241fde51"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a759b24873650f1d6c675159eec42ec4b" id="r_a759b24873650f1d6c675159eec42ec4b"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> { <br />
  <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e">HC_SUCCESS</a> = 0
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba7f0a4662ed2b18e130eafc7461c3f856">HC_ERROR_CORE</a> = -1
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4baa04504a25889d25665d3e5600d1fa0fa">HC_ERROR_NOT_ALL_CALLBACKS_SET</a> = -2
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba1d21b3c240cd0104f1198ea735224a6d">HC_ERROR_BAD_RENDERER_VERSION</a> = -3
, <br />
  <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba27d103d2d0005ef2d1d98425d84e2c7b">HC_ERROR_BAD_CONTENT</a> = -4
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba0fe69537f9f9448165fbf9298068473d">HC_ERROR_BAD_INPUT_REQUEST</a> = -5
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4baf0ceb908b5a28c94e616aa8596250c2d">HC_ERROR_BAD_ENVIRONMENT_INFO</a> = -6
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba89bcdaad197a5901b075aa7812ce4492">HC_ERROR_BAD_AUDIO_DATA_WANT</a> = -7
, <br />
  <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba898342ce6ebef2c4435eb2e0ea5640e7">HC_ERROR_BAD_AUDIO_DATA_HAVE</a> = -8
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba1f5770c6f3237ed515281c80873c9c95">HC_ERROR_AUDIO_OVERRUN</a> = -9
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4baade810a513339d47748ffa1662be1455">HC_ERROR_FULLY_SELF_DRIVEN</a> = -10
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba2a9324e3458b64e532beffd05d3dc7cf">HC_ERROR_NOT_SOFTWARE_RENDERED</a> = -11
, <br />
  <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba7ef6c09e9a2917e4b95a918642577836">HC_ERROR_NOT_OPENGL_RENDERED</a> = -12
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba5bd94d4156829645acbd3b2e857684b9">HC_ERROR_NOT_VULKAN_RENDERED</a> = -13
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba21f7a4ae21c1e7a4acbec4edb2b8b46f">HC_ERROR_NOT_METAL_RENDERED</a> = -14
, <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba78adaeb5c862778d41496a93fb921465">HC_ERROR_NOT_DIRECT3D_RENDERED</a> = -15
<br />
}</td></tr>
<tr class="separator:a759b24873650f1d6c675159eec42ec4b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa470ded936cb8f68ea5953d2c766ad1d" id="r_aa470ded936cb8f68ea5953d2c766ad1d"><td class="memItemLeft" align="right" valign="top"><a id="aa470ded936cb8f68ea5953d2c766ad1d" name="aa470ded936cb8f68ea5953d2c766ad1d"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcPixelFormat</b> { <br />
  <b>HC_PIXEL_FORMAT_NULL</b> = 0
, <b>HC_PIXEL_FORMAT_RGBA32</b> = 1
, <b>HC_PIXEL_FORMAT_BGRA32</b> = 2
, <b>HC_PIXEL_FORMAT_ARGB32</b> = 3
, <br />
  <b>HC_PIXEL_FORMAT_ABGR32</b> = 4
, <b>HC_PIXEL_FORMAT_RGB24</b> = 5
, <b>HC_PIXEL_FORMAT_BGR24</b> = 6
, <b>HC_PIXEL_FORMAT_RGB565</b> = 7
, <br />
  <b>HC_PIXEL_FORMAT_BGR565</b> = 8
, <b>HC_PIXEL_FORMAT_RGBA5551</b> = 9
, <b>HC_PIXEL_FORMAT_BGRA5551</b> = 10
, <b>HC_PIXEL_FORMAT_ARGB1555</b> = 11
, <br />
  <b>HC_PIXEL_FORMAT_ABGR1555</b> = 12
<br />
}</td></tr>
<tr class="separator:aa470ded936cb8f68ea5953d2c766ad1d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae599e086658e0a05926f33b56f474aee" id="r_ae599e086658e0a05926f33b56f474aee"><td class="memItemLeft" align="right" valign="top"><a id="ae599e086658e0a05926f33b56f474aee" name="ae599e086658e0a05926f33b56f474aee"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcArchitecture</b> { <br />
  <b>HC_ARCHITECTURE_X86</b>
, <b>HC_ARCHITECTURE_X86_64</b>
, <b>HC_ARCHITECTURE_AARCH32</b>
, <b>HC_ARCHITECTURE_AARCH64</b>
, <br />
  <b>HC_ARCHITECTURE_WASM</b>
, <b>HC_ARCHITECTURE_OTHER</b> = 1000
<br />
}</td></tr>
<tr class="separator:ae599e086658e0a05926f33b56f474aee"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a440031aa545ec30922a6b1c7ccca1745" id="r_a440031aa545ec30922a6b1c7ccca1745"><td class="memItemLeft" align="right" valign="top"><a id="a440031aa545ec30922a6b1c7ccca1745" name="a440031aa545ec30922a6b1c7ccca1745"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcOperatingSystem</b> { <br />
  <b>HC_OPERATING_SYSTEM_LINUX</b> = 1
, <b>HC_OPERATING_SYSTEM_WINDOWS</b> = 2
, <b>HC_OPERATING_SYSTEM_MACOS</b> = 3
, <b>HC_OPERATING_SYSTEM_FREEBSD</b> = 4
, <br />
  <b>HC_OPERATING_SYSTEM_ANDROID</b> = 5
, <b>HC_OPERATING_SYSTEM_IOS</b> = 6
, <b>HC_OPERATING_SYSTEM_WEB</b> = 7
, <b>HC_OPERATING_SYSTEM_OTHER</b> = 1000
<br />
}</td></tr>
<tr class="separator:a440031aa545ec30922a6b1c7ccca1745"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a037648f237857cb51b76e3fa9a1ad283" id="r_a037648f237857cb51b76e3fa9a1ad283"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="#a037648f237857cb51b76e3fa9a1ad283">HcDriveMode</a> { <a class="el" href="#a037648f237857cb51b76e3fa9a1ad283a653878411d1927ac1012adbc6bbcd8b3">HC_DRIVE_MODE_SELF_DRIVEN</a> = 1
, <a class="el" href="#a037648f237857cb51b76e3fa9a1ad283af1ef9c9d567c2c5a494a18d72a12682d">HC_DRIVE_MODE_SELF_DRIVEN_EXCEPT_AUDIO</a> = 2
, <a class="el" href="#a037648f237857cb51b76e3fa9a1ad283afd7f984c339baf9940da15f2dc9164e5">HC_DRIVE_MODE_FRONTEND_DRIVEN</a> = 3
}</td></tr>
<tr class="separator:a037648f237857cb51b76e3fa9a1ad283"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ada0acdd39898eccaa1b3b24831382ada" id="r_ada0acdd39898eccaa1b3b24831382ada"><td class="memItemLeft" align="right" valign="top"><a id="ada0acdd39898eccaa1b3b24831382ada" name="ada0acdd39898eccaa1b3b24831382ada"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcStructureType</b> { <br />
  <b>HC_STRUCTURE_TYPE_CORE_INFO</b> = 1
, <b>HC_STRUCTURE_TYPE_HOST_INFO</b>
, <b>HC_STRUCTURE_TYPE_VIDEO_INFO</b>
, <b>HC_STRUCTURE_TYPE_AUDIO_INFO</b>
, <br />
  <b>HC_STRUCTURE_TYPE_IMAGE_DATA</b>
, <b>HC_STRUCTURE_TYPE_AUDIO_DATA</b>
, <b>HC_STRUCTURE_TYPE_CORE_DESTROY_INFO</b>
, <b>HC_STRUCTURE_TYPE_CORE_RESET_INFO</b>
, <br />
  <b>HC_STRUCTURE_TYPE_GET_INPUT_REQUEST</b>
, <b>HC_STRUCTURE_TYPE_LOCK_REQUEST</b>
, <b>HC_STRUCTURE_TYPE_CORE_RUN_STATE_INFO</b>
, <b>HC_STRUCTURE_TYPE_CONTENT_INFO</b>
, <br />
  <b>HC_STRUCTURE_TYPE_CALLBACKS</b>
, <b>HC_STRUCTURE_TYPE_CONTENT_LOAD_INFO</b>
, <b>HC_STRUCTURE_TYPE_ENVIRONMENT_INFO</b>
<br />
}</td></tr>
<tr class="separator:ada0acdd39898eccaa1b3b24831382ada"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a50978c7824fdd686506dd364e01089aa" id="r_a50978c7824fdd686506dd364e01089aa"><td class="memItemLeft" align="right" valign="top"><a id="a50978c7824fdd686506dd364e01089aa" name="a50978c7824fdd686506dd364e01089aa"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcOpenGlVersion</b> { <br />
  <b>HC_OPENGL_NOT_SUPPORTED</b> = 0
, <b>HC_OPENGL_VERSION_1_0</b> = 1
, <b>HC_OPENGL_VERSION_1_1</b> = 2
, <b>HC_OPENGL_VERSION_1_2</b> = 3
, <br />
  <b>HC_OPENGL_VERSION_1_3</b> = 4
, <b>HC_OPENGL_VERSION_1_4</b> = 5
, <b>HC_OPENGL_VERSION_1_5</b> = 6
, <b>HC_OPENGL_VERSION_2_0</b> = 7
, <br />
  <b>HC_OPENGL_VERSION_2_1</b> = 8
, <b>HC_OPENGL_VERSION_3_0</b> = 9
, <b>HC_OPENGL_VERSION_3_1</b> = 10
, <b>HC_OPENGL_VERSION_3_2</b> = 11
, <br />
  <b>HC_OPENGL_VERSION_3_3</b> = 12
, <b>HC_OPENGL_VERSION_4_0</b> = 13
, <b>HC_OPENGL_VERSION_4_1</b> = 14
, <b>HC_OPENGL_VERSION_4_2</b> = 15
, <br />
  <b>HC_OPENGL_VERSION_4_3</b> = 16
, <b>HC_OPENGL_VERSION_4_4</b> = 17
, <b>HC_OPENGL_VERSION_4_5</b> = 18
, <b>HC_OPENGL_VERSION_4_6</b> = 19
<br />
}</td></tr>
<tr class="separator:a50978c7824fdd686506dd364e01089aa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ada519009dfc7c4b861a63c0f8e011c86" id="r_ada519009dfc7c4b861a63c0f8e011c86"><td class="memItemLeft" align="right" valign="top"><a id="ada519009dfc7c4b861a63c0f8e011c86" name="ada519009dfc7c4b861a63c0f8e011c86"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcOpenGlEsVersion</b> { <br />
  <b>HC_OPENGL_ES_NOT_SUPPORTED</b> = 0
, <b>HC_OPENGL_ES_VERSION_1_0</b> = 1
, <b>HC_OPENGL_ES_VERSION_1_1</b> = 2
, <b>HC_OPENGL_ES_VERSION_2_0</b> = 3
, <br />
  <b>HC_OPENGL_ES_VERSION_3_0</b> = 4
, <b>HC_OPENGL_ES_VERSION_3_1</b> = 5
, <b>HC_OPENGL_ES_VERSION_3_2</b> = 6
<br />
}</td></tr>
<tr class="separator:ada519009dfc7c4b861a63c0f8e011c86"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab239321a2e9209b87ded89a9789b3be4" id="r_ab239321a2e9209b87ded89a9789b3be4"><td class="memItemLeft" align="right" valign="top"><a id="ab239321a2e9209b87ded89a9789b3be4" name="ab239321a2e9209b87ded89a9789b3be4"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcWebGlVersion</b> { <b>HC_WEBGL_NOT_SUPPORTED</b> = 0
, <b>HC_WEBGL_VERSION_1_0</b> = 1
, <b>HC_WEBGL_VERSION_2_0</b> = 2
}</td></tr>
<tr class="separator:ab239321a2e9209b87ded89a9789b3be4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac21da6daeafb03d107c1bcd081023d35" id="r_ac21da6daeafb03d107c1bcd081023d35"><td class="memItemLeft" align="right" valign="top"><a id="ac21da6daeafb03d107c1bcd081023d35" name="ac21da6daeafb03d107c1bcd081023d35"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcVulkanVersion</b> { <br />
  <b>HC_VULKAN_NOT_SUPPORTED</b> = 0
, <b>HC_VULKAN_VERSION_1_0</b> = 1
, <b>HC_VULKAN_VERSION_1_1</b> = 2
, <b>HC_VULKAN_VERSION_1_2</b> = 3
, <br />
  <b>HC_VULKAN_VERSION_1_3</b> = 4
<br />
}</td></tr>
<tr class="separator:ac21da6daeafb03d107c1bcd081023d35"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa69191cee693a151761380529436ad52" id="r_aa69191cee693a151761380529436ad52"><td class="memItemLeft" align="right" valign="top"><a id="aa69191cee693a151761380529436ad52" name="aa69191cee693a151761380529436ad52"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcMetalVersion</b> { <b>HC_METAL_NOT_SUPPORTED</b> = 0
, <b>HC_METAL_VERSION_1_0</b> = 1
, <b>HC_METAL_VERSION_2_0</b> = 1
, <b>HC_METAL_VERSION_3_0</b> = 1
}</td></tr>
<tr class="separator:aa69191cee693a151761380529436ad52"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac8ad7853425e227dc45f1ba2287b4b61" id="r_ac8ad7853425e227dc45f1ba2287b4b61"><td class="memItemLeft" align="right" valign="top"><a id="ac8ad7853425e227dc45f1ba2287b4b61" name="ac8ad7853425e227dc45f1ba2287b4b61"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcDirect3DVersion</b> { <br />
  <b>HC_DIRECT3D_NOT_SUPPORTED</b>
, <b>HC_DIRECT3D_VERSION_7_0</b>
, <b>HC_DIRECT3D_VERSION_8_0</b>
, <b>HC_DIRECT3D_VERSION_9_0</b>
, <br />
  <b>HC_DIRECT3D_VERSION_10_0</b>
, <b>HC_DIRECT3D_VERSION_11_0</b>
, <b>HC_DIRECT3D_VERSION_12_0</b>
<br />
}</td></tr>
<tr class="separator:ac8ad7853425e227dc45f1ba2287b4b61"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8b3ac783106dc66905d88b471ade670f" id="r_a8b3ac783106dc66905d88b471ade670f"><td class="memItemLeft" align="right" valign="top"><a id="a8b3ac783106dc66905d88b471ade670f" name="a8b3ac783106dc66905d88b471ade670f"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcRendererType</b> { <br />
  <b>HC_RENDERER_TYPE_NULL</b> = 0
, <b>HC_RENDERER_TYPE_SOFTWARE</b> = 1
, <b>HC_RENDERER_TYPE_OPENGL</b> = 2
, <b>HC_RENDERER_TYPE_OPENGL_ES</b> = 3
, <br />
  <b>HC_RENDERER_TYPE_WEBGL</b> = 4
, <b>HC_RENDERER_TYPE_VULKAN</b> = 5
, <b>HC_RENDERER_TYPE_METAL</b> = 6
, <b>HC_RENDERER_TYPE_DIRECT3D</b> = 7
<br />
}</td></tr>
<tr class="separator:a8b3ac783106dc66905d88b471ade670f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1753ffb9c00bc1b6a0cdc732f6c51d12" id="r_a1753ffb9c00bc1b6a0cdc732f6c51d12"><td class="memItemLeft" align="right" valign="top"><a id="a1753ffb9c00bc1b6a0cdc732f6c51d12" name="a1753ffb9c00bc1b6a0cdc732f6c51d12"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcAudioFormat</b> { <br />
  <b>HC_AUDIO_FORMAT_NULL</b> = 0
, <b>HC_AUDIO_FORMAT_U8_PCM</b> = 1
, <b>HC_AUDIO_FORMAT_S8_PCM</b> = 2
, <b>HC_AUDIO_FORMAT_S16_PCM</b> = 3
, <br />
  <b>HC_AUDIO_FORMAT_S24_PCM</b> = 4
, <b>HC_AUDIO_FORMAT_S32_PCM</b> = 5
, <b>HC_AUDIO_FORMAT_FLOAT32</b> = 6
, <b>HC_AUDIO_FORMAT_FLOAT64</b> = 7
<br />
}</td></tr>
<tr class="separator:a1753ffb9c00bc1b6a0cdc732f6c51d12"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2b285f7b189568cf9c6a681a02939bf0" id="r_a2b285f7b189568cf9c6a681a02939bf0"><td class="memItemLeft" align="right" valign="top"><a id="a2b285f7b189568cf9c6a681a02939bf0" name="a2b285f7b189568cf9c6a681a02939bf0"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcAudioChannels</b> { <br />
  <b>HC_AUDIO_CHANNELS_NULL</b> = 0
, <b>HC_AUDIO_CHANNELS_MONO</b> = 1
, <b>HC_AUDIO_CHANNELS_STEREO</b> = 2
, <b>HC_AUDIO_CHANNELS_3_1_SURROUND</b> = 4
, <br />
  <b>HC_AUDIO_CHANNELS_5_1_SURROUND</b> = 6
, <b>HC_AUDIO_CHANNELS_7_1_SURROUND</b> = 8
<br />
}</td></tr>
<tr class="separator:a2b285f7b189568cf9c6a681a02939bf0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5d3cc654aa7d949329150eb6adb80e7a" id="r_a5d3cc654aa7d949329150eb6adb80e7a"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="#a5d3cc654aa7d949329150eb6adb80e7a">HcResetType</a> { <a class="el" href="#a5d3cc654aa7d949329150eb6adb80e7aa649713e7e9166379fa25244b10c01bf6">HC_RESET_TYPE_SOFT</a> = 1
, <a class="el" href="#a5d3cc654aa7d949329150eb6adb80e7aafd245828358cd3449c57de128e502075">HC_RESET_TYPE_HARD</a> = 2
}</td></tr>
<tr class="separator:a5d3cc654aa7d949329150eb6adb80e7a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4c7e1645eccb5f87f520db3d67f20c67" id="r_a4c7e1645eccb5f87f520db3d67f20c67"><td class="memItemLeft" align="right" valign="top"><a id="a4c7e1645eccb5f87f520db3d67f20c67" name="a4c7e1645eccb5f87f520db3d67f20c67"></a>enum  </td><td class="memItemRight" valign="bottom"><b>HcInputType</b> { <b>HC_INPUT_TYPE_NULL</b> = 0
}</td></tr>
<tr class="separator:a4c7e1645eccb5f87f520db3d67f20c67"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a44bf83ff1a6d60fc89b3dacf92783ae7" id="r_a44bf83ff1a6d60fc89b3dacf92783ae7"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="#a44bf83ff1a6d60fc89b3dacf92783ae7">HcRunState</a> { <a class="el" href="#a44bf83ff1a6d60fc89b3dacf92783ae7afe5eb6f65a7e631dc59ce7978768c907">HC_RUN_STATE_NULL</a> = 0
, <a class="el" href="#a44bf83ff1a6d60fc89b3dacf92783ae7aa37dedef24d29d22dce997ffb444035f">HC_RUN_STATE_RUNNING</a> = 1
, <a class="el" href="#a44bf83ff1a6d60fc89b3dacf92783ae7a8187e11aa9da46b92acd9936630c3e61">HC_RUN_STATE_PAUSED</a> = 2
, <a class="el" href="#a44bf83ff1a6d60fc89b3dacf92783ae7a16a9f900a49b00c1522a96a927c71378">HC_RUN_STATE_QUIT</a> = 3
}</td></tr>
<tr class="separator:a44bf83ff1a6d60fc89b3dacf92783ae7"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa6a8a11f89c2af6d4322605ca88f3b9d" id="r_aa6a8a11f89c2af6d4322605ca88f3b9d"><td class="memItemLeft" align="right" valign="top">HYDRA_API_IMPORT HYDRA_API_ATTR void HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#aa6a8a11f89c2af6d4322605ca88f3b9d">hcGetHostInfo</a> (<a class="el" href="structHcHostInfo.html">HcHostInfo</a> *hostInfo)</td></tr>
<tr class="memdesc:aa6a8a11f89c2af6d4322605ca88f3b9d"><td class="mdescLeft"> </td><td class="mdescRight">Imported functions, these are defined by the frontend. <br /></td></tr>
<tr class="separator:aa6a8a11f89c2af6d4322605ca88f3b9d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adb5b900e6db816dacbe663abc9bb61d4" id="r_adb5b900e6db816dacbe663abc9bb61d4"><td class="memItemLeft" align="right" valign="top">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#adb5b900e6db816dacbe663abc9bb61d4">hcGetInputsSync</a> (const <a class="el" href="structHcInputRequest.html">HcInputRequest</a> *const *requests, int requestCount, const int64_t *const *values)</td></tr>
<tr class="separator:adb5b900e6db816dacbe663abc9bb61d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afb2101c96446a76af5c16870eefe7db5" id="r_afb2101c96446a76af5c16870eefe7db5"><td class="memItemLeft" align="right" valign="top">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#afb2101c96446a76af5c16870eefe7db5">hcReconfigureEnvironment</a> (const <a class="el" href="structHcEnvironmentInfo.html">HcEnvironmentInfo</a> *environmentInfo)</td></tr>
<tr class="separator:afb2101c96446a76af5c16870eefe7db5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef77ca7085a34175960b4b536367fb67" id="r_aef77ca7085a34175960b4b536367fb67"><td class="memItemLeft" align="right" valign="top">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#aef77ca7085a34175960b4b536367fb67">hcPushSamples</a> (const <a class="el" href="structHcAudioData.html">HcAudioData</a> *audioData)</td></tr>
<tr class="separator:aef77ca7085a34175960b4b536367fb67"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeab643526570859401c7ee4a9f9206f1" id="r_aeab643526570859401c7ee4a9f9206f1"><td class="memItemLeft" align="right" valign="top">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#aeab643526570859401c7ee4a9f9206f1">hcSwPushVideoFrame</a> (const <a class="el" href="structHcImageData.html">HcImageData</a> *image)</td></tr>
<tr class="separator:aeab643526570859401c7ee4a9f9206f1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac45c46924f6ff5ed93ecc00fa83d3412" id="r_ac45c46924f6ff5ed93ecc00fa83d3412"><td class="memItemLeft" align="right" valign="top">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#ac45c46924f6ff5ed93ecc00fa83d3412">hcGlMakeCurrent</a> ()</td></tr>
<tr class="separator:ac45c46924f6ff5ed93ecc00fa83d3412"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a39ed66cbce87a399ec3b9fe80c8887db" id="r_a39ed66cbce87a399ec3b9fe80c8887db"><td class="memItemLeft" align="right" valign="top">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#a39ed66cbce87a399ec3b9fe80c8887db">hcGlSwapBuffers</a> ()</td></tr>
<tr class="separator:a39ed66cbce87a399ec3b9fe80c8887db"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af41de289de5c9626248717e4a1862db1" id="r_af41de289de5c9626248717e4a1862db1"><td class="memItemLeft" align="right" valign="top">HYDRA_API_IMPORT HYDRA_API_ATTR void *HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#af41de289de5c9626248717e4a1862db1">hcGlGetProcAddress</a> (const char *name)</td></tr>
<tr class="separator:af41de289de5c9626248717e4a1862db1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5c6029af71f8b0efe6591d0b923d198c" id="r_a5c6029af71f8b0efe6591d0b923d198c"><td class="memItemLeft" align="right" valign="top">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#a5c6029af71f8b0efe6591d0b923d198c">hcSetCallbacks</a> (const <a class="el" href="structHcCallbacks.html">HcCallbacks</a> *callbacks)</td></tr>
<tr class="separator:a5c6029af71f8b0efe6591d0b923d198c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaf794c45945f417379547be93e04c276" id="r_aaf794c45945f417379547be93e04c276"><td class="memItemLeft" align="right" valign="top">HYDRA_API_EXPORT HYDRA_API_ATTR void HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#aaf794c45945f417379547be93e04c276">hcGetCoreInfo</a> (<a class="el" href="structHcCoreInfo.html">HcCoreInfo</a> *info)</td></tr>
<tr class="memdesc:aaf794c45945f417379547be93e04c276"><td class="mdescLeft"> </td><td class="mdescRight">Exported functions, these need to be defined by the core. <br /></td></tr>
<tr class="separator:aaf794c45945f417379547be93e04c276"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3f7ac562d70748aa6b956fbfdb97ea02" id="r_a3f7ac562d70748aa6b956fbfdb97ea02"><td class="memItemLeft" align="right" valign="top">HYDRA_API_EXPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#a3f7ac562d70748aa6b956fbfdb97ea02">hcCreate</a> (<a class="el" href="structHcEnvironmentInfo.html">HcEnvironmentInfo</a> *environmentInfo)</td></tr>
<tr class="separator:a3f7ac562d70748aa6b956fbfdb97ea02"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a66f199168cb11a5bb339176849cf0af9" id="r_a66f199168cb11a5bb339176849cf0af9"><td class="memItemLeft" align="right" valign="top">HYDRA_API_EXPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#a66f199168cb11a5bb339176849cf0af9">hcDestroy</a> (const <a class="el" href="structHcDestroyInfo.html">HcDestroyInfo</a> *destroyInfo)</td></tr>
<tr class="separator:a66f199168cb11a5bb339176849cf0af9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9642c5fd6e78abdb74103acaadf40306" id="r_a9642c5fd6e78abdb74103acaadf40306"><td class="memItemLeft" align="right" valign="top">HYDRA_API_EXPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#a9642c5fd6e78abdb74103acaadf40306">hcReset</a> (const <a class="el" href="structHcResetInfo.html">HcResetInfo</a> *resetInfo)</td></tr>
<tr class="separator:a9642c5fd6e78abdb74103acaadf40306"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa0e6388253f442ebc4f34df62fbca48a" id="r_aa0e6388253f442ebc4f34df62fbca48a"><td class="memItemLeft" align="right" valign="top">HYDRA_API_EXPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#aa0e6388253f442ebc4f34df62fbca48a">hcSetRunState</a> (const <a class="el" href="structHcRunStateInfo.html">HcRunStateInfo</a> *runInfo)</td></tr>
<tr class="separator:aa0e6388253f442ebc4f34df62fbca48a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad6d42b5760d3667fe10c89fb395047d2" id="r_ad6d42b5760d3667fe10c89fb395047d2"><td class="memItemLeft" align="right" valign="top">HYDRA_API_EXPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#ad6d42b5760d3667fe10c89fb395047d2">hcLoadContent</a> (const <a class="el" href="structHcContentLoadInfo.html">HcContentLoadInfo</a> *info)</td></tr>
<tr class="separator:ad6d42b5760d3667fe10c89fb395047d2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8aa82439746b810f33feb7a98a416f58" id="r_a8aa82439746b810f33feb7a98a416f58"><td class="memItemLeft" align="right" valign="top">HYDRA_API_EXPORT HYDRA_API_ATTR const char *HYDRA_API_CALL </td><td class="memItemRight" valign="bottom"><a class="el" href="#a8aa82439746b810f33feb7a98a416f58">hcGetError</a> ()</td></tr>
<tr class="separator:a8aa82439746b810f33feb7a98a416f58"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The hydra core API. </p>
<p>The hydra core API is a C API that allows for the creation of 'cores' that can be run in a frontend. A core is a piece of software that provides some sort of video and/or audio output, while also taking controller input from the frontend. What this software does is up to the core, but in the case of hydra-emu, cores are emulators for various game consoles.</p>
<p>The frontend is responsible for creating a window and setting up the renderer API (OpenGL, Vulkan, etc.). It then initializes the core. The core can then decide whether it wants to be self-driven or frontend-driven. Self-driven cores are responsible for running their own main loop, while frontend-driven cores have their main loop driven by the frontend at a configurable rate. For self-driven cores, the frontends job is minimal, providing input when requested, swapping buffers when needed, optionally providing audio output, and setting the run state of the core.</p>
<p>MIT License</p>
<p>Copyright (c) 2024 hydra-emu</p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="acdd8a3bf6b35ebe9fad0ee609203b83b" name="acdd8a3bf6b35ebe9fad0ee609203b83b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdd8a3bf6b35ebe9fad0ee609203b83b">◆ </a></span>HYDRA_CORE_MAJOR</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define HYDRA_CORE_MAJOR   0</td>
</tr>
</table>
</div><div class="memdoc">
<p>Structures in the hydra core API follow Vulkan's style of struct chaining, where you can provide extensions to structs. This means that each struct a pointer <code>next</code> to the next struct in the chain. and a <code>type</code> field to identify the type of the next struct. This is useful for future-proofing the API, as it allows for adding new fields to existing structs without breaking compatibility. If a structure allows for extensions, it will explicitly say so in the documentation for that structure. </p>
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a037648f237857cb51b76e3fa9a1ad283" name="a037648f237857cb51b76e3fa9a1ad283"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a037648f237857cb51b76e3fa9a1ad283">◆ </a></span>HcDriveMode</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="#a037648f237857cb51b76e3fa9a1ad283">HcDriveMode</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a037648f237857cb51b76e3fa9a1ad283a653878411d1927ac1012adbc6bbcd8b3" name="a037648f237857cb51b76e3fa9a1ad283a653878411d1927ac1012adbc6bbcd8b3"></a>HC_DRIVE_MODE_SELF_DRIVEN </td><td class="fielddoc"><p>The core is responsible for doing everything itself, except for input which is provided by the frontend. </p>
</td></tr>
<tr><td class="fieldname"><a id="a037648f237857cb51b76e3fa9a1ad283af1ef9c9d567c2c5a494a18d72a12682d" name="a037648f237857cb51b76e3fa9a1ad283af1ef9c9d567c2c5a494a18d72a12682d"></a>HC_DRIVE_MODE_SELF_DRIVEN_EXCEPT_AUDIO </td><td class="fielddoc"><p>The core is responsible for doing everything itself, except for input which is provided by the frontend, and audio that is played by pushing audio frames to the frontend. </p>
</td></tr>
<tr><td class="fieldname"><a id="a037648f237857cb51b76e3fa9a1ad283afd7f984c339baf9940da15f2dc9164e5" name="a037648f237857cb51b76e3fa9a1ad283afd7f984c339baf9940da15f2dc9164e5"></a>HC_DRIVE_MODE_FRONTEND_DRIVEN </td><td class="fielddoc"><p>The frontend drives the core loop. The frontend is responsible for calling the core's runFrame function. </p>
</td></tr>
</table>
</div>
</div>
<a id="a5d3cc654aa7d949329150eb6adb80e7a" name="a5d3cc654aa7d949329150eb6adb80e7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d3cc654aa7d949329150eb6adb80e7a">◆ </a></span>HcResetType</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="#a5d3cc654aa7d949329150eb6adb80e7a">HcResetType</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a5d3cc654aa7d949329150eb6adb80e7aa649713e7e9166379fa25244b10c01bf6" name="a5d3cc654aa7d949329150eb6adb80e7aa649713e7e9166379fa25244b10c01bf6"></a>HC_RESET_TYPE_SOFT </td><td class="fielddoc"><p>Whatever the core considers a soft reset, usually equivalent to pressing the reset button on the console. </p>
</td></tr>
<tr><td class="fieldname"><a id="a5d3cc654aa7d949329150eb6adb80e7aafd245828358cd3449c57de128e502075" name="a5d3cc654aa7d949329150eb6adb80e7aafd245828358cd3449c57de128e502075"></a>HC_RESET_TYPE_HARD </td><td class="fielddoc"><p>Whatever the core considers a hard reset, usually equivalent to turning the console off and on again. </p>
</td></tr>
</table>
</div>
</div>
<a id="a759b24873650f1d6c675159eec42ec4b" name="a759b24873650f1d6c675159eec42ec4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a759b24873650f1d6c675159eec42ec4b">◆ </a></span>HcResult</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" name="a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e"></a>HC_SUCCESS </td><td class="fielddoc"><p>The operation was successful. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba7f0a4662ed2b18e130eafc7461c3f856" name="a759b24873650f1d6c675159eec42ec4ba7f0a4662ed2b18e130eafc7461c3f856"></a>HC_ERROR_CORE </td><td class="fielddoc"><p>An error occurred by the core. Core should provide hcGetError with more information. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4baa04504a25889d25665d3e5600d1fa0fa" name="a759b24873650f1d6c675159eec42ec4baa04504a25889d25665d3e5600d1fa0fa"></a>HC_ERROR_NOT_ALL_CALLBACKS_SET </td><td class="fielddoc"><p>Not all callbacks were set. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba1d21b3c240cd0104f1198ea735224a6d" name="a759b24873650f1d6c675159eec42ec4ba1d21b3c240cd0104f1198ea735224a6d"></a>HC_ERROR_BAD_RENDERER_VERSION </td><td class="fielddoc"><p>The renderer version is not supported. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba27d103d2d0005ef2d1d98425d84e2c7b" name="a759b24873650f1d6c675159eec42ec4ba27d103d2d0005ef2d1d98425d84e2c7b"></a>HC_ERROR_BAD_CONTENT </td><td class="fielddoc"><p>The content is not valid. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba0fe69537f9f9448165fbf9298068473d" name="a759b24873650f1d6c675159eec42ec4ba0fe69537f9f9448165fbf9298068473d"></a>HC_ERROR_BAD_INPUT_REQUEST </td><td class="fielddoc"><p>The input request is not valid. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4baf0ceb908b5a28c94e616aa8596250c2d" name="a759b24873650f1d6c675159eec42ec4baf0ceb908b5a28c94e616aa8596250c2d"></a>HC_ERROR_BAD_ENVIRONMENT_INFO </td><td class="fielddoc"><p>The environment info is not valid. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba89bcdaad197a5901b075aa7812ce4492" name="a759b24873650f1d6c675159eec42ec4ba89bcdaad197a5901b075aa7812ce4492"></a>HC_ERROR_BAD_AUDIO_DATA_WANT </td><td class="fielddoc"><p>The audio data's want field is not valid. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba898342ce6ebef2c4435eb2e0ea5640e7" name="a759b24873650f1d6c675159eec42ec4ba898342ce6ebef2c4435eb2e0ea5640e7"></a>HC_ERROR_BAD_AUDIO_DATA_HAVE </td><td class="fielddoc"><p>The audio data's have field is not valid. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba1f5770c6f3237ed515281c80873c9c95" name="a759b24873650f1d6c675159eec42ec4ba1f5770c6f3237ed515281c80873c9c95"></a>HC_ERROR_AUDIO_OVERRUN </td><td class="fielddoc"><p>The audio buffer is full and cannot accept more audio data. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4baade810a513339d47748ffa1662be1455" name="a759b24873650f1d6c675159eec42ec4baade810a513339d47748ffa1662be1455"></a>HC_ERROR_FULLY_SELF_DRIVEN </td><td class="fielddoc"><p>The core should be fully self-driven so the frontend can't accept audio data. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba2a9324e3458b64e532beffd05d3dc7cf" name="a759b24873650f1d6c675159eec42ec4ba2a9324e3458b64e532beffd05d3dc7cf"></a>HC_ERROR_NOT_SOFTWARE_RENDERED </td><td class="fielddoc"><p>The core is not software rendered. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba7ef6c09e9a2917e4b95a918642577836" name="a759b24873650f1d6c675159eec42ec4ba7ef6c09e9a2917e4b95a918642577836"></a>HC_ERROR_NOT_OPENGL_RENDERED </td><td class="fielddoc"><p>The core is not OpenGL rendered. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba5bd94d4156829645acbd3b2e857684b9" name="a759b24873650f1d6c675159eec42ec4ba5bd94d4156829645acbd3b2e857684b9"></a>HC_ERROR_NOT_VULKAN_RENDERED </td><td class="fielddoc"><p>The core is not Vulkan rendered. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba21f7a4ae21c1e7a4acbec4edb2b8b46f" name="a759b24873650f1d6c675159eec42ec4ba21f7a4ae21c1e7a4acbec4edb2b8b46f"></a>HC_ERROR_NOT_METAL_RENDERED </td><td class="fielddoc"><p>The core is not Metal rendered. </p>
</td></tr>
<tr><td class="fieldname"><a id="a759b24873650f1d6c675159eec42ec4ba78adaeb5c862778d41496a93fb921465" name="a759b24873650f1d6c675159eec42ec4ba78adaeb5c862778d41496a93fb921465"></a>HC_ERROR_NOT_DIRECT3D_RENDERED </td><td class="fielddoc"><p>The core is not Direct3D rendered. </p>
</td></tr>
</table>
</div>
</div>
<a id="a44bf83ff1a6d60fc89b3dacf92783ae7" name="a44bf83ff1a6d60fc89b3dacf92783ae7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44bf83ff1a6d60fc89b3dacf92783ae7">◆ </a></span>HcRunState</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="#a44bf83ff1a6d60fc89b3dacf92783ae7">HcRunState</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a44bf83ff1a6d60fc89b3dacf92783ae7afe5eb6f65a7e631dc59ce7978768c907" name="a44bf83ff1a6d60fc89b3dacf92783ae7afe5eb6f65a7e631dc59ce7978768c907"></a>HC_RUN_STATE_NULL </td><td class="fielddoc"><p>The core run state is not yet set. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44bf83ff1a6d60fc89b3dacf92783ae7aa37dedef24d29d22dce997ffb444035f" name="a44bf83ff1a6d60fc89b3dacf92783ae7aa37dedef24d29d22dce997ffb444035f"></a>HC_RUN_STATE_RUNNING </td><td class="fielddoc"><p>The core is running. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44bf83ff1a6d60fc89b3dacf92783ae7a8187e11aa9da46b92acd9936630c3e61" name="a44bf83ff1a6d60fc89b3dacf92783ae7a8187e11aa9da46b92acd9936630c3e61"></a>HC_RUN_STATE_PAUSED </td><td class="fielddoc"><p>The core is paused. </p>
</td></tr>
<tr><td class="fieldname"><a id="a44bf83ff1a6d60fc89b3dacf92783ae7a16a9f900a49b00c1522a96a927c71378" name="a44bf83ff1a6d60fc89b3dacf92783ae7a16a9f900a49b00c1522a96a927c71378"></a>HC_RUN_STATE_QUIT </td><td class="fielddoc"><p>The core is stopped and will not be resumed. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a3f7ac562d70748aa6b956fbfdb97ea02" name="a3f7ac562d70748aa6b956fbfdb97ea02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f7ac562d70748aa6b956fbfdb97ea02">◆ </a></span>hcCreate()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_EXPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcCreate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structHcEnvironmentInfo.html">HcEnvironmentInfo</a> *</td> <td class="paramname"><span class="paramname"><em>environmentInfo</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize the core. Each core is tied to a window and a particular renderer API, configured from environmentInfo. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[out]</td><td class="paramname">environmentInfo</td><td>Information about the environment the core is running in. This needs to be populated by the core. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba7f0a4662ed2b18e130eafc7461c3f856" title="An error occurred by the core. Core should provide hcGetError with more information.">HC_ERROR_CORE</a> </dd></dl>
</div>
</div>
<a id="a66f199168cb11a5bb339176849cf0af9" name="a66f199168cb11a5bb339176849cf0af9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66f199168cb11a5bb339176849cf0af9">◆ </a></span>hcDestroy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_EXPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcDestroy </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structHcDestroyInfo.html">HcDestroyInfo</a> *</td> <td class="paramname"><span class="paramname"><em>destroyInfo</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy the core, freeing any resources it has allocated. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">destroyInfo</td><td>Information about the destruction of the core. Currently unused. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba7f0a4662ed2b18e130eafc7461c3f856" title="An error occurred by the core. Core should provide hcGetError with more information.">HC_ERROR_CORE</a> </dd></dl>
</div>
</div>
<a id="aaf794c45945f417379547be93e04c276" name="aaf794c45945f417379547be93e04c276"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf794c45945f417379547be93e04c276">◆ </a></span>hcGetCoreInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_EXPORT HYDRA_API_ATTR void HYDRA_API_CALL hcGetCoreInfo </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structHcCoreInfo.html">HcCoreInfo</a> *</td> <td class="paramname"><span class="paramname"><em>info</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Exported functions, these need to be defined by the core. </p>
<p>Get information about the core. Will be called one time, once the core is loaded. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">info</td><td>The <a class="el" href="structHcCoreInfo.html">HcCoreInfo</a> struct to fill with information about the core. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a8aa82439746b810f33feb7a98a416f58" name="a8aa82439746b810f33feb7a98a416f58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8aa82439746b810f33feb7a98a416f58">◆ </a></span>hcGetError()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_EXPORT HYDRA_API_ATTR const char *HYDRA_API_CALL hcGetError </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the error message of the last <a class="el" href="#a759b24873650f1d6c675159eec42ec4ba7f0a4662ed2b18e130eafc7461c3f856" title="An error occurred by the core. Core should provide hcGetError with more information.">HC_ERROR_CORE</a> that occurred. </p><dl class="section return"><dt>Returns</dt><dd>A string containing the error message, or nullptr if no error occurred. </dd></dl>
</div>
</div>
<a id="aa6a8a11f89c2af6d4322605ca88f3b9d" name="aa6a8a11f89c2af6d4322605ca88f3b9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6a8a11f89c2af6d4322605ca88f3b9d">◆ </a></span>hcGetHostInfo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_IMPORT HYDRA_API_ATTR void HYDRA_API_CALL hcGetHostInfo </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structHcHostInfo.html">HcHostInfo</a> *</td> <td class="paramname"><span class="paramname"><em>hostInfo</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Imported functions, these are defined by the frontend. </p>
<p>Get information about the host system. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">hostInfo</td><td>Will be filled with information about the host system. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="adb5b900e6db816dacbe663abc9bb61d4" name="adb5b900e6db816dacbe663abc9bb61d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb5b900e6db816dacbe663abc9bb61d4">◆ </a></span>hcGetInputsSync()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcGetInputsSync </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structHcInputRequest.html">HcInputRequest</a> *const *</td> <td class="paramname"><span class="paramname"><em>requests</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>requestCount</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int64_t *const *</td> <td class="paramname"><span class="paramname"><em>values</em></span> )</td>
</tr>
</table>
</div><div class="memdoc">
<p>Request input state from the frontend. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">requests</td><td>An array of pointers to <a class="el" href="structHcInputRequest.html">HcInputRequest</a> structs, each containing information about the input to request. </td></tr>
<tr><td class="paramname">requestCount</td><td>The number of input requests in the requests array. </td></tr>
<tr><td class="paramname">values</td><td>An array of pointers to int64_t, each containing the value of the input requested. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba0fe69537f9f9448165fbf9298068473d" title="The input request is not valid.">HC_ERROR_BAD_INPUT_REQUEST</a> </dd></dl>
</div>
</div>
<a id="af41de289de5c9626248717e4a1862db1" name="af41de289de5c9626248717e4a1862db1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af41de289de5c9626248717e4a1862db1">◆ </a></span>hcGlGetProcAddress()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_IMPORT HYDRA_API_ATTR void *HYDRA_API_CALL hcGlGetProcAddress </td>
<td>(</td>
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>name</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>For OpenGL rendered cores, this function is called by the core to get a function pointer to an OpenGL function. You can use it with GLAD or similar functions to load the OpenGL functions, as you normally would. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The name of the OpenGL function to get a pointer to. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the OpenGL function, or nullptr if the function is not found. </dd></dl>
</div>
</div>
<a id="ac45c46924f6ff5ed93ecc00fa83d3412" name="ac45c46924f6ff5ed93ecc00fa83d3412"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac45c46924f6ff5ed93ecc00fa83d3412">◆ </a></span>hcGlMakeCurrent()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcGlMakeCurrent </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>For OpenGL rendered cores, this function is called by the core to make the current thread owner of the OpenGL context. Should be called before the core starts rendering. </p><dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba7ef6c09e9a2917e4b95a918642577836" title="The core is not OpenGL rendered.">HC_ERROR_NOT_OPENGL_RENDERED</a> </dd></dl>
</div>
</div>
<a id="a39ed66cbce87a399ec3b9fe80c8887db" name="a39ed66cbce87a399ec3b9fe80c8887db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39ed66cbce87a399ec3b9fe80c8887db">◆ </a></span>hcGlSwapBuffers()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcGlSwapBuffers </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>For OpenGL rendered cores, this function is called by the core to swap buffers and render any overlays. Should be called after the core has finished rendering a frame. </p><dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba7ef6c09e9a2917e4b95a918642577836" title="The core is not OpenGL rendered.">HC_ERROR_NOT_OPENGL_RENDERED</a> </dd></dl>
</div>
</div>
<a id="ad6d42b5760d3667fe10c89fb395047d2" name="ad6d42b5760d3667fe10c89fb395047d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6d42b5760d3667fe10c89fb395047d2">◆ </a></span>hcLoadContent()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_EXPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcLoadContent </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structHcContentLoadInfo.html">HcContentLoadInfo</a> *</td> <td class="paramname"><span class="paramname"><em>info</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Load content into the core. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">info</td><td>Information about the content to load. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba27d103d2d0005ef2d1d98425d84e2c7b" title="The content is not valid.">HC_ERROR_BAD_CONTENT</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba7f0a4662ed2b18e130eafc7461c3f856" title="An error occurred by the core. Core should provide hcGetError with more information.">HC_ERROR_CORE</a> </dd></dl>
</div>
</div>
<a id="aef77ca7085a34175960b4b536367fb67" name="aef77ca7085a34175960b4b536367fb67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef77ca7085a34175960b4b536367fb67">◆ </a></span>hcPushSamples()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcPushSamples </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structHcAudioData.html">HcAudioData</a> *</td> <td class="paramname"><span class="paramname"><em>audioData</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>For not fully self-driven cores (so cores that use <a class="el" href="#a037648f237857cb51b76e3fa9a1ad283af1ef9c9d567c2c5a494a18d72a12682d" title="The core is responsible for doing everything itself, except for input which is provided by the fronte...">HC_DRIVE_MODE_SELF_DRIVEN_EXCEPT_AUDIO</a> or <a class="el" href="#a037648f237857cb51b76e3fa9a1ad283afd7f984c339baf9940da15f2dc9164e5" title="The frontend drives the core loop. The frontend is responsible for calling the core's runFrame functi...">HC_DRIVE_MODE_FRONTEND_DRIVEN</a>), this function is called by the core to push an arbitrary amount of audio samples to the frontend. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">audioData</td><td>The audio data to push to the frontend. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba89bcdaad197a5901b075aa7812ce4492" title="The audio data's want field is not valid.">HC_ERROR_BAD_AUDIO_DATA_WANT</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba898342ce6ebef2c4435eb2e0ea5640e7" title="The audio data's have field is not valid.">HC_ERROR_BAD_AUDIO_DATA_HAVE</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba1f5770c6f3237ed515281c80873c9c95" title="The audio buffer is full and cannot accept more audio data.">HC_ERROR_AUDIO_OVERRUN</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4baade810a513339d47748ffa1662be1455" title="The core should be fully self-driven so the frontend can't accept audio data.">HC_ERROR_FULLY_SELF_DRIVEN</a> </dd></dl>
</div>
</div>
<a id="afb2101c96446a76af5c16870eefe7db5" name="afb2101c96446a76af5c16870eefe7db5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb2101c96446a76af5c16870eefe7db5">◆ </a></span>hcReconfigureEnvironment()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcReconfigureEnvironment </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structHcEnvironmentInfo.html">HcEnvironmentInfo</a> *</td> <td class="paramname"><span class="paramname"><em>environmentInfo</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reconfigure the environment the core is running in, for example when the window is resized or the frame rate changes in frontend-driven cores. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">environmentInfo</td><td>Information about the new environment. Renderer changes are ignored. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4baf0ceb908b5a28c94e616aa8596250c2d" title="The environment info is not valid.">HC_ERROR_BAD_ENVIRONMENT_INFO</a> </dd></dl>
</div>
</div>
<a id="a9642c5fd6e78abdb74103acaadf40306" name="a9642c5fd6e78abdb74103acaadf40306"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9642c5fd6e78abdb74103acaadf40306">◆ </a></span>hcReset()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_EXPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcReset </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structHcResetInfo.html">HcResetInfo</a> *</td> <td class="paramname"><span class="paramname"><em>resetInfo</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reset the core. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">resetInfo</td><td>Information about the reset of the core. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>
<dd>
<a class="el" href="#a759b24873650f1d6c675159eec42ec4ba7f0a4662ed2b18e130eafc7461c3f856" title="An error occurred by the core. Core should provide hcGetError with more information.">HC_ERROR_CORE</a> </dd></dl>
</div>
</div>
<a id="a5c6029af71f8b0efe6591d0b923d198c" name="a5c6029af71f8b0efe6591d0b923d198c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c6029af71f8b0efe6591d0b923d198c">◆ </a></span>hcSetCallbacks()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HYDRA_API_IMPORT HYDRA_API_ATTR <a class="el" href="#a759b24873650f1d6c675159eec42ec4b">HcResult</a> HYDRA_API_CALL hcSetCallbacks </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structHcCallbacks.html">HcCallbacks</a> *</td> <td class="paramname"><span class="paramname"><em>callbacks</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>For frontend-driven cores, this function sets the callbacks that the frontend will call to drive the core's main loop. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">callbacks</td><td>The callbacks to set. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="#a759b24873650f1d6c675159eec42ec4ba208fb807db470d0e9b4cc9b66b280a2e" title="The operation was successful.">HC_SUCCESS</a> </dd>