/
graphics.cpp
1910 lines (1910 loc) · 82.8 KB
/
graphics.cpp
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
#include <voidcsfml/graphics.h>
#include <SFML/Graphics.hpp>
using namespace sf;
void sfml_blendmode_allocate(void** result) {
*result = malloc(sizeof(BlendMode));
}
void sfml_blendmode_free(void* self) {
free(self);
}
void sfml_blendmode_initialize(void* self) {
new(self) BlendMode();
}
void sfml_blendmode_initialize_8xr8xrBw1(void* self, int source_factor, int destination_factor, int blend_equation) {
new(self) BlendMode((BlendMode::Factor)source_factor, (BlendMode::Factor)destination_factor, (BlendMode::Equation)blend_equation);
}
void sfml_blendmode_initialize_8xr8xrBw18xr8xrBw1(void* self, int color_source_factor, int color_destination_factor, int color_blend_equation, int alpha_source_factor, int alpha_destination_factor, int alpha_blend_equation) {
new(self) BlendMode((BlendMode::Factor)color_source_factor, (BlendMode::Factor)color_destination_factor, (BlendMode::Equation)color_blend_equation, (BlendMode::Factor)alpha_source_factor, (BlendMode::Factor)alpha_destination_factor, (BlendMode::Equation)alpha_blend_equation);
}
void sfml_blendmode_setcolorsrcfactor_8xr(void* self, int color_src_factor) {
((BlendMode*)self)->colorSrcFactor = (BlendMode::Factor)color_src_factor;
}
void sfml_blendmode_setcolordstfactor_8xr(void* self, int color_dst_factor) {
((BlendMode*)self)->colorDstFactor = (BlendMode::Factor)color_dst_factor;
}
void sfml_blendmode_setcolorequation_Bw1(void* self, int color_equation) {
((BlendMode*)self)->colorEquation = (BlendMode::Equation)color_equation;
}
void sfml_blendmode_setalphasrcfactor_8xr(void* self, int alpha_src_factor) {
((BlendMode*)self)->alphaSrcFactor = (BlendMode::Factor)alpha_src_factor;
}
void sfml_blendmode_setalphadstfactor_8xr(void* self, int alpha_dst_factor) {
((BlendMode*)self)->alphaDstFactor = (BlendMode::Factor)alpha_dst_factor;
}
void sfml_blendmode_setalphaequation_Bw1(void* self, int alpha_equation) {
((BlendMode*)self)->alphaEquation = (BlendMode::Equation)alpha_equation;
}
void sfml_operator_eq_PG5PG5(void* left, void* right, unsigned char* result) {
*(bool*)result = operator==(*(BlendMode*)left, *(BlendMode*)right);
}
void sfml_operator_ne_PG5PG5(void* left, void* right, unsigned char* result) {
*(bool*)result = operator!=(*(BlendMode*)left, *(BlendMode*)right);
}
void sfml_blendmode_initialize_PG5(void* self, void* copy) {
new(self) BlendMode(*(BlendMode*)copy);
}
void sfml_transform_allocate(void** result) {
*result = malloc(sizeof(Transform));
}
void sfml_transform_free(void* self) {
free(self);
}
void sfml_transform_initialize(void* self) {
new(self) Transform();
}
void sfml_transform_initialize_Bw9Bw9Bw9Bw9Bw9Bw9Bw9Bw9Bw9(void* self, float a00, float a01, float a02, float a10, float a11, float a12, float a20, float a21, float a22) {
new(self) Transform((float)a00, (float)a01, (float)a02, (float)a10, (float)a11, (float)a12, (float)a20, (float)a21, (float)a22);
}
void sfml_transform_getmatrix(void* self, float** result) {
*(float**)result = const_cast<float*>(((Transform*)self)->getMatrix());
}
void sfml_transform_getinverse(void* self, void* result) {
*(Transform*)result = ((Transform*)self)->getInverse();
}
void sfml_transform_transformpoint_Bw9Bw9(void* self, float x, float y, void* result) {
*(Vector2f*)result = ((Transform*)self)->transformPoint((float)x, (float)y);
}
void sfml_transform_transformpoint_UU2(void* self, void* point, void* result) {
*(Vector2f*)result = ((Transform*)self)->transformPoint(*(Vector2f*)point);
}
void sfml_transform_transformrect_WPZ(void* self, void* rectangle, void* result) {
*(FloatRect*)result = ((Transform*)self)->transformRect(*(FloatRect*)rectangle);
}
void sfml_transform_combine_FPe(void* self, void* transform, void* result) {
*(Transform*)result = ((Transform*)self)->combine(*(Transform*)transform);
}
void sfml_transform_translate_Bw9Bw9(void* self, float x, float y, void* result) {
*(Transform*)result = ((Transform*)self)->translate((float)x, (float)y);
}
void sfml_transform_translate_UU2(void* self, void* offset, void* result) {
*(Transform*)result = ((Transform*)self)->translate(*(Vector2f*)offset);
}
void sfml_transform_rotate_Bw9(void* self, float angle, void* result) {
*(Transform*)result = ((Transform*)self)->rotate((float)angle);
}
void sfml_transform_rotate_Bw9Bw9Bw9(void* self, float angle, float center_x, float center_y, void* result) {
*(Transform*)result = ((Transform*)self)->rotate((float)angle, (float)center_x, (float)center_y);
}
void sfml_transform_rotate_Bw9UU2(void* self, float angle, void* center, void* result) {
*(Transform*)result = ((Transform*)self)->rotate((float)angle, *(Vector2f*)center);
}
void sfml_transform_scale_Bw9Bw9(void* self, float scale_x, float scale_y, void* result) {
*(Transform*)result = ((Transform*)self)->scale((float)scale_x, (float)scale_y);
}
void sfml_transform_scale_Bw9Bw9Bw9Bw9(void* self, float scale_x, float scale_y, float center_x, float center_y, void* result) {
*(Transform*)result = ((Transform*)self)->scale((float)scale_x, (float)scale_y, (float)center_x, (float)center_y);
}
void sfml_transform_scale_UU2(void* self, void* factors, void* result) {
*(Transform*)result = ((Transform*)self)->scale(*(Vector2f*)factors);
}
void sfml_transform_scale_UU2UU2(void* self, void* factors, void* center, void* result) {
*(Transform*)result = ((Transform*)self)->scale(*(Vector2f*)factors, *(Vector2f*)center);
}
void sfml_operator_mul_FPeFPe(void* left, void* right, void* result) {
*(Transform*)result = operator*(*(Transform*)left, *(Transform*)right);
}
void sfml_operator_mul_FPeUU2(void* left, void* right, void* result) {
*(Vector2f*)result = operator*(*(Transform*)left, *(Vector2f*)right);
}
void sfml_operator_eq_FPeFPe(void* left, void* right, unsigned char* result) {
*(bool*)result = operator==(*(Transform*)left, *(Transform*)right);
}
void sfml_operator_ne_FPeFPe(void* left, void* right, unsigned char* result) {
*(bool*)result = operator!=(*(Transform*)left, *(Transform*)right);
}
void sfml_transform_initialize_FPe(void* self, void* copy) {
new(self) Transform(*(Transform*)copy);
}
void sfml_renderstates_allocate(void** result) {
*result = malloc(sizeof(RenderStates));
}
void sfml_renderstates_free(void* self) {
free(self);
}
void sfml_renderstates_initialize(void* self) {
new(self) RenderStates();
}
void sfml_renderstates_initialize_PG5(void* self, void* blend_mode) {
new(self) RenderStates(*(BlendMode*)blend_mode);
}
void sfml_renderstates_initialize_FPe(void* self, void* transform) {
new(self) RenderStates(*(Transform*)transform);
}
void sfml_renderstates_initialize_MXd(void* self, void* texture) {
new(self) RenderStates((Texture*)texture);
}
void sfml_renderstates_initialize_8P6(void* self, void* shader) {
new(self) RenderStates((Shader*)shader);
}
void sfml_renderstates_initialize_PG5FPeMXd8P6(void* self, void* blend_mode, void* transform, void* texture, void* shader) {
new(self) RenderStates(*(BlendMode*)blend_mode, *(Transform*)transform, (Texture*)texture, (Shader*)shader);
}
void sfml_renderstates_setblendmode_CPE(void* self, void* blend_mode) {
((RenderStates*)self)->blendMode = *(BlendMode*)blend_mode;
}
void sfml_renderstates_settransform_lbe(void* self, void* transform) {
((RenderStates*)self)->transform = *(Transform*)transform;
}
void sfml_renderstates_settexture_MXd(void* self, void* texture) {
((RenderStates*)self)->texture = (Texture*)texture;
}
void sfml_renderstates_setshader_8P6(void* self, void* shader) {
((RenderStates*)self)->shader = (Shader*)shader;
}
void sfml_renderstates_initialize_mi4(void* self, void* copy) {
new(self) RenderStates(*(RenderStates*)copy);
}
void sfml_drawable_allocate(void** result) {
*result = malloc(sizeof(Drawable));
}
void sfml_drawable_free(void* self) {
free(self);
}
void sfml_transformable_allocate(void** result) {
*result = malloc(sizeof(Transformable));
}
void sfml_transformable_free(void* self) {
free(self);
}
void sfml_transformable_initialize(void* self) {
new(self) Transformable();
}
void sfml_transformable_finalize(void* self) {
((Transformable*)self)->~Transformable();
}
void sfml_transformable_setposition_Bw9Bw9(void* self, float x, float y) {
((Transformable*)self)->setPosition((float)x, (float)y);
}
void sfml_transformable_setposition_UU2(void* self, void* position) {
((Transformable*)self)->setPosition(*(Vector2f*)position);
}
void sfml_transformable_setrotation_Bw9(void* self, float angle) {
((Transformable*)self)->setRotation((float)angle);
}
void sfml_transformable_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) {
((Transformable*)self)->setScale((float)factor_x, (float)factor_y);
}
void sfml_transformable_setscale_UU2(void* self, void* factors) {
((Transformable*)self)->setScale(*(Vector2f*)factors);
}
void sfml_transformable_setorigin_Bw9Bw9(void* self, float x, float y) {
((Transformable*)self)->setOrigin((float)x, (float)y);
}
void sfml_transformable_setorigin_UU2(void* self, void* origin) {
((Transformable*)self)->setOrigin(*(Vector2f*)origin);
}
void sfml_transformable_getposition(void* self, void* result) {
*(Vector2f*)result = ((Transformable*)self)->getPosition();
}
void sfml_transformable_getrotation(void* self, float* result) {
*(float*)result = ((Transformable*)self)->getRotation();
}
void sfml_transformable_getscale(void* self, void* result) {
*(Vector2f*)result = ((Transformable*)self)->getScale();
}
void sfml_transformable_getorigin(void* self, void* result) {
*(Vector2f*)result = ((Transformable*)self)->getOrigin();
}
void sfml_transformable_move_Bw9Bw9(void* self, float offset_x, float offset_y) {
((Transformable*)self)->move((float)offset_x, (float)offset_y);
}
void sfml_transformable_move_UU2(void* self, void* offset) {
((Transformable*)self)->move(*(Vector2f*)offset);
}
void sfml_transformable_rotate_Bw9(void* self, float angle) {
((Transformable*)self)->rotate((float)angle);
}
void sfml_transformable_scale_Bw9Bw9(void* self, float factor_x, float factor_y) {
((Transformable*)self)->scale((float)factor_x, (float)factor_y);
}
void sfml_transformable_scale_UU2(void* self, void* factor) {
((Transformable*)self)->scale(*(Vector2f*)factor);
}
void sfml_transformable_gettransform(void* self, void* result) {
*(Transform*)result = ((Transformable*)self)->getTransform();
}
void sfml_transformable_getinversetransform(void* self, void* result) {
*(Transform*)result = ((Transformable*)self)->getInverseTransform();
}
void sfml_transformable_initialize_dkg(void* self, void* copy) {
new(self) Transformable(*(Transformable*)copy);
}
void sfml_color_allocate(void** result) {
*result = malloc(sizeof(Color));
}
void sfml_color_free(void* self) {
free(self);
}
void sfml_color_initialize(void* self) {
new(self) Color();
}
void sfml_color_initialize_9yU9yU9yU9yU(void* self, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha) {
new(self) Color((Uint8)red, (Uint8)green, (Uint8)blue, (Uint8)alpha);
}
void sfml_color_initialize_saL(void* self, uint32_t color) {
new(self) Color((Uint32)color);
}
void sfml_color_tointeger(void* self, uint32_t* result) {
*(Uint32*)result = ((Color*)self)->toInteger();
}
void sfml_color_setr_9yU(void* self, uint8_t r) {
((Color*)self)->r = (Uint8)r;
}
void sfml_color_setg_9yU(void* self, uint8_t g) {
((Color*)self)->g = (Uint8)g;
}
void sfml_color_setb_9yU(void* self, uint8_t b) {
((Color*)self)->b = (Uint8)b;
}
void sfml_color_seta_9yU(void* self, uint8_t a) {
((Color*)self)->a = (Uint8)a;
}
void sfml_operator_eq_QVeQVe(void* left, void* right, unsigned char* result) {
*(bool*)result = operator==(*(Color*)left, *(Color*)right);
}
void sfml_operator_ne_QVeQVe(void* left, void* right, unsigned char* result) {
*(bool*)result = operator!=(*(Color*)left, *(Color*)right);
}
void sfml_operator_add_QVeQVe(void* left, void* right, void* result) {
*(Color*)result = operator+(*(Color*)left, *(Color*)right);
}
void sfml_operator_sub_QVeQVe(void* left, void* right, void* result) {
*(Color*)result = operator-(*(Color*)left, *(Color*)right);
}
void sfml_operator_mul_QVeQVe(void* left, void* right, void* result) {
*(Color*)result = operator*(*(Color*)left, *(Color*)right);
}
void sfml_color_initialize_QVe(void* self, void* copy) {
new(self) Color(*(Color*)copy);
}
void sfml_vertex_allocate(void** result) {
*result = malloc(sizeof(Vertex));
}
void sfml_vertex_free(void* self) {
free(self);
}
void sfml_vertex_initialize(void* self) {
new(self) Vertex();
}
void sfml_vertex_initialize_UU2(void* self, void* position) {
new(self) Vertex(*(Vector2f*)position);
}
void sfml_vertex_initialize_UU2QVe(void* self, void* position, void* color) {
new(self) Vertex(*(Vector2f*)position, *(Color*)color);
}
void sfml_vertex_initialize_UU2UU2(void* self, void* position, void* tex_coords) {
new(self) Vertex(*(Vector2f*)position, *(Vector2f*)tex_coords);
}
void sfml_vertex_initialize_UU2QVeUU2(void* self, void* position, void* color, void* tex_coords) {
new(self) Vertex(*(Vector2f*)position, *(Color*)color, *(Vector2f*)tex_coords);
}
void sfml_vertex_setposition_llt(void* self, void* position) {
((Vertex*)self)->position = *(Vector2f*)position;
}
void sfml_vertex_setcolor_9qU(void* self, void* color) {
((Vertex*)self)->color = *(Color*)color;
}
void sfml_vertex_settexcoords_llt(void* self, void* tex_coords) {
((Vertex*)self)->texCoords = *(Vector2f*)tex_coords;
}
void sfml_vertex_initialize_Y3J(void* self, void* copy) {
new(self) Vertex(*(Vertex*)copy);
}
void sfml_vertexarray_allocate(void** result) {
*result = malloc(sizeof(VertexArray));
}
void sfml_vertexarray_finalize(void* self) {
((VertexArray*)self)->~VertexArray();
}
void sfml_vertexarray_free(void* self) {
free(self);
}
void sfml_vertexarray_initialize(void* self) {
new(self) VertexArray();
}
void sfml_vertexarray_initialize_u9wvgv(void* self, int type, size_t vertex_count) {
new(self) VertexArray((PrimitiveType)type, (std::size_t)vertex_count);
}
void sfml_vertexarray_getvertexcount(void* self, size_t* result) {
*(std::size_t*)result = ((VertexArray*)self)->getVertexCount();
}
void sfml_vertexarray_operator_indexset_vgvRos(void* self, size_t index, void* value) {
((VertexArray*)self)->operator[]((std::size_t)index) = *(Vertex*)value;
}
void sfml_vertexarray_operator_index_vgv(void* self, size_t index, void* result) {
*(Vertex*)result = ((VertexArray*)self)->operator[]((std::size_t)index);
}
void sfml_vertexarray_clear(void* self) {
((VertexArray*)self)->clear();
}
void sfml_vertexarray_resize_vgv(void* self, size_t vertex_count) {
((VertexArray*)self)->resize((std::size_t)vertex_count);
}
void sfml_vertexarray_append_Y3J(void* self, void* vertex) {
((VertexArray*)self)->append(*(Vertex*)vertex);
}
void sfml_vertexarray_setprimitivetype_u9w(void* self, int type) {
((VertexArray*)self)->setPrimitiveType((PrimitiveType)type);
}
void sfml_vertexarray_getprimitivetype(void* self, int* result) {
*(PrimitiveType*)result = ((VertexArray*)self)->getPrimitiveType();
}
void sfml_vertexarray_getbounds(void* self, void* result) {
*(FloatRect*)result = ((VertexArray*)self)->getBounds();
}
void sfml_vertexarray_draw_kb9RoT(void* self, void* target, void* states) {
((RenderTexture*)target)->draw(*(VertexArray*)self, *(RenderStates*)states);
}
void sfml_vertexarray_draw_fqURoT(void* self, void* target, void* states) {
((RenderWindow*)target)->draw(*(VertexArray*)self, *(RenderStates*)states);
}
void sfml_vertexarray_draw_Xk1RoT(void* self, void* target, void* states) {
((RenderTarget*)target)->draw(*(VertexArray*)self, *(RenderStates*)states);
}
void sfml_vertexarray_initialize_EXB(void* self, void* copy) {
new(self) VertexArray(*(VertexArray*)copy);
}
void (*_sfml_shape_getpointcount_callback)(void*, size_t*) = 0;
void sfml_shape_getpointcount_callback(void (*callback)(void*, size_t*)) {
_sfml_shape_getpointcount_callback = callback;
}
void (*_sfml_shape_getpoint_callback)(void*, size_t, void*) = 0;
void sfml_shape_getpoint_callback(void (*callback)(void*, size_t, void*)) {
_sfml_shape_getpoint_callback = callback;
}
class _Shape : public sf::Shape {
public:
void* parent;
virtual std::size_t getPointCount() const {
std::size_t result;
_sfml_shape_getpointcount_callback(parent, (size_t*)&result);
return result;
}
virtual Vector2f getPoint(std::size_t index) const {
Vector2f result;
_sfml_shape_getpoint_callback(parent, (size_t)index, &result);
return result;
}
using Shape::update;
};
void sfml_shape_parent(void* self, void* parent) {
((_Shape*)self)->parent = parent;
}
void sfml_shape_allocate(void** result) {
*result = malloc(sizeof(_Shape));
}
void sfml_shape_free(void* self) {
free(self);
}
void sfml_shape_finalize(void* self) {
((_Shape*)self)->~_Shape();
}
void sfml_shape_settexture_MXdGZq(void* self, void* texture, unsigned char reset_rect) {
((_Shape*)self)->setTexture((Texture*)texture, reset_rect != 0);
}
void sfml_shape_settexturerect_2k1(void* self, void* rect) {
((_Shape*)self)->setTextureRect(*(IntRect*)rect);
}
void sfml_shape_setfillcolor_QVe(void* self, void* color) {
((_Shape*)self)->setFillColor(*(Color*)color);
}
void sfml_shape_setoutlinecolor_QVe(void* self, void* color) {
((_Shape*)self)->setOutlineColor(*(Color*)color);
}
void sfml_shape_setoutlinethickness_Bw9(void* self, float thickness) {
((_Shape*)self)->setOutlineThickness((float)thickness);
}
void sfml_shape_gettexture(void* self, void** result) {
*(Texture**)result = const_cast<Texture*>(((_Shape*)self)->getTexture());
}
void sfml_shape_gettexturerect(void* self, void* result) {
*(IntRect*)result = ((_Shape*)self)->getTextureRect();
}
void sfml_shape_getfillcolor(void* self, void* result) {
*(Color*)result = ((_Shape*)self)->getFillColor();
}
void sfml_shape_getoutlinecolor(void* self, void* result) {
*(Color*)result = ((_Shape*)self)->getOutlineColor();
}
void sfml_shape_getoutlinethickness(void* self, float* result) {
*(float*)result = ((_Shape*)self)->getOutlineThickness();
}
void sfml_shape_getlocalbounds(void* self, void* result) {
*(FloatRect*)result = ((_Shape*)self)->getLocalBounds();
}
void sfml_shape_getglobalbounds(void* self, void* result) {
*(FloatRect*)result = ((_Shape*)self)->getGlobalBounds();
}
void sfml_shape_initialize(void* self) {
new(self) _Shape();
}
void sfml_shape_update(void* self) {
((_Shape*)self)->update();
}
void sfml_shape_setposition_Bw9Bw9(void* self, float x, float y) {
((_Shape*)self)->setPosition((float)x, (float)y);
}
void sfml_shape_setposition_UU2(void* self, void* position) {
((_Shape*)self)->setPosition(*(Vector2f*)position);
}
void sfml_shape_setrotation_Bw9(void* self, float angle) {
((_Shape*)self)->setRotation((float)angle);
}
void sfml_shape_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) {
((_Shape*)self)->setScale((float)factor_x, (float)factor_y);
}
void sfml_shape_setscale_UU2(void* self, void* factors) {
((_Shape*)self)->setScale(*(Vector2f*)factors);
}
void sfml_shape_setorigin_Bw9Bw9(void* self, float x, float y) {
((_Shape*)self)->setOrigin((float)x, (float)y);
}
void sfml_shape_setorigin_UU2(void* self, void* origin) {
((_Shape*)self)->setOrigin(*(Vector2f*)origin);
}
void sfml_shape_getposition(void* self, void* result) {
*(Vector2f*)result = ((_Shape*)self)->getPosition();
}
void sfml_shape_getrotation(void* self, float* result) {
*(float*)result = ((_Shape*)self)->getRotation();
}
void sfml_shape_getscale(void* self, void* result) {
*(Vector2f*)result = ((_Shape*)self)->getScale();
}
void sfml_shape_getorigin(void* self, void* result) {
*(Vector2f*)result = ((_Shape*)self)->getOrigin();
}
void sfml_shape_move_Bw9Bw9(void* self, float offset_x, float offset_y) {
((_Shape*)self)->move((float)offset_x, (float)offset_y);
}
void sfml_shape_move_UU2(void* self, void* offset) {
((_Shape*)self)->move(*(Vector2f*)offset);
}
void sfml_shape_rotate_Bw9(void* self, float angle) {
((_Shape*)self)->rotate((float)angle);
}
void sfml_shape_scale_Bw9Bw9(void* self, float factor_x, float factor_y) {
((_Shape*)self)->scale((float)factor_x, (float)factor_y);
}
void sfml_shape_scale_UU2(void* self, void* factor) {
((_Shape*)self)->scale(*(Vector2f*)factor);
}
void sfml_shape_gettransform(void* self, void* result) {
*(Transform*)result = ((_Shape*)self)->getTransform();
}
void sfml_shape_getinversetransform(void* self, void* result) {
*(Transform*)result = ((_Shape*)self)->getInverseTransform();
}
void sfml_shape_draw_kb9RoT(void* self, void* target, void* states) {
((RenderTexture*)target)->draw(*(_Shape*)self, *(RenderStates*)states);
}
void sfml_shape_draw_fqURoT(void* self, void* target, void* states) {
((RenderWindow*)target)->draw(*(_Shape*)self, *(RenderStates*)states);
}
void sfml_shape_draw_Xk1RoT(void* self, void* target, void* states) {
((RenderTarget*)target)->draw(*(_Shape*)self, *(RenderStates*)states);
}
void sfml_shape_initialize_r5K(void* self, void* copy) {
new(self) _Shape(*(_Shape*)copy);
}
void sfml_circleshape_allocate(void** result) {
*result = malloc(sizeof(CircleShape));
}
void sfml_circleshape_finalize(void* self) {
((CircleShape*)self)->~CircleShape();
}
void sfml_circleshape_free(void* self) {
free(self);
}
void sfml_circleshape_initialize_Bw9vgv(void* self, float radius, size_t point_count) {
new(self) CircleShape((float)radius, (std::size_t)point_count);
}
void sfml_circleshape_setradius_Bw9(void* self, float radius) {
((CircleShape*)self)->setRadius((float)radius);
}
void sfml_circleshape_getradius(void* self, float* result) {
*(float*)result = ((CircleShape*)self)->getRadius();
}
void sfml_circleshape_setpointcount_vgv(void* self, size_t count) {
((CircleShape*)self)->setPointCount((std::size_t)count);
}
void sfml_circleshape_getpointcount(void* self, size_t* result) {
*(std::size_t*)result = ((CircleShape*)self)->getPointCount();
}
void sfml_circleshape_getpoint_vgv(void* self, size_t index, void* result) {
*(Vector2f*)result = ((CircleShape*)self)->getPoint((std::size_t)index);
}
void sfml_circleshape_settexture_MXdGZq(void* self, void* texture, unsigned char reset_rect) {
((CircleShape*)self)->setTexture((Texture*)texture, reset_rect != 0);
}
void sfml_circleshape_settexturerect_2k1(void* self, void* rect) {
((CircleShape*)self)->setTextureRect(*(IntRect*)rect);
}
void sfml_circleshape_setfillcolor_QVe(void* self, void* color) {
((CircleShape*)self)->setFillColor(*(Color*)color);
}
void sfml_circleshape_setoutlinecolor_QVe(void* self, void* color) {
((CircleShape*)self)->setOutlineColor(*(Color*)color);
}
void sfml_circleshape_setoutlinethickness_Bw9(void* self, float thickness) {
((CircleShape*)self)->setOutlineThickness((float)thickness);
}
void sfml_circleshape_gettexture(void* self, void** result) {
*(Texture**)result = const_cast<Texture*>(((CircleShape*)self)->getTexture());
}
void sfml_circleshape_gettexturerect(void* self, void* result) {
*(IntRect*)result = ((CircleShape*)self)->getTextureRect();
}
void sfml_circleshape_getfillcolor(void* self, void* result) {
*(Color*)result = ((CircleShape*)self)->getFillColor();
}
void sfml_circleshape_getoutlinecolor(void* self, void* result) {
*(Color*)result = ((CircleShape*)self)->getOutlineColor();
}
void sfml_circleshape_getoutlinethickness(void* self, float* result) {
*(float*)result = ((CircleShape*)self)->getOutlineThickness();
}
void sfml_circleshape_getlocalbounds(void* self, void* result) {
*(FloatRect*)result = ((CircleShape*)self)->getLocalBounds();
}
void sfml_circleshape_getglobalbounds(void* self, void* result) {
*(FloatRect*)result = ((CircleShape*)self)->getGlobalBounds();
}
void sfml_circleshape_setposition_Bw9Bw9(void* self, float x, float y) {
((CircleShape*)self)->setPosition((float)x, (float)y);
}
void sfml_circleshape_setposition_UU2(void* self, void* position) {
((CircleShape*)self)->setPosition(*(Vector2f*)position);
}
void sfml_circleshape_setrotation_Bw9(void* self, float angle) {
((CircleShape*)self)->setRotation((float)angle);
}
void sfml_circleshape_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) {
((CircleShape*)self)->setScale((float)factor_x, (float)factor_y);
}
void sfml_circleshape_setscale_UU2(void* self, void* factors) {
((CircleShape*)self)->setScale(*(Vector2f*)factors);
}
void sfml_circleshape_setorigin_Bw9Bw9(void* self, float x, float y) {
((CircleShape*)self)->setOrigin((float)x, (float)y);
}
void sfml_circleshape_setorigin_UU2(void* self, void* origin) {
((CircleShape*)self)->setOrigin(*(Vector2f*)origin);
}
void sfml_circleshape_getposition(void* self, void* result) {
*(Vector2f*)result = ((CircleShape*)self)->getPosition();
}
void sfml_circleshape_getrotation(void* self, float* result) {
*(float*)result = ((CircleShape*)self)->getRotation();
}
void sfml_circleshape_getscale(void* self, void* result) {
*(Vector2f*)result = ((CircleShape*)self)->getScale();
}
void sfml_circleshape_getorigin(void* self, void* result) {
*(Vector2f*)result = ((CircleShape*)self)->getOrigin();
}
void sfml_circleshape_move_Bw9Bw9(void* self, float offset_x, float offset_y) {
((CircleShape*)self)->move((float)offset_x, (float)offset_y);
}
void sfml_circleshape_move_UU2(void* self, void* offset) {
((CircleShape*)self)->move(*(Vector2f*)offset);
}
void sfml_circleshape_rotate_Bw9(void* self, float angle) {
((CircleShape*)self)->rotate((float)angle);
}
void sfml_circleshape_scale_Bw9Bw9(void* self, float factor_x, float factor_y) {
((CircleShape*)self)->scale((float)factor_x, (float)factor_y);
}
void sfml_circleshape_scale_UU2(void* self, void* factor) {
((CircleShape*)self)->scale(*(Vector2f*)factor);
}
void sfml_circleshape_gettransform(void* self, void* result) {
*(Transform*)result = ((CircleShape*)self)->getTransform();
}
void sfml_circleshape_getinversetransform(void* self, void* result) {
*(Transform*)result = ((CircleShape*)self)->getInverseTransform();
}
void sfml_circleshape_draw_kb9RoT(void* self, void* target, void* states) {
((RenderTexture*)target)->draw(*(CircleShape*)self, *(RenderStates*)states);
}
void sfml_circleshape_draw_fqURoT(void* self, void* target, void* states) {
((RenderWindow*)target)->draw(*(CircleShape*)self, *(RenderStates*)states);
}
void sfml_circleshape_draw_Xk1RoT(void* self, void* target, void* states) {
((RenderTarget*)target)->draw(*(CircleShape*)self, *(RenderStates*)states);
}
void sfml_circleshape_initialize_Ii7(void* self, void* copy) {
new(self) CircleShape(*(CircleShape*)copy);
}
void sfml_convexshape_allocate(void** result) {
*result = malloc(sizeof(ConvexShape));
}
void sfml_convexshape_finalize(void* self) {
((ConvexShape*)self)->~ConvexShape();
}
void sfml_convexshape_free(void* self) {
free(self);
}
void sfml_convexshape_initialize_vgv(void* self, size_t point_count) {
new(self) ConvexShape((std::size_t)point_count);
}
void sfml_convexshape_setpointcount_vgv(void* self, size_t count) {
((ConvexShape*)self)->setPointCount((std::size_t)count);
}
void sfml_convexshape_getpointcount(void* self, size_t* result) {
*(std::size_t*)result = ((ConvexShape*)self)->getPointCount();
}
void sfml_convexshape_setpoint_vgvUU2(void* self, size_t index, void* point) {
((ConvexShape*)self)->setPoint((std::size_t)index, *(Vector2f*)point);
}
void sfml_convexshape_getpoint_vgv(void* self, size_t index, void* result) {
*(Vector2f*)result = ((ConvexShape*)self)->getPoint((std::size_t)index);
}
void sfml_convexshape_settexture_MXdGZq(void* self, void* texture, unsigned char reset_rect) {
((ConvexShape*)self)->setTexture((Texture*)texture, reset_rect != 0);
}
void sfml_convexshape_settexturerect_2k1(void* self, void* rect) {
((ConvexShape*)self)->setTextureRect(*(IntRect*)rect);
}
void sfml_convexshape_setfillcolor_QVe(void* self, void* color) {
((ConvexShape*)self)->setFillColor(*(Color*)color);
}
void sfml_convexshape_setoutlinecolor_QVe(void* self, void* color) {
((ConvexShape*)self)->setOutlineColor(*(Color*)color);
}
void sfml_convexshape_setoutlinethickness_Bw9(void* self, float thickness) {
((ConvexShape*)self)->setOutlineThickness((float)thickness);
}
void sfml_convexshape_gettexture(void* self, void** result) {
*(Texture**)result = const_cast<Texture*>(((ConvexShape*)self)->getTexture());
}
void sfml_convexshape_gettexturerect(void* self, void* result) {
*(IntRect*)result = ((ConvexShape*)self)->getTextureRect();
}
void sfml_convexshape_getfillcolor(void* self, void* result) {
*(Color*)result = ((ConvexShape*)self)->getFillColor();
}
void sfml_convexshape_getoutlinecolor(void* self, void* result) {
*(Color*)result = ((ConvexShape*)self)->getOutlineColor();
}
void sfml_convexshape_getoutlinethickness(void* self, float* result) {
*(float*)result = ((ConvexShape*)self)->getOutlineThickness();
}
void sfml_convexshape_getlocalbounds(void* self, void* result) {
*(FloatRect*)result = ((ConvexShape*)self)->getLocalBounds();
}
void sfml_convexshape_getglobalbounds(void* self, void* result) {
*(FloatRect*)result = ((ConvexShape*)self)->getGlobalBounds();
}
void sfml_convexshape_setposition_Bw9Bw9(void* self, float x, float y) {
((ConvexShape*)self)->setPosition((float)x, (float)y);
}
void sfml_convexshape_setposition_UU2(void* self, void* position) {
((ConvexShape*)self)->setPosition(*(Vector2f*)position);
}
void sfml_convexshape_setrotation_Bw9(void* self, float angle) {
((ConvexShape*)self)->setRotation((float)angle);
}
void sfml_convexshape_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) {
((ConvexShape*)self)->setScale((float)factor_x, (float)factor_y);
}
void sfml_convexshape_setscale_UU2(void* self, void* factors) {
((ConvexShape*)self)->setScale(*(Vector2f*)factors);
}
void sfml_convexshape_setorigin_Bw9Bw9(void* self, float x, float y) {
((ConvexShape*)self)->setOrigin((float)x, (float)y);
}
void sfml_convexshape_setorigin_UU2(void* self, void* origin) {
((ConvexShape*)self)->setOrigin(*(Vector2f*)origin);
}
void sfml_convexshape_getposition(void* self, void* result) {
*(Vector2f*)result = ((ConvexShape*)self)->getPosition();
}
void sfml_convexshape_getrotation(void* self, float* result) {
*(float*)result = ((ConvexShape*)self)->getRotation();
}
void sfml_convexshape_getscale(void* self, void* result) {
*(Vector2f*)result = ((ConvexShape*)self)->getScale();
}
void sfml_convexshape_getorigin(void* self, void* result) {
*(Vector2f*)result = ((ConvexShape*)self)->getOrigin();
}
void sfml_convexshape_move_Bw9Bw9(void* self, float offset_x, float offset_y) {
((ConvexShape*)self)->move((float)offset_x, (float)offset_y);
}
void sfml_convexshape_move_UU2(void* self, void* offset) {
((ConvexShape*)self)->move(*(Vector2f*)offset);
}
void sfml_convexshape_rotate_Bw9(void* self, float angle) {
((ConvexShape*)self)->rotate((float)angle);
}
void sfml_convexshape_scale_Bw9Bw9(void* self, float factor_x, float factor_y) {
((ConvexShape*)self)->scale((float)factor_x, (float)factor_y);
}
void sfml_convexshape_scale_UU2(void* self, void* factor) {
((ConvexShape*)self)->scale(*(Vector2f*)factor);
}
void sfml_convexshape_gettransform(void* self, void* result) {
*(Transform*)result = ((ConvexShape*)self)->getTransform();
}
void sfml_convexshape_getinversetransform(void* self, void* result) {
*(Transform*)result = ((ConvexShape*)self)->getInverseTransform();
}
void sfml_convexshape_draw_kb9RoT(void* self, void* target, void* states) {
((RenderTexture*)target)->draw(*(ConvexShape*)self, *(RenderStates*)states);
}
void sfml_convexshape_draw_fqURoT(void* self, void* target, void* states) {
((RenderWindow*)target)->draw(*(ConvexShape*)self, *(RenderStates*)states);
}
void sfml_convexshape_draw_Xk1RoT(void* self, void* target, void* states) {
((RenderTarget*)target)->draw(*(ConvexShape*)self, *(RenderStates*)states);
}
void sfml_convexshape_initialize_Ydx(void* self, void* copy) {
new(self) ConvexShape(*(ConvexShape*)copy);
}
void sfml_glyph_allocate(void** result) {
*result = malloc(sizeof(Glyph));
}
void sfml_glyph_free(void* self) {
free(self);
}
void sfml_glyph_initialize(void* self) {
new(self) Glyph();
}
void sfml_glyph_setadvance_Bw9(void* self, float advance) {
((Glyph*)self)->advance = (float)advance;
}
void sfml_glyph_setbounds_5MC(void* self, void* bounds) {
((Glyph*)self)->bounds = *(FloatRect*)bounds;
}
void sfml_glyph_settexturerect_POq(void* self, void* texture_rect) {
((Glyph*)self)->textureRect = *(IntRect*)texture_rect;
}
void sfml_glyph_initialize_UlF(void* self, void* copy) {
new(self) Glyph(*(Glyph*)copy);
}
void sfml_image_allocate(void** result) {
*result = malloc(sizeof(Image));
}
void sfml_image_free(void* self) {
free(self);
}
void sfml_image_initialize(void* self) {
new(self) Image();
}
void sfml_image_finalize(void* self) {
((Image*)self)->~Image();
}
void sfml_image_create_emSemSQVe(void* self, unsigned int width, unsigned int height, void* color) {
((Image*)self)->create((unsigned int)width, (unsigned int)height, *(Color*)color);
}
void sfml_image_create_emSemS843(void* self, unsigned int width, unsigned int height, uint8_t* pixels) {
((Image*)self)->create((unsigned int)width, (unsigned int)height, (Uint8 const*)pixels);
}
void sfml_image_loadfromfile_zkC(void* self, size_t filename_size, char* filename, unsigned char* result) {
*(bool*)result = ((Image*)self)->loadFromFile(std::string(filename, filename_size));
}
void sfml_image_loadfrommemory_5h8vgv(void* self, void* data, size_t size, unsigned char* result) {
*(bool*)result = ((Image*)self)->loadFromMemory(data, size);
}
void sfml_image_loadfromstream_PO0(void* self, void* stream, unsigned char* result) {
*(bool*)result = ((Image*)self)->loadFromStream(*(InputStream*)stream);
}
void sfml_image_savetofile_zkC(void* self, size_t filename_size, char* filename, unsigned char* result) {
*(bool*)result = ((Image*)self)->saveToFile(std::string(filename, filename_size));
}
void sfml_image_getsize(void* self, void* result) {
*(Vector2u*)result = ((Image*)self)->getSize();
}
void sfml_image_createmaskfromcolor_QVe9yU(void* self, void* color, uint8_t alpha) {
((Image*)self)->createMaskFromColor(*(Color*)color, (Uint8)alpha);
}
void sfml_image_copy_dptemSemS2k1GZq(void* self, void* source, unsigned int dest_x, unsigned int dest_y, void* source_rect, unsigned char apply_alpha) {
((Image*)self)->copy(*(Image*)source, (unsigned int)dest_x, (unsigned int)dest_y, *(IntRect*)source_rect, apply_alpha != 0);
}
void sfml_image_setpixel_emSemSQVe(void* self, unsigned int x, unsigned int y, void* color) {
((Image*)self)->setPixel((unsigned int)x, (unsigned int)y, *(Color*)color);
}
void sfml_image_getpixel_emSemS(void* self, unsigned int x, unsigned int y, void* result) {
*(Color*)result = ((Image*)self)->getPixel((unsigned int)x, (unsigned int)y);
}
void sfml_image_getpixelsptr(void* self, uint8_t** result) {
*(Uint8**)result = const_cast<Uint8*>(((Image*)self)->getPixelsPtr());
}
void sfml_image_fliphorizontally(void* self) {
((Image*)self)->flipHorizontally();
}
void sfml_image_flipvertically(void* self) {
((Image*)self)->flipVertically();
}
void sfml_image_initialize_dpt(void* self, void* copy) {
new(self) Image(*(Image*)copy);
}
void sfml_texture_allocate(void** result) {
*result = malloc(sizeof(Texture));
}
void sfml_texture_free(void* self) {
free(self);
}
void sfml_texture_initialize(void* self) {
new(self) Texture();
}
void sfml_texture_finalize(void* self) {
((Texture*)self)->~Texture();
}
void sfml_texture_create_emSemS(void* self, unsigned int width, unsigned int height, unsigned char* result) {
*(bool*)result = ((Texture*)self)->create((unsigned int)width, (unsigned int)height);
}
void sfml_texture_loadfromfile_zkC2k1(void* self, size_t filename_size, char* filename, void* area, unsigned char* result) {
*(bool*)result = ((Texture*)self)->loadFromFile(std::string(filename, filename_size), *(IntRect*)area);
}
void sfml_texture_loadfrommemory_5h8vgv2k1(void* self, void* data, size_t size, void* area, unsigned char* result) {
*(bool*)result = ((Texture*)self)->loadFromMemory(data, size, *(IntRect*)area);
}
void sfml_texture_loadfromstream_PO02k1(void* self, void* stream, void* area, unsigned char* result) {
*(bool*)result = ((Texture*)self)->loadFromStream(*(InputStream*)stream, *(IntRect*)area);
}
void sfml_texture_loadfromimage_dpt2k1(void* self, void* image, void* area, unsigned char* result) {
*(bool*)result = ((Texture*)self)->loadFromImage(*(Image*)image, *(IntRect*)area);
}
void sfml_texture_getsize(void* self, void* result) {
*(Vector2u*)result = ((Texture*)self)->getSize();
}
void sfml_texture_copytoimage(void* self, void* result) {
*(Image*)result = ((Texture*)self)->copyToImage();
}
void sfml_texture_update_843(void* self, uint8_t* pixels) {
((Texture*)self)->update((Uint8 const*)pixels);
}
void sfml_texture_update_843emSemSemSemS(void* self, uint8_t* pixels, unsigned int width, unsigned int height, unsigned int x, unsigned int y) {
((Texture*)self)->update((Uint8 const*)pixels, (unsigned int)width, (unsigned int)height, (unsigned int)x, (unsigned int)y);
}
void sfml_texture_update_DJb(void* self, void* texture) {
((Texture*)self)->update(*(Texture*)texture);
}
void sfml_texture_update_DJbemSemS(void* self, void* texture, unsigned int x, unsigned int y) {
((Texture*)self)->update(*(Texture*)texture, (unsigned int)x, (unsigned int)y);
}
void sfml_texture_update_dpt(void* self, void* image) {
((Texture*)self)->update(*(Image*)image);
}
void sfml_texture_update_dptemSemS(void* self, void* image, unsigned int x, unsigned int y) {
((Texture*)self)->update(*(Image*)image, (unsigned int)x, (unsigned int)y);
}
void sfml_texture_update_JRh(void* self, void* window) {
((Texture*)self)->update(*(Window*)window);
}
void sfml_texture_update_JRhemSemS(void* self, void* window, unsigned int x, unsigned int y) {
((Texture*)self)->update(*(Window*)window, (unsigned int)x, (unsigned int)y);
}
void sfml_texture_setsmooth_GZq(void* self, unsigned char smooth) {
((Texture*)self)->setSmooth(smooth != 0);
}
void sfml_texture_issmooth(void* self, unsigned char* result) {
*(bool*)result = ((Texture*)self)->isSmooth();
}
void sfml_texture_setsrgb_GZq(void* self, unsigned char s_rgb) {
((Texture*)self)->setSrgb(s_rgb != 0);
}
void sfml_texture_issrgb(void* self, unsigned char* result) {
*(bool*)result = ((Texture*)self)->isSrgb();
}
void sfml_texture_setrepeated_GZq(void* self, unsigned char repeated) {
((Texture*)self)->setRepeated(repeated != 0);
}
void sfml_texture_isrepeated(void* self, unsigned char* result) {
*(bool*)result = ((Texture*)self)->isRepeated();
}
void sfml_texture_generatemipmap(void* self, unsigned char* result) {
*(bool*)result = ((Texture*)self)->generateMipmap();
}
void sfml_texture_swap_zUT(void* self, void* right) {
((Texture*)self)->swap(*(Texture*)right);
}
void sfml_texture_getnativehandle(void* self, unsigned int* result) {
*(unsigned int*)result = ((Texture*)self)->getNativeHandle();
}
void sfml_texture_bind_MXdK9j(void* texture, int coordinate_type) {
Texture::bind((Texture*)texture, (Texture::CoordinateType)coordinate_type);
}
void sfml_texture_getmaximumsize(unsigned int* result) {
*(unsigned int*)result = Texture::getMaximumSize();
}
void sfml_texture_initialize_DJb(void* self, void* copy) {
new(self) Texture(*(Texture*)copy);
}
void sfml_font_allocate(void** result) {
*result = malloc(sizeof(Font));
}
void sfml_font_free(void* self) {
free(self);
}
void sfml_font_info_allocate(void** result) {
*result = malloc(sizeof(Font::Info));
}
void sfml_font_info_initialize(void* self) {
new(self) Font::Info();
}
void sfml_font_info_finalize(void* self) {
((Font::Info*)self)->~Info();
}
void sfml_font_info_free(void* self) {
free(self);
}
void sfml_font_info_getfamily(void* self, char** result) {
static std::string str;
str = ((Font::Info*)self)->family;
*result = const_cast<char*>(str.c_str());
}
void sfml_font_info_setfamily_Fzm(void* self, size_t family_size, char* family) {
((Font::Info*)self)->family = std::string(family, family_size);
}
void sfml_font_info_initialize_HPc(void* self, void* copy) {
new(self) Font::Info(*(Font::Info*)copy);
}
void sfml_font_initialize(void* self) {
new(self) Font();
}
void sfml_font_finalize(void* self) {
((Font*)self)->~Font();
}
void sfml_font_loadfromfile_zkC(void* self, size_t filename_size, char* filename, unsigned char* result) {
*(bool*)result = ((Font*)self)->loadFromFile(std::string(filename, filename_size));
}
void sfml_font_loadfrommemory_5h8vgv(void* self, void* data, size_t size_in_bytes, unsigned char* result) {
*(bool*)result = ((Font*)self)->loadFromMemory(data, size_in_bytes);
}
void sfml_font_loadfromstream_PO0(void* self, void* stream, unsigned char* result) {
*(bool*)result = ((Font*)self)->loadFromStream(*(InputStream*)stream);
}
void sfml_font_getinfo(void* self, void** result) {
*(Font::Info**)result = const_cast<Font::Info*>(&((Font*)self)->getInfo());
}
void sfml_font_getglyph_saLemSGZqBw9(void* self, uint32_t code_point, unsigned int character_size, unsigned char bold, float outline_thickness, void* result) {
*(Glyph*)result = ((Font*)self)->getGlyph((Uint32)code_point, (unsigned int)character_size, bold != 0, (float)outline_thickness);
}
void sfml_font_getkerning_saLsaLemS(void* self, uint32_t first, uint32_t second, unsigned int character_size, float* result) {
*(float*)result = ((Font*)self)->getKerning((Uint32)first, (Uint32)second, (unsigned int)character_size);
}
void sfml_font_getlinespacing_emS(void* self, unsigned int character_size, float* result) {
*(float*)result = ((Font*)self)->getLineSpacing((unsigned int)character_size);
}
void sfml_font_getunderlineposition_emS(void* self, unsigned int character_size, float* result) {
*(float*)result = ((Font*)self)->getUnderlinePosition((unsigned int)character_size);
}
void sfml_font_getunderlinethickness_emS(void* self, unsigned int character_size, float* result) {
*(float*)result = ((Font*)self)->getUnderlineThickness((unsigned int)character_size);
}
void sfml_font_gettexture_emS(void* self, unsigned int character_size, void** result) {
*(Texture**)result = const_cast<Texture*>(&((Font*)self)->getTexture((unsigned int)character_size));
}