Repository navigation
Expand file tree
/
Copy pathobspython.py
More file actions
6427 lines (5144 loc) · 312 KB
/
Copy pathobspython.py
File metadata and controls
6427 lines (5144 loc) · 312 KB
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
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
import importlib
pkg = __name__.rpartition('.')[0]
mname = '.'.join((pkg, '_obspython')).lstrip('.')
try:
return importlib.import_module(mname)
except ImportError:
return importlib.import_module('_obspython')
_obspython = swig_import_helper()
del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_obspython', [dirname(__file__)])
except ImportError:
import _obspython
return _obspython
try:
_mod = imp.load_module('_obspython', fp, pathname, description)
finally:
if fp is not None:
fp.close()
return _mod
_obspython = swig_import_helper()
del swig_import_helper
else:
import _obspython
del _swig_python_version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except __builtin__.Exception:
class _object:
pass
_newclass = 0
def blog(log_level: 'int', message: 'char const *') -> "void":
return _obspython.blog(log_level, message)
blog = _obspython.blog
GS_MAX_TEXTURES = _obspython.GS_MAX_TEXTURES
GS_POINTS = _obspython.GS_POINTS
GS_LINES = _obspython.GS_LINES
GS_LINESTRIP = _obspython.GS_LINESTRIP
GS_TRIS = _obspython.GS_TRIS
GS_TRISTRIP = _obspython.GS_TRISTRIP
GS_UNKNOWN = _obspython.GS_UNKNOWN
GS_A8 = _obspython.GS_A8
GS_R8 = _obspython.GS_R8
GS_RGBA = _obspython.GS_RGBA
GS_BGRX = _obspython.GS_BGRX
GS_BGRA = _obspython.GS_BGRA
GS_R10G10B10A2 = _obspython.GS_R10G10B10A2
GS_RGBA16 = _obspython.GS_RGBA16
GS_R16 = _obspython.GS_R16
GS_RGBA16F = _obspython.GS_RGBA16F
GS_RGBA32F = _obspython.GS_RGBA32F
GS_RG16F = _obspython.GS_RG16F
GS_RG32F = _obspython.GS_RG32F
GS_R16F = _obspython.GS_R16F
GS_R32F = _obspython.GS_R32F
GS_DXT1 = _obspython.GS_DXT1
GS_DXT3 = _obspython.GS_DXT3
GS_DXT5 = _obspython.GS_DXT5
GS_R8G8 = _obspython.GS_R8G8
GS_ZS_NONE = _obspython.GS_ZS_NONE
GS_Z16 = _obspython.GS_Z16
GS_Z24_S8 = _obspython.GS_Z24_S8
GS_Z32F = _obspython.GS_Z32F
GS_Z32F_S8X24 = _obspython.GS_Z32F_S8X24
GS_UNSIGNED_SHORT = _obspython.GS_UNSIGNED_SHORT
GS_UNSIGNED_LONG = _obspython.GS_UNSIGNED_LONG
GS_BACK = _obspython.GS_BACK
GS_FRONT = _obspython.GS_FRONT
GS_NEITHER = _obspython.GS_NEITHER
GS_BLEND_ZERO = _obspython.GS_BLEND_ZERO
GS_BLEND_ONE = _obspython.GS_BLEND_ONE
GS_BLEND_SRCCOLOR = _obspython.GS_BLEND_SRCCOLOR
GS_BLEND_INVSRCCOLOR = _obspython.GS_BLEND_INVSRCCOLOR
GS_BLEND_SRCALPHA = _obspython.GS_BLEND_SRCALPHA
GS_BLEND_INVSRCALPHA = _obspython.GS_BLEND_INVSRCALPHA
GS_BLEND_DSTCOLOR = _obspython.GS_BLEND_DSTCOLOR
GS_BLEND_INVDSTCOLOR = _obspython.GS_BLEND_INVDSTCOLOR
GS_BLEND_DSTALPHA = _obspython.GS_BLEND_DSTALPHA
GS_BLEND_INVDSTALPHA = _obspython.GS_BLEND_INVDSTALPHA
GS_BLEND_SRCALPHASAT = _obspython.GS_BLEND_SRCALPHASAT
GS_NEVER = _obspython.GS_NEVER
GS_LESS = _obspython.GS_LESS
GS_LEQUAL = _obspython.GS_LEQUAL
GS_EQUAL = _obspython.GS_EQUAL
GS_GEQUAL = _obspython.GS_GEQUAL
GS_GREATER = _obspython.GS_GREATER
GS_NOTEQUAL = _obspython.GS_NOTEQUAL
GS_ALWAYS = _obspython.GS_ALWAYS
GS_STENCIL_FRONT = _obspython.GS_STENCIL_FRONT
GS_STENCIL_BACK = _obspython.GS_STENCIL_BACK
GS_STENCIL_BOTH = _obspython.GS_STENCIL_BOTH
GS_KEEP = _obspython.GS_KEEP
GS_ZERO = _obspython.GS_ZERO
GS_REPLACE = _obspython.GS_REPLACE
GS_INCR = _obspython.GS_INCR
GS_DECR = _obspython.GS_DECR
GS_INVERT = _obspython.GS_INVERT
GS_POSITIVE_X = _obspython.GS_POSITIVE_X
GS_NEGATIVE_X = _obspython.GS_NEGATIVE_X
GS_POSITIVE_Y = _obspython.GS_POSITIVE_Y
GS_NEGATIVE_Y = _obspython.GS_NEGATIVE_Y
GS_POSITIVE_Z = _obspython.GS_POSITIVE_Z
GS_NEGATIVE_Z = _obspython.GS_NEGATIVE_Z
GS_FILTER_POINT = _obspython.GS_FILTER_POINT
GS_FILTER_LINEAR = _obspython.GS_FILTER_LINEAR
GS_FILTER_ANISOTROPIC = _obspython.GS_FILTER_ANISOTROPIC
GS_FILTER_MIN_MAG_POINT_MIP_LINEAR = _obspython.GS_FILTER_MIN_MAG_POINT_MIP_LINEAR
GS_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = _obspython.GS_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT
GS_FILTER_MIN_POINT_MAG_MIP_LINEAR = _obspython.GS_FILTER_MIN_POINT_MAG_MIP_LINEAR
GS_FILTER_MIN_LINEAR_MAG_MIP_POINT = _obspython.GS_FILTER_MIN_LINEAR_MAG_MIP_POINT
GS_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = _obspython.GS_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR
GS_FILTER_MIN_MAG_LINEAR_MIP_POINT = _obspython.GS_FILTER_MIN_MAG_LINEAR_MIP_POINT
GS_ADDRESS_CLAMP = _obspython.GS_ADDRESS_CLAMP
GS_ADDRESS_WRAP = _obspython.GS_ADDRESS_WRAP
GS_ADDRESS_MIRROR = _obspython.GS_ADDRESS_MIRROR
GS_ADDRESS_BORDER = _obspython.GS_ADDRESS_BORDER
GS_ADDRESS_MIRRORONCE = _obspython.GS_ADDRESS_MIRRORONCE
GS_TEXTURE_2D = _obspython.GS_TEXTURE_2D
GS_TEXTURE_3D = _obspython.GS_TEXTURE_3D
GS_TEXTURE_CUBE = _obspython.GS_TEXTURE_CUBE
class gs_device_loss(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, gs_device_loss, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, gs_device_loss, name)
__repr__ = _swig_repr
__swig_setmethods__["device_loss_release"] = _obspython.gs_device_loss_device_loss_release_set
__swig_getmethods__["device_loss_release"] = _obspython.gs_device_loss_device_loss_release_get
if _newclass:
device_loss_release = _swig_property(_obspython.gs_device_loss_device_loss_release_get, _obspython.gs_device_loss_device_loss_release_set)
__swig_setmethods__["device_loss_rebuild"] = _obspython.gs_device_loss_device_loss_rebuild_set
__swig_getmethods__["device_loss_rebuild"] = _obspython.gs_device_loss_device_loss_rebuild_get
if _newclass:
device_loss_rebuild = _swig_property(_obspython.gs_device_loss_device_loss_rebuild_get, _obspython.gs_device_loss_device_loss_rebuild_set)
__swig_setmethods__["data"] = _obspython.gs_device_loss_data_set
__swig_getmethods__["data"] = _obspython.gs_device_loss_data_get
if _newclass:
data = _swig_property(_obspython.gs_device_loss_data_get, _obspython.gs_device_loss_data_set)
def __init__(self):
this = _obspython.new_gs_device_loss()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _obspython.delete_gs_device_loss
__del__ = lambda self: None
gs_device_loss_swigregister = _obspython.gs_device_loss_swigregister
gs_device_loss_swigregister(gs_device_loss)
class gs_monitor_info(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, gs_monitor_info, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, gs_monitor_info, name)
__repr__ = _swig_repr
__swig_setmethods__["rotation_degrees"] = _obspython.gs_monitor_info_rotation_degrees_set
__swig_getmethods__["rotation_degrees"] = _obspython.gs_monitor_info_rotation_degrees_get
if _newclass:
rotation_degrees = _swig_property(_obspython.gs_monitor_info_rotation_degrees_get, _obspython.gs_monitor_info_rotation_degrees_set)
__swig_setmethods__["x"] = _obspython.gs_monitor_info_x_set
__swig_getmethods__["x"] = _obspython.gs_monitor_info_x_get
if _newclass:
x = _swig_property(_obspython.gs_monitor_info_x_get, _obspython.gs_monitor_info_x_set)
__swig_setmethods__["y"] = _obspython.gs_monitor_info_y_set
__swig_getmethods__["y"] = _obspython.gs_monitor_info_y_get
if _newclass:
y = _swig_property(_obspython.gs_monitor_info_y_get, _obspython.gs_monitor_info_y_set)
__swig_setmethods__["cx"] = _obspython.gs_monitor_info_cx_set
__swig_getmethods__["cx"] = _obspython.gs_monitor_info_cx_get
if _newclass:
cx = _swig_property(_obspython.gs_monitor_info_cx_get, _obspython.gs_monitor_info_cx_set)
__swig_setmethods__["cy"] = _obspython.gs_monitor_info_cy_set
__swig_getmethods__["cy"] = _obspython.gs_monitor_info_cy_get
if _newclass:
cy = _swig_property(_obspython.gs_monitor_info_cy_get, _obspython.gs_monitor_info_cy_set)
def __init__(self):
this = _obspython.new_gs_monitor_info()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _obspython.delete_gs_monitor_info
__del__ = lambda self: None
gs_monitor_info_swigregister = _obspython.gs_monitor_info_swigregister
gs_monitor_info_swigregister(gs_monitor_info)
class gs_tvertarray(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, gs_tvertarray, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, gs_tvertarray, name)
__repr__ = _swig_repr
__swig_setmethods__["width"] = _obspython.gs_tvertarray_width_set
__swig_getmethods__["width"] = _obspython.gs_tvertarray_width_get
if _newclass:
width = _swig_property(_obspython.gs_tvertarray_width_get, _obspython.gs_tvertarray_width_set)
__swig_setmethods__["array"] = _obspython.gs_tvertarray_array_set
__swig_getmethods__["array"] = _obspython.gs_tvertarray_array_get
if _newclass:
array = _swig_property(_obspython.gs_tvertarray_array_get, _obspython.gs_tvertarray_array_set)
def __init__(self):
this = _obspython.new_gs_tvertarray()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _obspython.delete_gs_tvertarray
__del__ = lambda self: None
gs_tvertarray_swigregister = _obspython.gs_tvertarray_swigregister
gs_tvertarray_swigregister(gs_tvertarray)
class gs_vb_data(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, gs_vb_data, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, gs_vb_data, name)
__repr__ = _swig_repr
__swig_setmethods__["num"] = _obspython.gs_vb_data_num_set
__swig_getmethods__["num"] = _obspython.gs_vb_data_num_get
if _newclass:
num = _swig_property(_obspython.gs_vb_data_num_get, _obspython.gs_vb_data_num_set)
__swig_setmethods__["points"] = _obspython.gs_vb_data_points_set
__swig_getmethods__["points"] = _obspython.gs_vb_data_points_get
if _newclass:
points = _swig_property(_obspython.gs_vb_data_points_get, _obspython.gs_vb_data_points_set)
__swig_setmethods__["normals"] = _obspython.gs_vb_data_normals_set
__swig_getmethods__["normals"] = _obspython.gs_vb_data_normals_get
if _newclass:
normals = _swig_property(_obspython.gs_vb_data_normals_get, _obspython.gs_vb_data_normals_set)
__swig_setmethods__["tangents"] = _obspython.gs_vb_data_tangents_set
__swig_getmethods__["tangents"] = _obspython.gs_vb_data_tangents_get
if _newclass:
tangents = _swig_property(_obspython.gs_vb_data_tangents_get, _obspython.gs_vb_data_tangents_set)
__swig_setmethods__["colors"] = _obspython.gs_vb_data_colors_set
__swig_getmethods__["colors"] = _obspython.gs_vb_data_colors_get
if _newclass:
colors = _swig_property(_obspython.gs_vb_data_colors_get, _obspython.gs_vb_data_colors_set)
__swig_setmethods__["num_tex"] = _obspython.gs_vb_data_num_tex_set
__swig_getmethods__["num_tex"] = _obspython.gs_vb_data_num_tex_get
if _newclass:
num_tex = _swig_property(_obspython.gs_vb_data_num_tex_get, _obspython.gs_vb_data_num_tex_set)
__swig_setmethods__["tvarray"] = _obspython.gs_vb_data_tvarray_set
__swig_getmethods__["tvarray"] = _obspython.gs_vb_data_tvarray_get
if _newclass:
tvarray = _swig_property(_obspython.gs_vb_data_tvarray_get, _obspython.gs_vb_data_tvarray_set)
def __init__(self):
this = _obspython.new_gs_vb_data()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _obspython.delete_gs_vb_data
__del__ = lambda self: None
gs_vb_data_swigregister = _obspython.gs_vb_data_swigregister
gs_vb_data_swigregister(gs_vb_data)
def gs_vbdata_create() -> "struct gs_vb_data *":
return _obspython.gs_vbdata_create()
gs_vbdata_create = _obspython.gs_vbdata_create
def gs_vbdata_destroy(data: 'gs_vb_data') -> "void":
return _obspython.gs_vbdata_destroy(data)
gs_vbdata_destroy = _obspython.gs_vbdata_destroy
class gs_sampler_info(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, gs_sampler_info, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, gs_sampler_info, name)
__repr__ = _swig_repr
__swig_setmethods__["filter"] = _obspython.gs_sampler_info_filter_set
__swig_getmethods__["filter"] = _obspython.gs_sampler_info_filter_get
if _newclass:
filter = _swig_property(_obspython.gs_sampler_info_filter_get, _obspython.gs_sampler_info_filter_set)
__swig_setmethods__["address_u"] = _obspython.gs_sampler_info_address_u_set
__swig_getmethods__["address_u"] = _obspython.gs_sampler_info_address_u_get
if _newclass:
address_u = _swig_property(_obspython.gs_sampler_info_address_u_get, _obspython.gs_sampler_info_address_u_set)
__swig_setmethods__["address_v"] = _obspython.gs_sampler_info_address_v_set
__swig_getmethods__["address_v"] = _obspython.gs_sampler_info_address_v_get
if _newclass:
address_v = _swig_property(_obspython.gs_sampler_info_address_v_get, _obspython.gs_sampler_info_address_v_set)
__swig_setmethods__["address_w"] = _obspython.gs_sampler_info_address_w_set
__swig_getmethods__["address_w"] = _obspython.gs_sampler_info_address_w_get
if _newclass:
address_w = _swig_property(_obspython.gs_sampler_info_address_w_get, _obspython.gs_sampler_info_address_w_set)
__swig_setmethods__["max_anisotropy"] = _obspython.gs_sampler_info_max_anisotropy_set
__swig_getmethods__["max_anisotropy"] = _obspython.gs_sampler_info_max_anisotropy_get
if _newclass:
max_anisotropy = _swig_property(_obspython.gs_sampler_info_max_anisotropy_get, _obspython.gs_sampler_info_max_anisotropy_set)
__swig_setmethods__["border_color"] = _obspython.gs_sampler_info_border_color_set
__swig_getmethods__["border_color"] = _obspython.gs_sampler_info_border_color_get
if _newclass:
border_color = _swig_property(_obspython.gs_sampler_info_border_color_get, _obspython.gs_sampler_info_border_color_set)
def __init__(self):
this = _obspython.new_gs_sampler_info()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _obspython.delete_gs_sampler_info
__del__ = lambda self: None
gs_sampler_info_swigregister = _obspython.gs_sampler_info_swigregister
gs_sampler_info_swigregister(gs_sampler_info)
class gs_display_mode(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, gs_display_mode, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, gs_display_mode, name)
__repr__ = _swig_repr
__swig_setmethods__["width"] = _obspython.gs_display_mode_width_set
__swig_getmethods__["width"] = _obspython.gs_display_mode_width_get
if _newclass:
width = _swig_property(_obspython.gs_display_mode_width_get, _obspython.gs_display_mode_width_set)
__swig_setmethods__["height"] = _obspython.gs_display_mode_height_set
__swig_getmethods__["height"] = _obspython.gs_display_mode_height_get
if _newclass:
height = _swig_property(_obspython.gs_display_mode_height_get, _obspython.gs_display_mode_height_set)
__swig_setmethods__["bits"] = _obspython.gs_display_mode_bits_set
__swig_getmethods__["bits"] = _obspython.gs_display_mode_bits_get
if _newclass:
bits = _swig_property(_obspython.gs_display_mode_bits_get, _obspython.gs_display_mode_bits_set)
__swig_setmethods__["freq"] = _obspython.gs_display_mode_freq_set
__swig_getmethods__["freq"] = _obspython.gs_display_mode_freq_get
if _newclass:
freq = _swig_property(_obspython.gs_display_mode_freq_get, _obspython.gs_display_mode_freq_set)
def __init__(self):
this = _obspython.new_gs_display_mode()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _obspython.delete_gs_display_mode
__del__ = lambda self: None
gs_display_mode_swigregister = _obspython.gs_display_mode_swigregister
gs_display_mode_swigregister(gs_display_mode)
class gs_rect(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, gs_rect, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, gs_rect, name)
__repr__ = _swig_repr
__swig_setmethods__["x"] = _obspython.gs_rect_x_set
__swig_getmethods__["x"] = _obspython.gs_rect_x_get
if _newclass:
x = _swig_property(_obspython.gs_rect_x_get, _obspython.gs_rect_x_set)
__swig_setmethods__["y"] = _obspython.gs_rect_y_set
__swig_getmethods__["y"] = _obspython.gs_rect_y_get
if _newclass:
y = _swig_property(_obspython.gs_rect_y_get, _obspython.gs_rect_y_set)
__swig_setmethods__["cx"] = _obspython.gs_rect_cx_set
__swig_getmethods__["cx"] = _obspython.gs_rect_cx_get
if _newclass:
cx = _swig_property(_obspython.gs_rect_cx_get, _obspython.gs_rect_cx_set)
__swig_setmethods__["cy"] = _obspython.gs_rect_cy_set
__swig_getmethods__["cy"] = _obspython.gs_rect_cy_get
if _newclass:
cy = _swig_property(_obspython.gs_rect_cy_get, _obspython.gs_rect_cy_set)
def __init__(self):
this = _obspython.new_gs_rect()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _obspython.delete_gs_rect
__del__ = lambda self: None
gs_rect_swigregister = _obspython.gs_rect_swigregister
gs_rect_swigregister(gs_rect)
GS_SHADER_PARAM_UNKNOWN = _obspython.GS_SHADER_PARAM_UNKNOWN
GS_SHADER_PARAM_BOOL = _obspython.GS_SHADER_PARAM_BOOL
GS_SHADER_PARAM_FLOAT = _obspython.GS_SHADER_PARAM_FLOAT
GS_SHADER_PARAM_INT = _obspython.GS_SHADER_PARAM_INT
GS_SHADER_PARAM_STRING = _obspython.GS_SHADER_PARAM_STRING
GS_SHADER_PARAM_VEC2 = _obspython.GS_SHADER_PARAM_VEC2
GS_SHADER_PARAM_VEC3 = _obspython.GS_SHADER_PARAM_VEC3
GS_SHADER_PARAM_VEC4 = _obspython.GS_SHADER_PARAM_VEC4
GS_SHADER_PARAM_INT2 = _obspython.GS_SHADER_PARAM_INT2
GS_SHADER_PARAM_INT3 = _obspython.GS_SHADER_PARAM_INT3
GS_SHADER_PARAM_INT4 = _obspython.GS_SHADER_PARAM_INT4
GS_SHADER_PARAM_MATRIX4X4 = _obspython.GS_SHADER_PARAM_MATRIX4X4
GS_SHADER_PARAM_TEXTURE = _obspython.GS_SHADER_PARAM_TEXTURE
def gs_effect_destroy(effect: 'gs_effect_t *') -> "void":
return _obspython.gs_effect_destroy(effect)
gs_effect_destroy = _obspython.gs_effect_destroy
def gs_effect_get_technique(effect: 'gs_effect_t const *', name: 'char const *') -> "gs_technique_t *":
return _obspython.gs_effect_get_technique(effect, name)
gs_effect_get_technique = _obspython.gs_effect_get_technique
def gs_effect_get_current_technique(effect: 'gs_effect_t const *') -> "gs_technique_t *":
return _obspython.gs_effect_get_current_technique(effect)
gs_effect_get_current_technique = _obspython.gs_effect_get_current_technique
def gs_technique_begin(technique: 'gs_technique_t *') -> "size_t":
return _obspython.gs_technique_begin(technique)
gs_technique_begin = _obspython.gs_technique_begin
def gs_technique_end(technique: 'gs_technique_t *') -> "void":
return _obspython.gs_technique_end(technique)
gs_technique_end = _obspython.gs_technique_end
def gs_technique_begin_pass(technique: 'gs_technique_t *', arg2: 'size_t') -> "bool":
return _obspython.gs_technique_begin_pass(technique, arg2)
gs_technique_begin_pass = _obspython.gs_technique_begin_pass
def gs_technique_begin_pass_by_name(technique: 'gs_technique_t *', name: 'char const *') -> "bool":
return _obspython.gs_technique_begin_pass_by_name(technique, name)
gs_technique_begin_pass_by_name = _obspython.gs_technique_begin_pass_by_name
def gs_technique_end_pass(technique: 'gs_technique_t *') -> "void":
return _obspython.gs_technique_end_pass(technique)
gs_technique_end_pass = _obspython.gs_technique_end_pass
def gs_technique_get_pass_by_idx(technique: 'gs_technique_t const *', arg2: 'size_t') -> "gs_epass_t *":
return _obspython.gs_technique_get_pass_by_idx(technique, arg2)
gs_technique_get_pass_by_idx = _obspython.gs_technique_get_pass_by_idx
def gs_technique_get_pass_by_name(technique: 'gs_technique_t const *', name: 'char const *') -> "gs_epass_t *":
return _obspython.gs_technique_get_pass_by_name(technique, name)
gs_technique_get_pass_by_name = _obspython.gs_technique_get_pass_by_name
def gs_effect_get_num_params(effect: 'gs_effect_t const *') -> "size_t":
return _obspython.gs_effect_get_num_params(effect)
gs_effect_get_num_params = _obspython.gs_effect_get_num_params
def gs_effect_get_param_by_idx(effect: 'gs_effect_t const *', param: 'size_t') -> "gs_eparam_t *":
return _obspython.gs_effect_get_param_by_idx(effect, param)
gs_effect_get_param_by_idx = _obspython.gs_effect_get_param_by_idx
def gs_effect_get_param_by_name(effect: 'gs_effect_t const *', name: 'char const *') -> "gs_eparam_t *":
return _obspython.gs_effect_get_param_by_name(effect, name)
gs_effect_get_param_by_name = _obspython.gs_effect_get_param_by_name
def gs_param_get_num_annotations(param: 'gs_eparam_t const *') -> "size_t":
return _obspython.gs_param_get_num_annotations(param)
gs_param_get_num_annotations = _obspython.gs_param_get_num_annotations
def gs_param_get_annotation_by_idx(param: 'gs_eparam_t const *', annotation: 'size_t') -> "gs_eparam_t *":
return _obspython.gs_param_get_annotation_by_idx(param, annotation)
gs_param_get_annotation_by_idx = _obspython.gs_param_get_annotation_by_idx
def gs_param_get_annotation_by_name(param: 'gs_eparam_t const *', name: 'char const *') -> "gs_eparam_t *":
return _obspython.gs_param_get_annotation_by_name(param, name)
gs_param_get_annotation_by_name = _obspython.gs_param_get_annotation_by_name
def gs_effect_loop(effect: 'gs_effect_t *', name: 'char const *') -> "bool":
return _obspython.gs_effect_loop(effect, name)
gs_effect_loop = _obspython.gs_effect_loop
def gs_effect_update_params(effect: 'gs_effect_t *') -> "void":
return _obspython.gs_effect_update_params(effect)
gs_effect_update_params = _obspython.gs_effect_update_params
def gs_effect_get_viewproj_matrix(effect: 'gs_effect_t const *') -> "gs_eparam_t *":
return _obspython.gs_effect_get_viewproj_matrix(effect)
gs_effect_get_viewproj_matrix = _obspython.gs_effect_get_viewproj_matrix
def gs_effect_get_world_matrix(effect: 'gs_effect_t const *') -> "gs_eparam_t *":
return _obspython.gs_effect_get_world_matrix(effect)
gs_effect_get_world_matrix = _obspython.gs_effect_get_world_matrix
def gs_effect_set_bool(param: 'gs_eparam_t *', val: 'bool') -> "void":
return _obspython.gs_effect_set_bool(param, val)
gs_effect_set_bool = _obspython.gs_effect_set_bool
def gs_effect_set_float(param: 'gs_eparam_t *', val: 'float') -> "void":
return _obspython.gs_effect_set_float(param, val)
gs_effect_set_float = _obspython.gs_effect_set_float
def gs_effect_set_int(param: 'gs_eparam_t *', val: 'int') -> "void":
return _obspython.gs_effect_set_int(param, val)
gs_effect_set_int = _obspython.gs_effect_set_int
def gs_effect_set_matrix4(param: 'gs_eparam_t *', val: 'matrix4') -> "void":
return _obspython.gs_effect_set_matrix4(param, val)
gs_effect_set_matrix4 = _obspython.gs_effect_set_matrix4
def gs_effect_set_vec2(param: 'gs_eparam_t *', val: 'vec2') -> "void":
return _obspython.gs_effect_set_vec2(param, val)
gs_effect_set_vec2 = _obspython.gs_effect_set_vec2
def gs_effect_set_vec3(param: 'gs_eparam_t *', val: 'vec3') -> "void":
return _obspython.gs_effect_set_vec3(param, val)
gs_effect_set_vec3 = _obspython.gs_effect_set_vec3
def gs_effect_set_vec4(param: 'gs_eparam_t *', val: 'vec4') -> "void":
return _obspython.gs_effect_set_vec4(param, val)
gs_effect_set_vec4 = _obspython.gs_effect_set_vec4
def gs_effect_set_texture(param: 'gs_eparam_t *', val: 'gs_texture_t *') -> "void":
return _obspython.gs_effect_set_texture(param, val)
gs_effect_set_texture = _obspython.gs_effect_set_texture
def gs_effect_set_val(param: 'gs_eparam_t *', val: 'void const *', size: 'size_t') -> "void":
return _obspython.gs_effect_set_val(param, val, size)
gs_effect_set_val = _obspython.gs_effect_set_val
def gs_effect_set_default(param: 'gs_eparam_t *') -> "void":
return _obspython.gs_effect_set_default(param)
gs_effect_set_default = _obspython.gs_effect_set_default
def gs_effect_get_val_size(param: 'gs_eparam_t *') -> "size_t":
return _obspython.gs_effect_get_val_size(param)
gs_effect_get_val_size = _obspython.gs_effect_get_val_size
def gs_effect_get_val(param: 'gs_eparam_t *') -> "void *":
return _obspython.gs_effect_get_val(param)
gs_effect_get_val = _obspython.gs_effect_get_val
def gs_effect_get_default_val_size(param: 'gs_eparam_t *') -> "size_t":
return _obspython.gs_effect_get_default_val_size(param)
gs_effect_get_default_val_size = _obspython.gs_effect_get_default_val_size
def gs_effect_get_default_val(param: 'gs_eparam_t *') -> "void *":
return _obspython.gs_effect_get_default_val(param)
gs_effect_get_default_val = _obspython.gs_effect_get_default_val
def gs_effect_set_next_sampler(param: 'gs_eparam_t *', sampler: 'gs_samplerstate_t *') -> "void":
return _obspython.gs_effect_set_next_sampler(param, sampler)
gs_effect_set_next_sampler = _obspython.gs_effect_set_next_sampler
def gs_effect_set_color(param: 'gs_eparam_t *', argb: 'uint32_t') -> "void":
return _obspython.gs_effect_set_color(param, argb)
gs_effect_set_color = _obspython.gs_effect_set_color
def gs_texrender_create(format: 'enum gs_color_format', zsformat: 'enum gs_zstencil_format') -> "gs_texrender_t *":
return _obspython.gs_texrender_create(format, zsformat)
gs_texrender_create = _obspython.gs_texrender_create
def gs_texrender_destroy(texrender: 'gs_texrender_t *') -> "void":
return _obspython.gs_texrender_destroy(texrender)
gs_texrender_destroy = _obspython.gs_texrender_destroy
def gs_texrender_begin(texrender: 'gs_texrender_t *', cx: 'uint32_t', cy: 'uint32_t') -> "bool":
return _obspython.gs_texrender_begin(texrender, cx, cy)
gs_texrender_begin = _obspython.gs_texrender_begin
def gs_texrender_end(texrender: 'gs_texrender_t *') -> "void":
return _obspython.gs_texrender_end(texrender)
gs_texrender_end = _obspython.gs_texrender_end
def gs_texrender_reset(texrender: 'gs_texrender_t *') -> "void":
return _obspython.gs_texrender_reset(texrender)
gs_texrender_reset = _obspython.gs_texrender_reset
def gs_texrender_get_texture(texrender: 'gs_texrender_t const *') -> "gs_texture_t *":
return _obspython.gs_texrender_get_texture(texrender)
gs_texrender_get_texture = _obspython.gs_texrender_get_texture
GS_BUILD_MIPMAPS = _obspython.GS_BUILD_MIPMAPS
GS_DYNAMIC = _obspython.GS_DYNAMIC
GS_RENDER_TARGET = _obspython.GS_RENDER_TARGET
GS_GL_DUMMYTEX = _obspython.GS_GL_DUMMYTEX
GS_DUP_BUFFER = _obspython.GS_DUP_BUFFER
GS_SHARED_TEX = _obspython.GS_SHARED_TEX
GS_SHARED_KM_TEX = _obspython.GS_SHARED_KM_TEX
GS_SUCCESS = _obspython.GS_SUCCESS
GS_ERROR_FAIL = _obspython.GS_ERROR_FAIL
GS_ERROR_MODULE_NOT_FOUND = _obspython.GS_ERROR_MODULE_NOT_FOUND
GS_ERROR_NOT_SUPPORTED = _obspython.GS_ERROR_NOT_SUPPORTED
class gs_window(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, gs_window, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, gs_window, name)
__repr__ = _swig_repr
def __init__(self):
this = _obspython.new_gs_window()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _obspython.delete_gs_window
__del__ = lambda self: None
gs_window_swigregister = _obspython.gs_window_swigregister
gs_window_swigregister(gs_window)
class gs_init_data(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, gs_init_data, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, gs_init_data, name)
__repr__ = _swig_repr
__swig_setmethods__["window"] = _obspython.gs_init_data_window_set
__swig_getmethods__["window"] = _obspython.gs_init_data_window_get
if _newclass:
window = _swig_property(_obspython.gs_init_data_window_get, _obspython.gs_init_data_window_set)
__swig_setmethods__["cx"] = _obspython.gs_init_data_cx_set
__swig_getmethods__["cx"] = _obspython.gs_init_data_cx_get
if _newclass:
cx = _swig_property(_obspython.gs_init_data_cx_get, _obspython.gs_init_data_cx_set)
__swig_setmethods__["cy"] = _obspython.gs_init_data_cy_set
__swig_getmethods__["cy"] = _obspython.gs_init_data_cy_get
if _newclass:
cy = _swig_property(_obspython.gs_init_data_cy_get, _obspython.gs_init_data_cy_set)
__swig_setmethods__["num_backbuffers"] = _obspython.gs_init_data_num_backbuffers_set
__swig_getmethods__["num_backbuffers"] = _obspython.gs_init_data_num_backbuffers_get
if _newclass:
num_backbuffers = _swig_property(_obspython.gs_init_data_num_backbuffers_get, _obspython.gs_init_data_num_backbuffers_set)
__swig_setmethods__["format"] = _obspython.gs_init_data_format_set
__swig_getmethods__["format"] = _obspython.gs_init_data_format_get
if _newclass:
format = _swig_property(_obspython.gs_init_data_format_get, _obspython.gs_init_data_format_set)
__swig_setmethods__["zsformat"] = _obspython.gs_init_data_zsformat_set
__swig_getmethods__["zsformat"] = _obspython.gs_init_data_zsformat_get
if _newclass:
zsformat = _swig_property(_obspython.gs_init_data_zsformat_get, _obspython.gs_init_data_zsformat_set)
__swig_setmethods__["adapter"] = _obspython.gs_init_data_adapter_set
__swig_getmethods__["adapter"] = _obspython.gs_init_data_adapter_get
if _newclass:
adapter = _swig_property(_obspython.gs_init_data_adapter_get, _obspython.gs_init_data_adapter_set)
def __init__(self):
this = _obspython.new_gs_init_data()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_destroy__ = _obspython.delete_gs_init_data
__del__ = lambda self: None
gs_init_data_swigregister = _obspython.gs_init_data_swigregister
gs_init_data_swigregister(gs_init_data)
GS_DEVICE_OPENGL = _obspython.GS_DEVICE_OPENGL
GS_DEVICE_DIRECT3D_11 = _obspython.GS_DEVICE_DIRECT3D_11
def gs_get_device_name() -> "char const *":
return _obspython.gs_get_device_name()
gs_get_device_name = _obspython.gs_get_device_name
def gs_get_device_type() -> "int":
return _obspython.gs_get_device_type()
gs_get_device_type = _obspython.gs_get_device_type
def gs_enum_adapters(callback: 'bool (*)(void *,char const *,uint32_t)', param: 'void *') -> "void":
return _obspython.gs_enum_adapters(callback, param)
gs_enum_adapters = _obspython.gs_enum_adapters
def gs_create(graphics: 'graphics_t **', module: 'char const *', adapter: 'uint32_t') -> "int":
return _obspython.gs_create(graphics, module, adapter)
gs_create = _obspython.gs_create
def gs_destroy(graphics: 'graphics_t *') -> "void":
return _obspython.gs_destroy(graphics)
gs_destroy = _obspython.gs_destroy
def gs_enter_context(graphics: 'graphics_t *') -> "void":
return _obspython.gs_enter_context(graphics)
gs_enter_context = _obspython.gs_enter_context
def gs_leave_context() -> "void":
return _obspython.gs_leave_context()
gs_leave_context = _obspython.gs_leave_context
def gs_get_context() -> "graphics_t *":
return _obspython.gs_get_context()
gs_get_context = _obspython.gs_get_context
def gs_get_device_obj() -> "void *":
return _obspython.gs_get_device_obj()
gs_get_device_obj = _obspython.gs_get_device_obj
def gs_matrix_push() -> "void":
return _obspython.gs_matrix_push()
gs_matrix_push = _obspython.gs_matrix_push
def gs_matrix_pop() -> "void":
return _obspython.gs_matrix_pop()
gs_matrix_pop = _obspython.gs_matrix_pop
def gs_matrix_identity() -> "void":
return _obspython.gs_matrix_identity()
gs_matrix_identity = _obspython.gs_matrix_identity
def gs_matrix_transpose() -> "void":
return _obspython.gs_matrix_transpose()
gs_matrix_transpose = _obspython.gs_matrix_transpose
def gs_matrix_set(matrix: 'matrix4') -> "void":
return _obspython.gs_matrix_set(matrix)
gs_matrix_set = _obspython.gs_matrix_set
def gs_matrix_get(dst: 'matrix4') -> "void":
return _obspython.gs_matrix_get(dst)
gs_matrix_get = _obspython.gs_matrix_get
def gs_matrix_mul(matrix: 'matrix4') -> "void":
return _obspython.gs_matrix_mul(matrix)
gs_matrix_mul = _obspython.gs_matrix_mul
def gs_matrix_rotquat(rot: 'quat') -> "void":
return _obspython.gs_matrix_rotquat(rot)
gs_matrix_rotquat = _obspython.gs_matrix_rotquat
def gs_matrix_rotaa(rot: 'struct axisang const *') -> "void":
return _obspython.gs_matrix_rotaa(rot)
gs_matrix_rotaa = _obspython.gs_matrix_rotaa
def gs_matrix_translate(pos: 'vec3') -> "void":
return _obspython.gs_matrix_translate(pos)
gs_matrix_translate = _obspython.gs_matrix_translate
def gs_matrix_scale(scale: 'vec3') -> "void":
return _obspython.gs_matrix_scale(scale)
gs_matrix_scale = _obspython.gs_matrix_scale
def gs_matrix_rotaa4f(x: 'float', y: 'float', z: 'float', angle: 'float') -> "void":
return _obspython.gs_matrix_rotaa4f(x, y, z, angle)
gs_matrix_rotaa4f = _obspython.gs_matrix_rotaa4f
def gs_matrix_translate3f(x: 'float', y: 'float', z: 'float') -> "void":
return _obspython.gs_matrix_translate3f(x, y, z)
gs_matrix_translate3f = _obspython.gs_matrix_translate3f
def gs_matrix_scale3f(x: 'float', y: 'float', z: 'float') -> "void":
return _obspython.gs_matrix_scale3f(x, y, z)
gs_matrix_scale3f = _obspython.gs_matrix_scale3f
def gs_render_start(b_new: 'bool') -> "void":
return _obspython.gs_render_start(b_new)
gs_render_start = _obspython.gs_render_start
def gs_render_stop(mode: 'enum gs_draw_mode') -> "void":
return _obspython.gs_render_stop(mode)
gs_render_stop = _obspython.gs_render_stop
def gs_render_save() -> "gs_vertbuffer_t *":
return _obspython.gs_render_save()
gs_render_save = _obspython.gs_render_save
def gs_vertex2f(x: 'float', y: 'float') -> "void":
return _obspython.gs_vertex2f(x, y)
gs_vertex2f = _obspython.gs_vertex2f
def gs_vertex3f(x: 'float', y: 'float', z: 'float') -> "void":
return _obspython.gs_vertex3f(x, y, z)
gs_vertex3f = _obspython.gs_vertex3f
def gs_normal3f(x: 'float', y: 'float', z: 'float') -> "void":
return _obspython.gs_normal3f(x, y, z)
gs_normal3f = _obspython.gs_normal3f
def gs_color(color: 'uint32_t') -> "void":
return _obspython.gs_color(color)
gs_color = _obspython.gs_color
def gs_texcoord(x: 'float', y: 'float', unit: 'int') -> "void":
return _obspython.gs_texcoord(x, y, unit)
gs_texcoord = _obspython.gs_texcoord
def gs_vertex2v(v: 'vec2') -> "void":
return _obspython.gs_vertex2v(v)
gs_vertex2v = _obspython.gs_vertex2v
def gs_vertex3v(v: 'vec3') -> "void":
return _obspython.gs_vertex3v(v)
gs_vertex3v = _obspython.gs_vertex3v
def gs_normal3v(v: 'vec3') -> "void":
return _obspython.gs_normal3v(v)
gs_normal3v = _obspython.gs_normal3v
def gs_color4v(v: 'vec4') -> "void":
return _obspython.gs_color4v(v)
gs_color4v = _obspython.gs_color4v
def gs_texcoord2v(v: 'vec2', unit: 'int') -> "void":
return _obspython.gs_texcoord2v(v, unit)
gs_texcoord2v = _obspython.gs_texcoord2v
def gs_get_input() -> "input_t *":
return _obspython.gs_get_input()
gs_get_input = _obspython.gs_get_input
def gs_get_effect() -> "gs_effect_t *":
return _obspython.gs_get_effect()
gs_get_effect = _obspython.gs_get_effect
def gs_effect_create_from_file(file: 'char const *', error_string: 'char **') -> "gs_effect_t *":
return _obspython.gs_effect_create_from_file(file, error_string)
gs_effect_create_from_file = _obspython.gs_effect_create_from_file
def gs_effect_create(effect_string: 'char const *', filename: 'char const *', error_string: 'char **') -> "gs_effect_t *":
return _obspython.gs_effect_create(effect_string, filename, error_string)
gs_effect_create = _obspython.gs_effect_create
def gs_vertexshader_create_from_file(file: 'char const *', error_string: 'char **') -> "gs_shader_t *":
return _obspython.gs_vertexshader_create_from_file(file, error_string)
gs_vertexshader_create_from_file = _obspython.gs_vertexshader_create_from_file
def gs_pixelshader_create_from_file(file: 'char const *', error_string: 'char **') -> "gs_shader_t *":
return _obspython.gs_pixelshader_create_from_file(file, error_string)
gs_pixelshader_create_from_file = _obspython.gs_pixelshader_create_from_file
def gs_texture_create_from_file(file: 'char const *') -> "gs_texture_t *":
return _obspython.gs_texture_create_from_file(file)
gs_texture_create_from_file = _obspython.gs_texture_create_from_file
def gs_create_texture_file_data(file: 'char const *', format: 'enum gs_color_format *', cx: 'uint32_t *', cy: 'uint32_t *') -> "uint8_t *":
return _obspython.gs_create_texture_file_data(file, format, cx, cy)
gs_create_texture_file_data = _obspython.gs_create_texture_file_data
GS_FLIP_U = _obspython.GS_FLIP_U
GS_FLIP_V = _obspython.GS_FLIP_V
def gs_draw_sprite(tex: 'gs_texture_t *', flip: 'uint32_t', width: 'uint32_t', height: 'uint32_t') -> "void":
return _obspython.gs_draw_sprite(tex, flip, width, height)
gs_draw_sprite = _obspython.gs_draw_sprite
def gs_draw_sprite_subregion(tex: 'gs_texture_t *', flip: 'uint32_t', x: 'uint32_t', y: 'uint32_t', cx: 'uint32_t', cy: 'uint32_t') -> "void":
return _obspython.gs_draw_sprite_subregion(tex, flip, x, y, cx, cy)
gs_draw_sprite_subregion = _obspython.gs_draw_sprite_subregion
def gs_draw_cube_backdrop(cubetex: 'gs_texture_t *', rot: 'quat', left: 'float', right: 'float', top: 'float', bottom: 'float', znear: 'float') -> "void":
return _obspython.gs_draw_cube_backdrop(cubetex, rot, left, right, top, bottom, znear)
gs_draw_cube_backdrop = _obspython.gs_draw_cube_backdrop
def gs_reset_viewport() -> "void":
return _obspython.gs_reset_viewport()
gs_reset_viewport = _obspython.gs_reset_viewport
def gs_set_2d_mode() -> "void":
return _obspython.gs_set_2d_mode()
gs_set_2d_mode = _obspython.gs_set_2d_mode
def gs_set_3d_mode(fovy: 'double', znear: 'double', zvar: 'double') -> "void":
return _obspython.gs_set_3d_mode(fovy, znear, zvar)
gs_set_3d_mode = _obspython.gs_set_3d_mode
def gs_viewport_push() -> "void":
return _obspython.gs_viewport_push()
gs_viewport_push = _obspython.gs_viewport_push
def gs_viewport_pop() -> "void":
return _obspython.gs_viewport_pop()
gs_viewport_pop = _obspython.gs_viewport_pop
def gs_texture_set_image(tex: 'gs_texture_t *', data: 'uint8_t const *', linesize: 'uint32_t', invert: 'bool') -> "void":
return _obspython.gs_texture_set_image(tex, data, linesize, invert)
gs_texture_set_image = _obspython.gs_texture_set_image
def gs_cubetexture_set_image(cubetex: 'gs_texture_t *', side: 'uint32_t', data: 'void const *', linesize: 'uint32_t', invert: 'bool') -> "void":
return _obspython.gs_cubetexture_set_image(cubetex, side, data, linesize, invert)
gs_cubetexture_set_image = _obspython.gs_cubetexture_set_image
def gs_perspective(fovy: 'float', aspect: 'float', znear: 'float', zfar: 'float') -> "void":
return _obspython.gs_perspective(fovy, aspect, znear, zfar)
gs_perspective = _obspython.gs_perspective
def gs_blend_state_push() -> "void":
return _obspython.gs_blend_state_push()
gs_blend_state_push = _obspython.gs_blend_state_push
def gs_blend_state_pop() -> "void":
return _obspython.gs_blend_state_pop()
gs_blend_state_pop = _obspython.gs_blend_state_pop
def gs_reset_blend_state() -> "void":
return _obspython.gs_reset_blend_state()
gs_reset_blend_state = _obspython.gs_reset_blend_state
def gs_swapchain_create(data: 'gs_init_data') -> "gs_swapchain_t *":
return _obspython.gs_swapchain_create(data)
gs_swapchain_create = _obspython.gs_swapchain_create
def gs_resize(x: 'uint32_t', y: 'uint32_t') -> "void":
return _obspython.gs_resize(x, y)
gs_resize = _obspython.gs_resize
def gs_get_size(x: 'uint32_t *', y: 'uint32_t *') -> "void":
return _obspython.gs_get_size(x, y)
gs_get_size = _obspython.gs_get_size
def gs_get_width() -> "uint32_t":
return _obspython.gs_get_width()
gs_get_width = _obspython.gs_get_width
def gs_get_height() -> "uint32_t":
return _obspython.gs_get_height()
gs_get_height = _obspython.gs_get_height
def gs_texture_create(width: 'uint32_t', height: 'uint32_t', color_format: 'enum gs_color_format', levels: 'uint32_t', data: 'uint8_t const **', flags: 'uint32_t') -> "gs_texture_t *":
return _obspython.gs_texture_create(width, height, color_format, levels, data, flags)
gs_texture_create = _obspython.gs_texture_create
def gs_cubetexture_create(size: 'uint32_t', color_format: 'enum gs_color_format', levels: 'uint32_t', data: 'uint8_t const **', flags: 'uint32_t') -> "gs_texture_t *":
return _obspython.gs_cubetexture_create(size, color_format, levels, data, flags)
gs_cubetexture_create = _obspython.gs_cubetexture_create
def gs_voltexture_create(width: 'uint32_t', height: 'uint32_t', depth: 'uint32_t', color_format: 'enum gs_color_format', levels: 'uint32_t', data: 'uint8_t const **', flags: 'uint32_t') -> "gs_texture_t *":
return _obspython.gs_voltexture_create(width, height, depth, color_format, levels, data, flags)
gs_voltexture_create = _obspython.gs_voltexture_create
def gs_zstencil_create(width: 'uint32_t', height: 'uint32_t', format: 'enum gs_zstencil_format') -> "gs_zstencil_t *":
return _obspython.gs_zstencil_create(width, height, format)
gs_zstencil_create = _obspython.gs_zstencil_create
def gs_stagesurface_create(width: 'uint32_t', height: 'uint32_t', color_format: 'enum gs_color_format') -> "gs_stagesurf_t *":
return _obspython.gs_stagesurface_create(width, height, color_format)
gs_stagesurface_create = _obspython.gs_stagesurface_create
def gs_samplerstate_create(info: 'gs_sampler_info') -> "gs_samplerstate_t *":
return _obspython.gs_samplerstate_create(info)
gs_samplerstate_create = _obspython.gs_samplerstate_create
def gs_vertexshader_create(shader: 'char const *', file: 'char const *', error_string: 'char **') -> "gs_shader_t *":
return _obspython.gs_vertexshader_create(shader, file, error_string)
gs_vertexshader_create = _obspython.gs_vertexshader_create
def gs_pixelshader_create(shader: 'char const *', file: 'char const *', error_string: 'char **') -> "gs_shader_t *":
return _obspython.gs_pixelshader_create(shader, file, error_string)
gs_pixelshader_create = _obspython.gs_pixelshader_create
def gs_vertexbuffer_create(data: 'gs_vb_data', flags: 'uint32_t') -> "gs_vertbuffer_t *":
return _obspython.gs_vertexbuffer_create(data, flags)
gs_vertexbuffer_create = _obspython.gs_vertexbuffer_create
def gs_indexbuffer_create(type: 'enum gs_index_type', indices: 'void *', num: 'size_t', flags: 'uint32_t') -> "gs_indexbuffer_t *":
return _obspython.gs_indexbuffer_create(type, indices, num, flags)
gs_indexbuffer_create = _obspython.gs_indexbuffer_create
def gs_timer_create() -> "gs_timer_t *":
return _obspython.gs_timer_create()