-
Notifications
You must be signed in to change notification settings - Fork 14
/
ChromaAnimationAPI.h
5546 lines (5538 loc) · 244 KB
/
ChromaAnimationAPI.h
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
#pragma once
#include "ChromaSDKPluginTypes.h"
/* Setup log mechanism */
typedef void(*DebugLogPtr)(const char*);
void LogDebug(const char* text, ...);
void LogError(const char* text, ...);
/* End of setup log mechanism */
#pragma region API typedefs
/*
Return the sum of colors
*/
typedef int (*PLUGIN_ADD_COLOR)(const int color1, const int color2);
/*
Adds a frame to the `Chroma` animation and sets the `duration` (in seconds).
The `color` is expected to be an array of the dimensions for the `deviceType/device`.
The `length` parameter is the size of the `color` array. For `EChromaSDKDevice1DEnum`
the array size should be `MAX LEDS`. For `EChromaSDKDevice2DEnum` the array
size should be `MAX ROW` times `MAX COLUMN`. Returns the animation id upon
success. Returns negative one upon failure.
*/
typedef int (*PLUGIN_ADD_FRAME)(int animationId, float duration, int* colors, int length);
/*
Add source color to target where color is not black for frame id, reference
source and target by id.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_ALL_KEYS)(int sourceAnimationId, int targetAnimationId, int frameId);
/*
Add source color to target where color is not black for all frames, reference
source and target by id.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId);
/*
Add source color to target where color is not black for all frames, reference
source and target by name.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_ALL_FRAMES_NAME_D)(const char* sourceAnimation, const char* targetAnimation);
/*
Add source color to target where color is not black for all frames starting
at offset for the length of the source, reference source and target by
id.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_ALL_FRAMES_OFFSET)(int sourceAnimationId, int targetAnimationId, int offset);
/*
Add source color to target where color is not black for all frames starting
at offset for the length of the source, reference source and target by
name.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_ALL_FRAMES_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_ALL_FRAMES_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double offset);
/*
Add source color to target where color is not black for frame id, reference
source and target by name.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId);
/*
Add source color to target where color is not black for the source frame
and target offset frame, reference source and target by id.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_OFFSET)(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
/*
Add source color to target where color is not black for the source frame
and target offset frame, reference source and target by name.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_ADD_NON_ZERO_ALL_KEYS_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double frameId, double offset);
/*
Add source color to target where the target color is not black for all frames,
reference source and target by id.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId);
/*
Add source color to target where the target color is not black for all frames,
reference source and target by name.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_ADD_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_NAME_D)(const char* sourceAnimation, const char* targetAnimation);
/*
Add source color to target where the target color is not black for all frames
starting at offset for the length of the source, reference source and target
by id.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_OFFSET)(int sourceAnimationId, int targetAnimationId, int offset);
/*
Add source color to target where the target color is not black for all frames
starting at offset for the length of the source, reference source and target
by name.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_ADD_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double offset);
/*
Add source color to target where target color is not blank from the source
frame to the target offset frame, reference source and target by id.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_TARGET_ALL_KEYS_OFFSET)(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
/*
Add source color to target where target color is not blank from the source
frame to the target offset frame, reference source and target by name.
*/
typedef void (*PLUGIN_ADD_NON_ZERO_TARGET_ALL_KEYS_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_ADD_NON_ZERO_TARGET_ALL_KEYS_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double frameId, double offset);
/*
Append all source frames to the target animation, reference source and target
by id.
*/
typedef void (*PLUGIN_APPEND_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId);
/*
Append all source frames to the target animation, reference source and target
by name.
*/
typedef void (*PLUGIN_APPEND_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_APPEND_ALL_FRAMES_NAME_D)(const char* sourceAnimation, const char* targetAnimation);
/*
`PluginClearAll` will issue a `CLEAR` effect for all devices.
*/
typedef void (*PLUGIN_CLEAR_ALL)();
/*
`PluginClearAnimationType` will issue a `CLEAR` effect for the given device.
*/
typedef void (*PLUGIN_CLEAR_ANIMATION_TYPE)(int deviceType, int device);
/*
`PluginCloseAll` closes all open animations so they can be reloaded from
disk. The set of animations will be stopped if playing.
*/
typedef void (*PLUGIN_CLOSE_ALL)();
/*
Closes the `Chroma` animation to free up resources referenced by id. Returns
the animation id upon success. Returns negative one upon failure. This
might be used while authoring effects if there was a change necessitating
re-opening the animation. The animation id can no longer be used once closed.
*/
typedef int (*PLUGIN_CLOSE_ANIMATION)(int animationId);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_CLOSE_ANIMATION_D)(double animationId);
/*
Closes the `Chroma` animation referenced by name so that the animation can
be reloaded from disk.
*/
typedef void (*PLUGIN_CLOSE_ANIMATION_NAME)(const char* path);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_CLOSE_ANIMATION_NAME_D)(const char* path);
/*
`PluginCloseComposite` closes a set of animations so they can be reloaded
from disk. The set of animations will be stopped if playing.
*/
typedef void (*PLUGIN_CLOSE_COMPOSITE)(const char* name);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_CLOSE_COMPOSITE_D)(const char* name);
/*
Copy source animation to target animation for the given frame. Source and
target are referenced by id.
*/
typedef void (*PLUGIN_COPY_ALL_KEYS)(int sourceAnimationId, int targetAnimationId, int frameId);
/*
Copy source animation to target animation for the given frame. Source and
target are referenced by id.
*/
typedef void (*PLUGIN_COPY_ALL_KEYS_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId);
/*
Copy animation to named target animation in memory. If target animation
exists, close first. Source is referenced by id.
*/
typedef int (*PLUGIN_COPY_ANIMATION)(int sourceAnimationId, const char* targetAnimation);
/*
Copy animation to named target animation in memory. If target animation
exists, close first. Source is referenced by name.
*/
typedef void (*PLUGIN_COPY_ANIMATION_NAME)(const char* sourceAnimation, const char* targetAnimation);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_ANIMATION_NAME_D)(const char* sourceAnimation, const char* targetAnimation);
/*
Copy blue channel to other channels for all frames. Intensity range is 0.0
to 1.0. Reference the animation by id.
*/
typedef void (*PLUGIN_COPY_BLUE_CHANNEL_ALL_FRAMES)(int animationId, float redIntensity, float greenIntensity);
/*
Copy blue channel to other channels for all frames. Intensity range is 0.0
to 1.0. Reference the animation by name.
*/
typedef void (*PLUGIN_COPY_BLUE_CHANNEL_ALL_FRAMES_NAME)(const char* path, float redIntensity, float greenIntensity);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_BLUE_CHANNEL_ALL_FRAMES_NAME_D)(const char* path, double redIntensity, double greenIntensity);
/*
Copy green channel to other channels for all frames. Intensity range is
0.0 to 1.0. Reference the animation by id.
*/
typedef void (*PLUGIN_COPY_GREEN_CHANNEL_ALL_FRAMES)(int animationId, float redIntensity, float blueIntensity);
/*
Copy green channel to other channels for all frames. Intensity range is
0.0 to 1.0. Reference the animation by name.
*/
typedef void (*PLUGIN_COPY_GREEN_CHANNEL_ALL_FRAMES_NAME)(const char* path, float redIntensity, float blueIntensity);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_GREEN_CHANNEL_ALL_FRAMES_NAME_D)(const char* path, double redIntensity, double blueIntensity);
/*
Copy animation key color from the source animation to the target animation
for the given frame. Reference the source and target by id.
*/
typedef void (*PLUGIN_COPY_KEY_COLOR)(int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);
/*
Copy animation key color from the source animation to the target animation
for all frames. Reference the source and target by id.
*/
typedef void (*PLUGIN_COPY_KEY_COLOR_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId, int rzkey);
/*
Copy animation key color from the source animation to the target animation
for all frames. Reference the source and target by name.
*/
typedef void (*PLUGIN_COPY_KEY_COLOR_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation, int rzkey);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_KEY_COLOR_ALL_FRAMES_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double rzkey);
/*
Copy animation key color from the source animation to the target animation
for all frames, starting at the offset for the length of the source animation.
Source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_KEY_COLOR_ALL_FRAMES_OFFSET)(int sourceAnimationId, int targetAnimationId, int rzkey, int offset);
/*
Copy animation key color from the source animation to the target animation
for all frames, starting at the offset for the length of the source animation.
Source and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_KEY_COLOR_ALL_FRAMES_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int rzkey, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_KEY_COLOR_ALL_FRAMES_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double rzkey, double offset);
/*
Copy animation key color from the source animation to the target animation
for the given frame.
*/
typedef void (*PLUGIN_COPY_KEY_COLOR_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId, int rzkey);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_KEY_COLOR_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double frameId, double rzkey);
/*
Copy animation color for a set of keys from the source animation to the
target animation for the given frame. Reference the source and target by
id.
*/
typedef void (*PLUGIN_COPY_KEYS_COLOR)(int sourceAnimationId, int targetAnimationId, int frameId, const int* keys, int size);
/*
Copy animation color for a set of keys from the source animation to the
target animation for all frames. Reference the source and target by id.
*/
typedef void (*PLUGIN_COPY_KEYS_COLOR_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId, const int* keys, int size);
/*
Copy animation color for a set of keys from the source animation to the
target animation for all frames. Reference the source and target by name.
*/
typedef void (*PLUGIN_COPY_KEYS_COLOR_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation, const int* keys, int size);
/*
Copy animation color for a set of keys from the source animation to the
target animation for the given frame. Reference the source and target by
name.
*/
typedef void (*PLUGIN_COPY_KEYS_COLOR_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId, const int* keys, int size);
/*
Copy animation color for a set of keys from the source animation to the
target animation from the source frame to the target frame. Reference the
source and target by id.
*/
typedef void (*PLUGIN_COPY_KEYS_COLOR_OFFSET)(int sourceAnimationId, int targetAnimationId, int sourceFrameId, int targetFrameId, const int* keys, int size);
/*
Copy animation color for a set of keys from the source animation to the
target animation from the source frame to the target frame. Reference the
source and target by name.
*/
typedef void (*PLUGIN_COPY_KEYS_COLOR_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int sourceFrameId, int targetFrameId, const int* keys, int size);
/*
Copy source animation to target animation for the given frame. Source and
target are referenced by id.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_ALL_KEYS)(int sourceAnimationId, int targetAnimationId, int frameId);
/*
Copy nonzero colors from a source animation to a target animation for all
frames. Reference source and target by id.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId);
/*
Copy nonzero colors from a source animation to a target animation for all
frames. Reference source and target by name.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_ALL_FRAMES_NAME_D)(const char* sourceAnimation, const char* targetAnimation);
/*
Copy nonzero colors from a source animation to a target animation for all
frames starting at the offset for the length of the source animation. The
source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_ALL_FRAMES_OFFSET)(int sourceAnimationId, int targetAnimationId, int offset);
/*
Copy nonzero colors from a source animation to a target animation for all
frames starting at the offset for the length of the source animation. The
source and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_ALL_FRAMES_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_ALL_FRAMES_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double offset);
/*
Copy nonzero colors from source animation to target animation for the specified
frame. Source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double frameId);
/*
Copy nonzero colors from the source animation to the target animation from
the source frame to the target offset frame. Source and target are referenced
by id.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_OFFSET)(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
/*
Copy nonzero colors from the source animation to the target animation from
the source frame to the target offset frame. Source and target are referenced
by name.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_ALL_KEYS_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double frameId, double offset);
/*
Copy animation key color from the source animation to the target animation
for the given frame where color is not zero.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_KEY_COLOR)(int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);
/*
Copy animation key color from the source animation to the target animation
for the given frame where color is not zero.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_KEY_COLOR_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId, int rzkey);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_KEY_COLOR_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double frameId, double rzkey);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is nonzero for the specified frame. Source and target
are referenced by id.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS)(int sourceAnimationId, int targetAnimationId, int frameId);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is nonzero for all frames. Source and target are referenced
by id.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is nonzero for all frames. Source and target are referenced
by name.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_NAME_D)(const char* sourceAnimation, const char* targetAnimation);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is nonzero for all frames. Source and target are referenced
by name.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_OFFSET)(int sourceAnimationId, int targetAnimationId, int offset);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is nonzero for all frames starting at the target offset
for the length of the source animation. Source and target animations are
referenced by name.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double offset);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is nonzero for the specified frame. The source and target
are referenced by name.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double frameId);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is nonzero for the specified source frame and target offset
frame. The source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_OFFSET)(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is nonzero for the specified source frame and target offset
frame. The source and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_TARGET_ALL_KEYS_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double frameId, double offset);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is zero for all frames. Source and target are referenced
by id.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ZERO_ALL_KEYS_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId);
/*
Copy nonzero colors from the source animation to the target animation where
the target color is zero for all frames. Source and target are referenced
by name.
*/
typedef void (*PLUGIN_COPY_NON_ZERO_TARGET_ZERO_ALL_KEYS_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_NON_ZERO_TARGET_ZERO_ALL_KEYS_ALL_FRAMES_NAME_D)(const char* sourceAnimation, const char* targetAnimation);
/*
Copy red channel to other channels for all frames. Intensity range is 0.0
to 1.0. Reference the animation by id.
*/
typedef void (*PLUGIN_COPY_RED_CHANNEL_ALL_FRAMES)(int animationId, float greenIntensity, float blueIntensity);
/*
Copy green channel to other channels for all frames. Intensity range is
0.0 to 1.0. Reference the animation by name.
*/
typedef void (*PLUGIN_COPY_RED_CHANNEL_ALL_FRAMES_NAME)(const char* path, float greenIntensity, float blueIntensity);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_RED_CHANNEL_ALL_FRAMES_NAME_D)(const char* path, double greenIntensity, double blueIntensity);
/*
Copy zero colors from source animation to target animation for the frame.
Source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_ZERO_ALL_KEYS)(int sourceAnimationId, int targetAnimationId, int frameId);
/*
Copy zero colors from source animation to target animation for all frames.
Source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_ZERO_ALL_KEYS_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId);
/*
Copy zero colors from source animation to target animation for all frames.
Source and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_ZERO_ALL_KEYS_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_ZERO_ALL_KEYS_ALL_FRAMES_NAME_D)(const char* sourceAnimation, const char* targetAnimation);
/*
Copy zero colors from source animation to target animation for all frames
starting at the target offset for the length of the source animation. Source
and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_ZERO_ALL_KEYS_ALL_FRAMES_OFFSET)(int sourceAnimationId, int targetAnimationId, int offset);
/*
Copy zero colors from source animation to target animation for all frames
starting at the target offset for the length of the source animation. Source
and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_ZERO_ALL_KEYS_ALL_FRAMES_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int offset);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_ZERO_ALL_KEYS_ALL_FRAMES_OFFSET_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double offset);
/*
Copy zero colors from source animation to target animation for the frame.
Source and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_ZERO_ALL_KEYS_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId);
/*
Copy zero colors from source animation to target animation for the frame
id starting at the target offset for the length of the source animation.
Source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_ZERO_ALL_KEYS_OFFSET)(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
/*
Copy zero colors from source animation to target animation for the frame
id starting at the target offset for the length of the source animation.
Source and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_ZERO_ALL_KEYS_OFFSET_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId, int offset);
/*
Copy zero key color from source animation to target animation for the specified
frame. Source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_ZERO_KEY_COLOR)(int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);
/*
Copy zero key color from source animation to target animation for the specified
frame. Source and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_ZERO_KEY_COLOR_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId, int rzkey);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_ZERO_KEY_COLOR_NAME_D)(const char* sourceAnimation, const char* targetAnimation, double frameId, double rzkey);
/*
Copy nonzero color from source animation to target animation where target
is zero for the frame. Source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_ZERO_TARGET_ALL_KEYS)(int sourceAnimationId, int targetAnimationId, int frameId);
/*
Copy nonzero color from source animation to target animation where target
is zero for all frames. Source and target are referenced by id.
*/
typedef void (*PLUGIN_COPY_ZERO_TARGET_ALL_KEYS_ALL_FRAMES)(int sourceAnimationId, int targetAnimationId);
/*
Copy nonzero color from source animation to target animation where target
is zero for all frames. Source and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_NAME)(const char* sourceAnimation, const char* targetAnimation);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_COPY_ZERO_TARGET_ALL_KEYS_ALL_FRAMES_NAME_D)(const char* sourceAnimation, const char* targetAnimation);
/*
Copy nonzero color from source animation to target animation where target
is zero for the frame. Source and target are referenced by name.
*/
typedef void (*PLUGIN_COPY_ZERO_TARGET_ALL_KEYS_NAME)(const char* sourceAnimation, const char* targetAnimation, int frameId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_CREATE_CHROMA_LINK_EFFECT)(ChromaSDK::ChromaLink::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_CREATE_EFFECT)(RZDEVICEID DeviceId, ChromaSDK::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_CREATE_HEADSET_EFFECT)(ChromaSDK::Headset::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_CREATE_KEYBOARD_EFFECT)(ChromaSDK::Keyboard::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_CREATE_KEYPAD_EFFECT)(ChromaSDK::Keypad::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_CREATE_MOUSE_EFFECT)(ChromaSDK::Mouse::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_CREATE_MOUSEPAD_EFFECT)(ChromaSDK::Mousepad::EFFECT_TYPE Effect, PRZPARAM pParam, RZEFFECTID* pEffectId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_DELETE_EFFECT)(RZEFFECTID EffectId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_INIT)();
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_INIT_SDK)(ChromaSDK::APPINFOTYPE* AppInfo);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_IS_ACTIVE)(BOOL& Active);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_IS_CONNECTED)(ChromaSDK::DEVICE_INFO_TYPE& DeviceInfo);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_QUERY_DEVICE)(RZDEVICEID DeviceId, ChromaSDK::DEVICE_INFO_TYPE& DeviceInfo);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_SET_EFFECT)(RZEFFECTID EffectId);
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_SET_EVENT_NAME)(LPCTSTR Name);
/*
Begin broadcasting Chroma RGB data using the stored stream key as the endpoint.
Intended for Cloud Gaming Platforms, restore the streaming key when the
game instance is launched to continue streaming. streamId is a null terminated
string streamKey is a null terminated string StreamGetStatus() should return
the READY status to use this method.
*/
typedef bool (*PLUGIN_CORE_STREAM_BROADCAST)(const char* streamId, const char* streamKey);
/*
End broadcasting Chroma RGB data. StreamGetStatus() should return the BROADCASTING
status to use this method.
*/
typedef bool (*PLUGIN_CORE_STREAM_BROADCAST_END)();
/*
shortcode: Pass the address of a preallocated character buffer to get the
streaming auth code. The buffer should have a minimum length of 6. length:
Length will return as zero if the streaming auth code could not be obtained.
If length is greater than zero, it will be the length of the returned streaming
auth code. Once you have the shortcode, it should be shown to the user
so they can associate the stream with their Razer ID StreamGetStatus()
should return the READY status before invoking this method. platform: is
the null terminated string that identifies the source of the stream: {
GEFORCE_NOW, LUNA, STADIA, GAME_PASS } title: is the null terminated string
that identifies the application or game.
*/
typedef void (*PLUGIN_CORE_STREAM_GET_AUTH_SHORTCODE)(char* shortcode, unsigned char* length, const wchar_t* platform, const wchar_t* title);
/*
focus: Pass the address of a preallocated character buffer to get the stream
focus. The buffer should have a length of 48 length: Length will return
as zero if the stream focus could not be obtained. If length is greater
than zero, it will be the length of the returned stream focus.
*/
typedef bool (*PLUGIN_CORE_STREAM_GET_FOCUS)(char* focus, unsigned char* length);
/*
Intended for Cloud Gaming Platforms, store the stream id to persist in user
preferences to continue streaming if the game is suspended or closed. shortcode:
The shortcode is a null terminated string. Use the shortcode that authorized
the stream to obtain the stream id. streamId should be a preallocated buffer
to get the stream key. The buffer should have a length of 48. length: Length
will return zero if the key could not be obtained. If the length is greater
than zero, it will be the length of the returned streaming id. Retrieve
the stream id after authorizing the shortcode. The authorization window
will expire in 5 minutes. Be sure to save the stream key before the window
expires. StreamGetStatus() should return the READY status to use this method.
*/
typedef void (*PLUGIN_CORE_STREAM_GET_ID)(const char* shortcode, char* streamId, unsigned char* length);
/*
Intended for Cloud Gaming Platforms, store the streaming key to persist
in user preferences to continue streaming if the game is suspended or closed.
shortcode: The shortcode is a null terminated string. Use the shortcode
that authorized the stream to obtain the stream key. If the status is in
the BROADCASTING or WATCHING state, passing a NULL shortcode will return
the active streamId. streamKey should be a preallocated buffer to get the
stream key. The buffer should have a length of 48. length: Length will
return zero if the key could not be obtained. If the length is greater
than zero, it will be the length of the returned streaming key. Retrieve
the stream key after authorizing the shortcode. The authorization window
will expire in 5 minutes. Be sure to save the stream key before the window
expires. StreamGetStatus() should return the READY status to use this method.
*/
typedef void (*PLUGIN_CORE_STREAM_GET_KEY)(const char* shortcode, char* streamKey, unsigned char* length);
/*
Returns StreamStatus, the current status of the service
*/
typedef ChromaSDK::Stream::StreamStatusType (*PLUGIN_CORE_STREAM_GET_STATUS)();
/*
Convert StreamStatusType to a printable string
*/
typedef const char* (*PLUGIN_CORE_STREAM_GET_STATUS_STRING)(ChromaSDK::Stream::StreamStatusType status);
/*
This prevents the stream id and stream key from being obtained through the
shortcode. This closes the auth window. shortcode is a null terminated
string. StreamGetStatus() should return the READY status to use this method.
returns success when shortcode has been released
*/
typedef bool (*PLUGIN_CORE_STREAM_RELEASE_SHORTCODE)(const char* shortcode);
/*
The focus is a null terminated string. Set the focus identifer for the application
designated to automatically change the streaming state. Returns true on
success.
*/
typedef bool (*PLUGIN_CORE_STREAM_SET_FOCUS)(const char* focus);
/*
Returns true if the Chroma streaming is supported. If false is returned,
avoid calling stream methods.
*/
typedef bool (*PLUGIN_CORE_STREAM_SUPPORTS_STREAMING)();
/*
Begin watching the Chroma RGB data using streamID parameter. streamId is
a null terminated string. StreamGetStatus() should return the READY status
to use this method.
*/
typedef bool (*PLUGIN_CORE_STREAM_WATCH)(const char* streamId, unsigned long long timestamp);
/*
End watching Chroma RGB data stream. StreamGetStatus() should return the
WATCHING status to use this method.
*/
typedef bool (*PLUGIN_CORE_STREAM_WATCH_END)();
/*
Direct access to low level API.
*/
typedef RZRESULT (*PLUGIN_CORE_UNINIT)();
/*
Creates a `Chroma` animation at the given path. The `deviceType` parameter
uses `EChromaSDKDeviceTypeEnum` as an integer. The `device` parameter uses
`EChromaSDKDevice1DEnum` or `EChromaSDKDevice2DEnum` as an integer, respective
to the `deviceType`. Returns the animation id upon success. Returns negative
one upon failure. Saves a `Chroma` animation file with the `.chroma` extension
at the given path. Returns the animation id upon success. Returns negative
one upon failure.
*/
typedef int (*PLUGIN_CREATE_ANIMATION)(const char* path, int deviceType, int device);
/*
Creates a `Chroma` animation in memory without creating a file. The `deviceType`
parameter uses `EChromaSDKDeviceTypeEnum` as an integer. The `device` parameter
uses `EChromaSDKDevice1DEnum` or `EChromaSDKDevice2DEnum` as an integer,
respective to the `deviceType`. Returns the animation id upon success.
Returns negative one upon failure. Returns the animation id upon success.
Returns negative one upon failure.
*/
typedef int (*PLUGIN_CREATE_ANIMATION_IN_MEMORY)(int deviceType, int device);
/*
Create a device specific effect.
*/
typedef RZRESULT (*PLUGIN_CREATE_EFFECT)(RZDEVICEID deviceId, ChromaSDK::EFFECT_TYPE effect, int* colors, int size, ChromaSDK::FChromaSDKGuid* effectId);
/*
Delete an effect given the effect id.
*/
typedef RZRESULT (*PLUGIN_DELETE_EFFECT)(const ChromaSDK::FChromaSDKGuid& effectId);
/*
Duplicate the first animation frame so that the animation length matches
the frame count. Animation is referenced by id.
*/
typedef void (*PLUGIN_DUPLICATE_FIRST_FRAME)(int animationId, int frameCount);
/*
Duplicate the first animation frame so that the animation length matches
the frame count. Animation is referenced by name.
*/
typedef void (*PLUGIN_DUPLICATE_FIRST_FRAME_NAME)(const char* path, int frameCount);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_DUPLICATE_FIRST_FRAME_NAME_D)(const char* path, double frameCount);
/*
Duplicate all the frames of the animation to double the animation length.
Frame 1 becomes frame 1 and 2. Frame 2 becomes frame 3 and 4. And so on.
The animation is referenced by id.
*/
typedef void (*PLUGIN_DUPLICATE_FRAMES)(int animationId);
/*
Duplicate all the frames of the animation to double the animation length.
Frame 1 becomes frame 1 and 2. Frame 2 becomes frame 3 and 4. And so on.
The animation is referenced by name.
*/
typedef void (*PLUGIN_DUPLICATE_FRAMES_NAME)(const char* path);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_DUPLICATE_FRAMES_NAME_D)(const char* path);
/*
Duplicate all the animation frames in reverse so that the animation plays
forwards and backwards. Animation is referenced by id.
*/
typedef void (*PLUGIN_DUPLICATE_MIRROR_FRAMES)(int animationId);
/*
Duplicate all the animation frames in reverse so that the animation plays
forwards and backwards. Animation is referenced by name.
*/
typedef void (*PLUGIN_DUPLICATE_MIRROR_FRAMES_NAME)(const char* path);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_DUPLICATE_MIRROR_FRAMES_NAME_D)(const char* path);
/*
Fade the animation to black starting at the fade frame index to the end
of the animation. Animation is referenced by id.
*/
typedef void (*PLUGIN_FADE_END_FRAMES)(int animationId, int fade);
/*
Fade the animation to black starting at the fade frame index to the end
of the animation. Animation is referenced by name.
*/
typedef void (*PLUGIN_FADE_END_FRAMES_NAME)(const char* path, int fade);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FADE_END_FRAMES_NAME_D)(const char* path, double fade);
/*
Fade the animation from black to full color starting at 0 to the fade frame
index. Animation is referenced by id.
*/
typedef void (*PLUGIN_FADE_START_FRAMES)(int animationId, int fade);
/*
Fade the animation from black to full color starting at 0 to the fade frame
index. Animation is referenced by name.
*/
typedef void (*PLUGIN_FADE_START_FRAMES_NAME)(const char* path, int fade);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FADE_START_FRAMES_NAME_D)(const char* path, double fade);
/*
Set the RGB value for all colors in the specified frame. Animation is referenced
by id.
*/
typedef void (*PLUGIN_FILL_COLOR)(int animationId, int frameId, int color);
/*
Set the RGB value for all colors for all frames. Animation is referenced
by id.
*/
typedef void (*PLUGIN_FILL_COLOR_ALL_FRAMES)(int animationId, int color);
/*
Set the RGB value for all colors for all frames. Animation is referenced
by name.
*/
typedef void (*PLUGIN_FILL_COLOR_ALL_FRAMES_NAME)(const char* path, int color);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_COLOR_ALL_FRAMES_NAME_D)(const char* path, double color);
/*
Set the RGB value for all colors for all frames. Use the range of 0 to 255
for red, green, and blue parameters. Animation is referenced by id.
*/
typedef void (*PLUGIN_FILL_COLOR_ALL_FRAMES_RGB)(int animationId, int red, int green, int blue);
/*
Set the RGB value for all colors for all frames. Use the range of 0 to 255
for red, green, and blue parameters. Animation is referenced by name.
*/
typedef void (*PLUGIN_FILL_COLOR_ALL_FRAMES_RGB_NAME)(const char* path, int red, int green, int blue);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_COLOR_ALL_FRAMES_RGB_NAME_D)(const char* path, double red, double green, double blue);
/*
Set the RGB value for all colors in the specified frame. Animation is referenced
by name.
*/
typedef void (*PLUGIN_FILL_COLOR_NAME)(const char* path, int frameId, int color);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_COLOR_NAME_D)(const char* path, double frameId, double color);
/*
Set the RGB value for all colors in the specified frame. Animation is referenced
by id.
*/
typedef void (*PLUGIN_FILL_COLOR_RGB)(int animationId, int frameId, int red, int green, int blue);
/*
Set the RGB value for all colors in the specified frame. Animation is referenced
by name.
*/
typedef void (*PLUGIN_FILL_COLOR_RGB_NAME)(const char* path, int frameId, int red, int green, int blue);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_COLOR_RGB_NAME_D)(const char* path, double frameId, double red, double green, double blue);
/*
This method will only update colors in the animation that are not already
set to black. Set the RGB value for a subset of colors in the specified
frame. Animation is referenced by id.
*/
typedef void (*PLUGIN_FILL_NON_ZERO_COLOR)(int animationId, int frameId, int color);
/*
This method will only update colors in the animation that are not already
set to black. Set the RGB value for a subset of colors for all frames.
Animation is referenced by id.
*/
typedef void (*PLUGIN_FILL_NON_ZERO_COLOR_ALL_FRAMES)(int animationId, int color);
/*
This method will only update colors in the animation that are not already
set to black. Set the RGB value for a subset of colors for all frames.
Animation is referenced by name.
*/
typedef void (*PLUGIN_FILL_NON_ZERO_COLOR_ALL_FRAMES_NAME)(const char* path, int color);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_NON_ZERO_COLOR_ALL_FRAMES_NAME_D)(const char* path, double color);
/*
This method will only update colors in the animation that are not already
set to black. Set the RGB value for a subset of colors for all frames.
Use the range of 0 to 255 for red, green, and blue parameters. Animation
is referenced by id.
*/
typedef void (*PLUGIN_FILL_NON_ZERO_COLOR_ALL_FRAMES_RGB)(int animationId, int red, int green, int blue);
/*
This method will only update colors in the animation that are not already
set to black. Set the RGB value for a subset of colors for all frames.
Use the range of 0 to 255 for red, green, and blue parameters. Animation
is referenced by name.
*/
typedef void (*PLUGIN_FILL_NON_ZERO_COLOR_ALL_FRAMES_RGB_NAME)(const char* path, int red, int green, int blue);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_NON_ZERO_COLOR_ALL_FRAMES_RGB_NAME_D)(const char* path, double red, double green, double blue);
/*
This method will only update colors in the animation that are not already
set to black. Set the RGB value for a subset of colors in the specified
frame. Animation is referenced by name.
*/
typedef void (*PLUGIN_FILL_NON_ZERO_COLOR_NAME)(const char* path, int frameId, int color);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_NON_ZERO_COLOR_NAME_D)(const char* path, double frameId, double color);
/*
This method will only update colors in the animation that are not already
set to black. Set the RGB value for a subset of colors in the specified
frame. Use the range of 0 to 255 for red, green, and blue parameters. Animation
is referenced by id.
*/
typedef void (*PLUGIN_FILL_NON_ZERO_COLOR_RGB)(int animationId, int frameId, int red, int green, int blue);
/*
This method will only update colors in the animation that are not already
set to black. Set the RGB value for a subset of colors in the specified
frame. Use the range of 0 to 255 for red, green, and blue parameters. Animation
is referenced by name.
*/
typedef void (*PLUGIN_FILL_NON_ZERO_COLOR_RGB_NAME)(const char* path, int frameId, int red, int green, int blue);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_NON_ZERO_COLOR_RGB_NAME_D)(const char* path, double frameId, double red, double green, double blue);
/*
Fill the frame with random RGB values for the given frame. Animation is
referenced by id.
*/
typedef void (*PLUGIN_FILL_RANDOM_COLORS)(int animationId, int frameId);
/*
Fill the frame with random RGB values for all frames. Animation is referenced
by id.
*/
typedef void (*PLUGIN_FILL_RANDOM_COLORS_ALL_FRAMES)(int animationId);
/*
Fill the frame with random RGB values for all frames. Animation is referenced
by name.
*/
typedef void (*PLUGIN_FILL_RANDOM_COLORS_ALL_FRAMES_NAME)(const char* path);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_RANDOM_COLORS_ALL_FRAMES_NAME_D)(const char* path);
/*
Fill the frame with random black and white values for the specified frame.
Animation is referenced by id.
*/
typedef void (*PLUGIN_FILL_RANDOM_COLORS_BLACK_AND_WHITE)(int animationId, int frameId);
/*
Fill the frame with random black and white values for all frames. Animation
is referenced by id.
*/
typedef void (*PLUGIN_FILL_RANDOM_COLORS_BLACK_AND_WHITE_ALL_FRAMES)(int animationId);
/*
Fill the frame with random black and white values for all frames. Animation
is referenced by name.
*/
typedef void (*PLUGIN_FILL_RANDOM_COLORS_BLACK_AND_WHITE_ALL_FRAMES_NAME)(const char* path);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_RANDOM_COLORS_BLACK_AND_WHITE_ALL_FRAMES_NAME_D)(const char* path);
/*
Fill the frame with random black and white values for the specified frame.
Animation is referenced by name.
*/
typedef void (*PLUGIN_FILL_RANDOM_COLORS_BLACK_AND_WHITE_NAME)(const char* path, int frameId);
/*
D suffix for limited data types.
*/
typedef double (*PLUGIN_FILL_RANDOM_COLORS_BLACK_AND_WHITE_NAME_D)(const char* path, double frameId);
/*