~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to doc/python_api/rst/bge.logic.rst

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Game Logic (bge.logic)
3
3
======================
4
4
 
5
 
*****
6
 
Intro
7
 
*****
 
5
************
 
6
Introduction
 
7
************
8
8
 
9
9
Module to access logic functions, imported automatically into the python controllers namespace.
10
10
 
125
125
 
126
126
   The current mouse wrapped in an :class:`~bge.types.SCA_PythonMouse` object.
127
127
 
 
128
.. data:: joysticks
 
129
 
 
130
   A list of attached joysticks. The list size it he maximum number of supported joysticks. If no joystick is available for a given slot, the slot is set to None.
 
131
 
128
132
*****************
129
133
General functions
130
134
*****************
172
176
 
173
177
   Restarts the current game by reloading the .blend file (the last saved version, not what is currently running).
174
178
   
175
 
.. function:: LibLoad(blend, type, data, load_actions=False, verbose=False)
 
179
.. function:: LibLoad(blend, type, data, load_actions=False, verbose=False, load_scripts=True, async=False)
176
180
   
177
181
   Converts the all of the datablocks of the given type from the given blend.
178
182
   
186
190
   :type load_actions: bool
187
191
   :arg verbose: Whether or not to print debugging information (e.g., "SceneName: Scene")
188
192
   :type verbose: bool
 
193
   :arg load_scripts: Whether or not to load text datablocks as well (can be disabled for some extra security)
 
194
   :type load_scripts: bool   
 
195
   :arg async: Whether or not to do the loading asynchronously (in another thread). Only the "Scene" type is currently supported for this feature.
 
196
   :type async: bool
 
197
   
 
198
   :rtype: :class:`bge.types.KX_LibLoadStatus`
 
199
 
 
200
   .. note:: Asynchronously loaded libraries will not be available immediately after LibLoad() returns. Use the returned KX_LibLoadStatus to figure out when the libraries are ready.
189
201
   
190
202
.. function:: LibNew(name, type, data)
191
203
 
252
264
   
253
265
   :rtype: list [float], len(getSpectrum()) == 512
254
266
 
255
 
.. function:: stopDSP()
256
 
 
257
 
   Stops the sound driver using DSP effects.
258
 
   
259
 
   Only the fmod sound driver supports this.
260
 
   DSP can be computationally expensive.
261
 
 
262
267
.. function:: getMaxLogicFrame()
263
268
 
264
269
   Gets the maximum number of logic frames per render frame.
329
334
 
330
335
   .. warning: Not implimented yet
331
336
 
 
337
.. function:: getExitKey()
 
338
 
 
339
   Gets the key used to exit the game engine
 
340
 
 
341
   :return: The key (defaults to :mod:`bge.events.ESCKEY`)
 
342
   :rtype: int
 
343
 
 
344
.. function:: setExitKey(key)
 
345
 
 
346
   Sets the key used to exit the game engine
 
347
 
 
348
   :arg key: A key constant from :mod:`bge.events`
 
349
   :type key: int
 
350
 
 
351
.. function:: NextFrame()
 
352
 
 
353
   Render next frame (if Python has control)
 
354
 
332
355
*****************
333
356
Utility functions
334
357
*****************
371
394
.. function:: PrintGLInfo()
372
395
 
373
396
   Prints GL Extension Info into the console
 
397
 
 
398
.. function:: PrintMemInfo()
 
399
 
 
400
   Prints engine statistics into the console
374
401
   
375
402
*********
376
403
Constants
399
426
.. data:: KX_SENSOR_ACTIVE
400
427
.. data:: KX_SENSOR_JUST_DEACTIVATED
401
428
 
 
429
---------------
 
430
Armature Sensor
 
431
---------------
 
432
 
 
433
.. _armaturesensor-type:
 
434
 
 
435
See :class:`bge.types.KX_ArmatureSensor.type`
 
436
 
 
437
.. data:: KX_ARMSENSOR_STATE_CHANGED
 
438
 
 
439
  Detect that the constraint is changing state (active/inactive)
 
440
 
 
441
  :value: 0
 
442
  
 
443
.. data:: KX_ARMSENSOR_LIN_ERROR_BELOW
 
444
 
 
445
  Detect that the constraint linear error is above a threshold
 
446
  
 
447
  :value: 1
 
448
  
 
449
.. data:: KX_ARMSENSOR_LIN_ERROR_ABOVE
 
450
 
 
451
  Detect that the constraint linear error is below a threshold
 
452
 
 
453
  :value: 2
 
454
  
 
455
.. data:: KX_ARMSENSOR_ROT_ERROR_BELOW
 
456
 
 
457
  Detect that the constraint rotation error is above a threshold
 
458
  
 
459
  :value: 3
 
460
  
 
461
.. data:: KX_ARMSENSOR_ROT_ERROR_ABOVE
 
462
 
 
463
  Detect that the constraint rotation error is below a threshold
 
464
  
 
465
  :value: 4
 
466
  
 
467
 
402
468
.. _logic-property-sensor:
403
469
 
404
470
---------------
481
547
.. data:: KX_ACTIONACT_LOOPEND
482
548
.. data:: KX_ACTIONACT_PROPERTY
483
549
 
 
550
-----------------
 
551
Armature Actuator
 
552
-----------------
 
553
 
 
554
 .. _armatureactuator-constants-type:
 
555
   
 
556
See :class:`bge.types.BL_ArmatureActuator.type`
 
557
 
 
558
.. data:: KX_ACT_ARMATURE_RUN
 
559
 
 
560
  Just make sure the armature will be updated on the next graphic frame.
 
561
  This is the only persistent mode of the actuator:
 
562
  it executes automatically once per frame until stopped by a controller
 
563
  
 
564
  :value: 0
 
565
 
 
566
.. data:: KX_ACT_ARMATURE_ENABLE
 
567
 
 
568
  Enable the constraint.
 
569
 
 
570
  :value: 1
 
571
 
 
572
.. data:: KX_ACT_ARMATURE_DISABLE
 
573
 
 
574
  Disable the constraint (runtime constraint values are not updated).
 
575
 
 
576
  :value: 2
 
577
 
 
578
.. data:: KX_ACT_ARMATURE_SETTARGET
 
579
 
 
580
  Change target and subtarget of constraint.
 
581
  
 
582
  :value: 3
 
583
 
 
584
.. data:: KX_ACT_ARMATURE_SETWEIGHT
 
585
 
 
586
  Change weight of constraint (IK only).
 
587
 
 
588
  :value: 4
 
589
 
 
590
.. data:: KX_ACT_ARMATURE_SETINFLUENCE
 
591
 
 
592
  Change influence of constraint.
 
593
 
 
594
  :value: 5
 
595
 
484
596
-------------------
485
597
Constraint Actuator
486
598
-------------------
491
603
 
492
604
* Applicable to Distance constraint:
493
605
 
494
 
  .. data:: KX_ACT_CONSTRAINT_NORMAL
 
606
.. data:: KX_CONSTRAINTACT_NORMAL
495
607
 
496
608
     Activate alignment to surface
497
609
   
498
 
  .. data:: KX_ACT_CONSTRAINT_DISTANCE
 
610
.. data:: KX_CONSTRAINTACT_DISTANCE
499
611
 
500
612
     Activate distance control
501
613
 
502
 
  .. data:: KX_ACT_CONSTRAINT_LOCAL
 
614
.. data:: KX_CONSTRAINTACT_LOCAL
503
615
 
504
616
     Direction of the ray is along the local axis
505
617
 
506
618
* Applicable to Force field constraint:
507
619
 
508
 
  .. data:: KX_ACT_CONSTRAINT_DOROTFH
 
620
.. data:: KX_CONSTRAINTACT_DOROTFH
509
621
 
510
622
     Force field act on rotation as well
511
623
 
512
624
* Applicable to both:
513
625
 
514
 
  .. data:: KX_ACT_CONSTRAINT_MATERIAL
 
626
.. data:: KX_CONSTRAINTACT_MATERIAL
515
627
 
516
628
     Detect material rather than property
517
629
   
518
 
  .. data:: KX_ACT_CONSTRAINT_PERMANENT
 
630
.. data:: KX_CONSTRAINTACT_PERMANENT
519
631
 
520
632
     No deactivation if ray does not hit target
521
633
 
583
695
 
584
696
   Set orientation of Z axis
585
697
   
586
 
.. data:: KX_ACT_CONSTRAINT_FHNX
 
698
.. data:: KX_CONSTRAINTACT_FHNX
587
699
 
588
700
   Set force field along negative X axis
589
701
   
590
 
.. data:: KX_ACT_CONSTRAINT_FHNY
 
702
.. data:: KX_CONSTRAINTACT_FHNY
591
703
 
592
704
   Set force field along negative Y axis
593
705
   
594
 
.. data:: KX_ACT_CONSTRAINT_FHNZ
 
706
.. data:: KX_CONSTRAINTACT_FHNZ
595
707
 
596
708
   Set force field along negative Z axis
597
709
   
598
 
.. data:: KX_ACT_CONSTRAINT_FHPX
 
710
.. data:: KX_CONSTRAINTACT_FHPX
599
711
 
600
712
   Set force field along positive X axis
601
713
 
602
 
.. data:: KX_ACT_CONSTRAINT_FHPY
 
714
.. data:: KX_CONSTRAINTACT_FHPY
603
715
 
604
716
   Set force field along positive Y axis
605
717
   
606
 
.. data:: KX_ACT_CONSTRAINT_FHPZ
 
718
.. data:: KX_CONSTRAINTACT_FHPZ
607
719
 
608
720
   Set force field along positive Z axis
609
721
 
706
818
.. data:: KX_SOUNDACT_LOOPBIDIRECTIONAL_STOP
707
819
 
708
820
   :value: 6
709
 
   
 
821
 
 
822
-----------------
 
823
Steering Actuator
 
824
-----------------
 
825
 
 
826
.. _logic-steering-actuator:
 
827
 
 
828
See :class:`bge.types.KX_SteeringActuator.behavior`
 
829
 
 
830
.. data:: KX_STEERING_SEEK
 
831
 
 
832
   :value: 1
 
833
 
 
834
.. data:: KX_STEERING_FLEE
 
835
 
 
836
   :value: 2
 
837
 
 
838
.. data:: KX_STEERING_PATHFOLLOWING
 
839
 
 
840
   :value: 3
 
841
 
710
842
 
711
843
=======
712
844
Various
713
845
=======
714
846
 
 
847
---------
 
848
2D Filter
 
849
---------
 
850
 
 
851
.. data:: RAS_2DFILTER_BLUR
 
852
 
 
853
   :value: 2
 
854
   
 
855
.. data:: RAS_2DFILTER_CUSTOMFILTER
 
856
 
 
857
   Customer filter, the code code is set via shaderText property.
 
858
   
 
859
   :value: 12
 
860
   
 
861
.. data:: RAS_2DFILTER_DILATION
 
862
 
 
863
   :value: 4
 
864
   
 
865
.. data:: RAS_2DFILTER_DISABLED
 
866
 
 
867
   Disable the filter that is currently active
 
868
 
 
869
   :value: -1
 
870
   
 
871
.. data:: RAS_2DFILTER_ENABLED
 
872
 
 
873
   Enable the filter that was previously disabled
 
874
 
 
875
   :value: -2
 
876
   
 
877
.. data:: RAS_2DFILTER_EROSION
 
878
 
 
879
   :value: 5
 
880
   
 
881
.. data:: RAS_2DFILTER_GRAYSCALE
 
882
 
 
883
   :value: 9
 
884
   
 
885
.. data:: RAS_2DFILTER_INVERT
 
886
 
 
887
   :value: 11
 
888
   
 
889
.. data:: RAS_2DFILTER_LAPLACIAN
 
890
 
 
891
   :value: 6
 
892
   
 
893
.. data:: RAS_2DFILTER_MOTIONBLUR
 
894
 
 
895
   Create and enable preset filters
 
896
 
 
897
   :value: 1
 
898
   
 
899
.. data:: RAS_2DFILTER_NOFILTER
 
900
 
 
901
   Disable and destroy the filter that is currently active
 
902
 
 
903
   :value: 0
 
904
   
 
905
.. data:: RAS_2DFILTER_PREWITT
 
906
 
 
907
   :value: 8
 
908
   
 
909
.. data:: RAS_2DFILTER_SEPIA
 
910
 
 
911
   :value: 10
 
912
   
 
913
.. data:: RAS_2DFILTER_SHARPEN
 
914
 
 
915
   :value: 3
 
916
   
 
917
.. data:: RAS_2DFILTER_SOBEL
 
918
 
 
919
   :value: 7
 
920
 
 
921
----------------
 
922
Armature Channel
 
923
----------------
 
924
.. _armaturechannel-constants-rotation-mode:
 
925
 
 
926
See :class:`bge.types.BL_ArmatureChannel.rotation_mode`
 
927
 
 
928
.. note:
 
929
  euler mode are named as in Blender UI but the actual axis order is reversed
 
930
 
 
931
.. data:: ROT_MODE_QUAT
 
932
 
 
933
  Use quaternion in rotation attribute to update bone rotation.
 
934
 
 
935
  :value: 0
 
936
 
 
937
.. data:: ROT_MODE_XYZ
 
938
 
 
939
  Use euler_rotation and apply angles on bone's Z, Y, X axis successively.
 
940
 
 
941
  :value: 1
 
942
 
 
943
.. data:: ROT_MODE_XZY
 
944
 
 
945
  Use euler_rotation and apply angles on bone's Y, Z, X axis successively.
 
946
 
 
947
  :value: 2
 
948
 
 
949
.. data:: ROT_MODE_YXZ
 
950
 
 
951
  Use euler_rotation and apply angles on bone's Z, X, Y axis successively.
 
952
 
 
953
  :value: 3
 
954
 
 
955
.. data:: ROT_MODE_YZX
 
956
 
 
957
  Use euler_rotation and apply angles on bone's X, Z, Y axis successively.
 
958
 
 
959
  :value: 4
 
960
 
 
961
.. data:: ROT_MODE_ZXY
 
962
 
 
963
  Use euler_rotation and apply angles on bone's Y, X, Z axis successively.
 
964
 
 
965
  :value: 5
 
966
 
 
967
.. data:: ROT_MODE_ZYX
 
968
 
 
969
  Use euler_rotation and apply angles on bone's X, Y, Z axis successively.
 
970
 
 
971
  :value: 6
 
972
 
 
973
 
 
974
-------------------
 
975
Armature Constraint
 
976
-------------------
 
977
.. _armatureconstraint-constants-type:
 
978
 
 
979
See :class:`bge.types.BL_ArmatureConstraint.type`
 
980
 
 
981
.. data:: CONSTRAINT_TYPE_TRACKTO
 
982
.. data:: CONSTRAINT_TYPE_KINEMATIC
 
983
.. data:: CONSTRAINT_TYPE_ROTLIKE
 
984
.. data:: CONSTRAINT_TYPE_LOCLIKE
 
985
.. data:: CONSTRAINT_TYPE_MINMAX
 
986
.. data:: CONSTRAINT_TYPE_SIZELIKE
 
987
.. data:: CONSTRAINT_TYPE_LOCKTRACK
 
988
.. data:: CONSTRAINT_TYPE_STRETCHTO
 
989
.. data:: CONSTRAINT_TYPE_CLAMPTO
 
990
.. data:: CONSTRAINT_TYPE_TRANSFORM
 
991
.. data:: CONSTRAINT_TYPE_DISTLIMIT
 
992
 
 
993
.. _armatureconstraint-constants-ik-type:
 
994
 
 
995
See :class:`bge.types.BL_ArmatureConstraint.ik_type`
 
996
  
 
997
.. data:: CONSTRAINT_IK_COPYPOSE
 
998
 
 
999
   constraint is trying to match the position and eventually the rotation of the target.
 
1000
 
 
1001
   :value: 0
 
1002
 
 
1003
.. data:: CONSTRAINT_IK_DISTANCE
 
1004
 
 
1005
   Constraint is maintaining a certain distance to target subject to ik_mode
 
1006
 
 
1007
   :value: 1
 
1008
 
 
1009
.. _armatureconstraint-constants-ik-flag:
 
1010
 
 
1011
See :class:`bge.types.BL_ArmatureConstraint.ik_flag`
 
1012
 
 
1013
.. data:: CONSTRAINT_IK_FLAG_TIP
 
1014
 
 
1015
   Set when the constraint operates on the head of the bone and not the tail
 
1016
 
 
1017
   :value: 1
 
1018
 
 
1019
.. data:: CONSTRAINT_IK_FLAG_ROT
 
1020
 
 
1021
   Set when the constraint tries to match the orientation of the target
 
1022
 
 
1023
   :value: 2
 
1024
 
 
1025
.. data:: CONSTRAINT_IK_FLAG_STRETCH
 
1026
 
 
1027
   Set when the armature is allowed to stretch (only the bones with stretch factor > 0.0)
 
1028
 
 
1029
   :value: 16
 
1030
   
 
1031
.. data:: CONSTRAINT_IK_FLAG_POS
 
1032
 
 
1033
   Set when the constraint tries to match the position of the target.
 
1034
 
 
1035
   :value: 32
 
1036
 
 
1037
.. _armatureconstraint-constants-ik-mode:
 
1038
 
 
1039
See :class:`bge.types.BL_ArmatureConstraint.ik_mode`
 
1040
 
 
1041
.. data:: CONSTRAINT_IK_MODE_INSIDE
 
1042
 
 
1043
   The constraint tries to keep the bone within ik_dist of target
 
1044
 
 
1045
   :value: 0
 
1046
 
 
1047
.. data:: CONSTRAINT_IK_MODE_OUTSIDE
 
1048
 
 
1049
   The constraint tries to keep the bone outside ik_dist of the target
 
1050
 
 
1051
   :value: 1
 
1052
   
 
1053
.. data:: CONSTRAINT_IK_MODE_ONSURFACE
 
1054
 
 
1055
   The constraint tries to keep the bone exactly at ik_dist of the target.
 
1056
 
 
1057
   :value: 2
 
1058
 
715
1059
.. _input-status:
716
1060
 
 
1061
----------------
 
1062
Blender Material
 
1063
----------------
 
1064
 
 
1065
.. data:: BL_DST_ALPHA
 
1066
.. data:: BL_DST_COLOR
 
1067
.. data:: BL_ONE
 
1068
.. data:: BL_ONE_MINUS_DST_ALPHA
 
1069
.. data:: BL_ONE_MINUS_DST_COLOR
 
1070
.. data:: BL_ONE_MINUS_SRC_ALPHA
 
1071
.. data:: BL_ONE_MINUS_SRC_COLOR
 
1072
.. data:: BL_SRC_ALPHA
 
1073
.. data:: BL_SRC_ALPHA_SATURATE
 
1074
.. data:: BL_SRC_COLOR
 
1075
.. data:: BL_ZERO
 
1076
 
717
1077
------------
718
1078
Input Status
719
1079
------------
726
1086
.. data:: KX_INPUT_JUST_RELEASED
727
1087
 
728
1088
-------------
 
1089
KX_GameObject
 
1090
-------------
 
1091
.. _gameobject-playaction-mode:
 
1092
 
 
1093
See :class:`bge.types.KX_GameObject.playAction`
 
1094
 
 
1095
.. data:: KX_ACTION_MODE_PLAY
 
1096
 
 
1097
   Play the action once.
 
1098
   
 
1099
   :value: 0
 
1100
 
 
1101
.. data:: KX_ACTION_MODE_LOOP
 
1102
 
 
1103
   Loop the action (repeat it).
 
1104
   
 
1105
   :value: 1
 
1106
 
 
1107
.. data:: KX_ACTION_MODE_PING_PONG
 
1108
 
 
1109
   Play the action one direct then back the other way when it has completed.
 
1110
   
 
1111
   :value: 2
 
1112
 
 
1113
 
 
1114
-------------
729
1115
Mouse Buttons
730
1116
-------------
731
1117
 
735
1121
.. data:: KX_MOUSE_BUT_MIDDLE
736
1122
.. data:: KX_MOUSE_BUT_RIGHT
737
1123
 
 
1124
--------------------------
 
1125
Navigation Mesh Draw Modes
 
1126
--------------------------
 
1127
 
 
1128
.. _navmesh-draw-mode:
 
1129
 
 
1130
.. data:: RM_WALLS
 
1131
 
 
1132
   Draw only the walls.
 
1133
 
 
1134
.. data:: RM_POLYS
 
1135
 
 
1136
   Draw only polygons.
 
1137
 
 
1138
.. data:: RM_TRIS
 
1139
 
 
1140
   Draw triangle mesh.
 
1141
   
 
1142
------
 
1143
Shader
 
1144
------
 
1145
 
 
1146
.. data:: VIEWMATRIX
 
1147
.. data:: VIEWMATRIX_INVERSE
 
1148
.. data:: VIEWMATRIX_INVERSETRANSPOSE
 
1149
.. data:: VIEWMATRIX_TRANSPOSE
 
1150
.. data:: MODELMATRIX
 
1151
.. data:: MODELMATRIX_INVERSE
 
1152
.. data:: MODELMATRIX_INVERSETRANSPOSE
 
1153
.. data:: MODELMATRIX_TRANSPOSE
 
1154
.. data:: MODELVIEWMATRIX
 
1155
.. data:: MODELVIEWMATRIX_INVERSE
 
1156
.. data:: MODELVIEWMATRIX_INVERSETRANSPOSE
 
1157
.. data:: MODELVIEWMATRIX_TRANSPOSE
 
1158
.. data:: CAM_POS
 
1159
 
 
1160
   Current camera position
 
1161
 
 
1162
.. data:: CONSTANT_TIMER
 
1163
 
 
1164
   User a timer for the uniform value.
 
1165
 
 
1166
.. data:: SHD_TANGENT
 
1167
 
738
1168
------
739
1169
States
740
1170
------
779
1209
.. data:: KX_STATE_OP_CLR
780
1210
 
781
1211
   Substract bits to state mask
782
 
   
 
1212
 
783
1213
   :value: 0
784
1214
 
785
1215
.. data:: KX_STATE_OP_CPY
786
1216
 
787
1217
   Copy state mask
788
 
   
 
1218
 
789
1219
   :value: 1
790
1220
   
791
1221
.. data:: KX_STATE_OP_NEG
792
1222
 
793
1223
   Invert bits to state mask
794
 
   
 
1224
 
795
1225
   :value: 2
796
 
   
 
1226
 
797
1227
.. data:: KX_STATE_OP_SET
798
1228
 
799
1229
   Add bits to state mask
800
 
   
 
1230
 
801
1231
   :value: 3
802
 
   
 
1232
 
803
1233
.. _Two-D-FilterActuator-mode:
804
 
 
805
 
---------
806
 
2D Filter
807
 
---------
808
 
 
809
 
.. data:: RAS_2DFILTER_BLUR
810
 
 
811
 
   :value: 2
812
 
   
813
 
.. data:: RAS_2DFILTER_CUSTOMFILTER
814
 
 
815
 
   Customer filter, the code code is set via shaderText property.
816
 
   
817
 
   :value: 12
818
 
   
819
 
.. data:: RAS_2DFILTER_DILATION
820
 
 
821
 
   :value: 4
822
 
   
823
 
.. data:: RAS_2DFILTER_DISABLED
824
 
 
825
 
   Disable the filter that is currently active
826
 
 
827
 
   :value: -1
828
 
   
829
 
.. data:: RAS_2DFILTER_ENABLED
830
 
 
831
 
   Enable the filter that was previously disabled
832
 
 
833
 
   :value: -2
834
 
   
835
 
.. data:: RAS_2DFILTER_EROSION
836
 
 
837
 
   :value: 5
838
 
   
839
 
.. data:: RAS_2DFILTER_GRAYSCALE
840
 
 
841
 
   :value: 9
842
 
   
843
 
.. data:: RAS_2DFILTER_INVERT
844
 
 
845
 
   :value: 11
846
 
   
847
 
.. data:: RAS_2DFILTER_LAPLACIAN
848
 
 
849
 
   :value: 6
850
 
   
851
 
.. data:: RAS_2DFILTER_MOTIONBLUR
852
 
 
853
 
   Create and enable preset filters
854
 
 
855
 
   :value: 1
856
 
   
857
 
.. data:: RAS_2DFILTER_NOFILTER
858
 
 
859
 
   Disable and destroy the filter that is currently active
860
 
 
861
 
   :value: 0
862
 
   
863
 
.. data:: RAS_2DFILTER_PREWITT
864
 
 
865
 
   :value: 8
866
 
   
867
 
.. data:: RAS_2DFILTER_SEPIA
868
 
 
869
 
   :value: 10
870
 
   
871
 
.. data:: RAS_2DFILTER_SHARPEN
872
 
 
873
 
   :value: 3
874
 
   
875
 
.. data:: RAS_2DFILTER_SOBEL
876
 
 
877
 
   :value: 7
878
 
   
879
 
------
880
 
Shader
881
 
------
882
 
 
883
 
.. data:: VIEWMATRIX
884
 
.. data:: VIEWMATRIX_INVERSE
885
 
.. data:: VIEWMATRIX_INVERSETRANSPOSE
886
 
.. data:: VIEWMATRIX_TRANSPOSE
887
 
.. data:: MODELMATRIX
888
 
.. data:: MODELMATRIX_INVERSE
889
 
.. data:: MODELMATRIX_INVERSETRANSPOSE
890
 
.. data:: MODELMATRIX_TRANSPOSE
891
 
.. data:: MODELVIEWMATRIX
892
 
.. data:: MODELVIEWMATRIX_INVERSE
893
 
.. data:: MODELVIEWMATRIX_INVERSETRANSPOSE
894
 
.. data:: MODELVIEWMATRIX_TRANSPOSE
895
 
.. data:: CAM_POS
896
 
 
897
 
   Current camera position
898
 
 
899
 
.. data:: CONSTANT_TIMER
900
 
 
901
 
   User a timer for the uniform value.
902
 
 
903
 
.. data:: SHD_TANGENT
904
 
 
905
 
----------------
906
 
Blender Material
907
 
----------------
908
 
 
909
 
.. data:: BL_DST_ALPHA
910
 
.. data:: BL_DST_COLOR
911
 
.. data:: BL_ONE
912
 
.. data:: BL_ONE_MINUS_DST_ALPHA
913
 
.. data:: BL_ONE_MINUS_DST_COLOR
914
 
.. data:: BL_ONE_MINUS_SRC_ALPHA
915
 
.. data:: BL_ONE_MINUS_SRC_COLOR
916
 
.. data:: BL_SRC_ALPHA
917
 
.. data:: BL_SRC_ALPHA_SATURATE
918
 
.. data:: BL_SRC_COLOR
919
 
.. data:: BL_ZERO