|
|
@@ -4850,302 +4850,21 @@ Properties:
|
|
|
- unsigned format
|
|
|
- bool autoUpdate
|
|
|
|
|
|
-\section LuaScriptAPI_GlobalFunctions Global functions
|
|
|
-- Context* GetContext()
|
|
|
-- Object* GetEventSender()
|
|
|
-- EventHandler* GetEventHandler() const
|
|
|
-- Audio* GetAudio()
|
|
|
-- Console* GetConsole()
|
|
|
-- DebugHud* GetDebugHud()
|
|
|
-- DebugRenderer* GetDebugRenderer()
|
|
|
-- Engine* GetEngine()
|
|
|
-- FileSystem* GetFileSystem()
|
|
|
-- Graphics* GetGraphics()
|
|
|
-- Input* GetInput()
|
|
|
-- Log* GetLog()
|
|
|
-- Network* GetNetwork()
|
|
|
-- PhysicsWorld* GetPhysicsWorld()
|
|
|
-- Renderer* GetRenderer()
|
|
|
-- ResourceCache* GetCache()
|
|
|
-- Time* GetTime()
|
|
|
-- UI* GetUI()
|
|
|
-- void ErrorDialog(const String title, const String message)
|
|
|
-- void ErrorExit(const String message = String::EMPTY, int exitCode = EXIT_FAILURE)
|
|
|
-- void OpenConsoleWindow()
|
|
|
-- void PrintLine(const String str, bool error = false)
|
|
|
-- const Vector<String>& GetArguments()
|
|
|
-- String GetConsoleInput()
|
|
|
-- String GetPlatform()
|
|
|
-- unsigned GetNumPhysicalCPUs()
|
|
|
-- unsigned GetNumLogicalCPUs()
|
|
|
-- bool ToBool(const String source)
|
|
|
-- float ToFloat(const String source)
|
|
|
-- int ToInt(const String source)
|
|
|
-- unsigned ToUInt(const String source)
|
|
|
-- Color ToColor(const String source)
|
|
|
-- IntRect ToIntRect(const String source)
|
|
|
-- IntVector2 ToIntVector2(const String source)
|
|
|
-- Quaternion ToQuaternion(const String source)
|
|
|
-- Rect ToRect(const String source)
|
|
|
-- Vector2 ToVector2(const String source)
|
|
|
-- Vector3 ToVector3(const String source)
|
|
|
-- Vector4 ToVector4(const String source, bool allowMissingCoords = false)
|
|
|
-- String ToString(void* value)
|
|
|
-- String ToStringHex(unsigned value)
|
|
|
-- bool IsAlpha(unsigned ch)
|
|
|
-- bool IsDigit(unsigned ch)
|
|
|
-- String GetPath(const String fullPath)
|
|
|
-- String GetFileName(const String fullPath)
|
|
|
-- String GetExtension(const String fullPath, bool lowercaseExtension = true)
|
|
|
-- String GetFileNameAndExtension(const String fullPath, bool lowercaseExtension = false)
|
|
|
-- String ReplaceExtension(const String fullPath, const String newExtension)
|
|
|
-- String AddTrailingSlash(const String pathName)
|
|
|
-- String RemoveTrailingSlash(const String pathName)
|
|
|
-- String GetParentPath(const String pathName)
|
|
|
-- String GetInternalPath(const String pathName)
|
|
|
-- String GetNativePath(const String pathName)
|
|
|
-- bool IsAbsolutePath(const String pathName)
|
|
|
-- void SendEvent(const String eventName, VariantMap& eventData)
|
|
|
-- void SubscribeToEvent(const String eventName, const String functionName)
|
|
|
-- void UnsubscribeFromEvent(const String eventName)
|
|
|
-- void UnsubscribeFromAllEvents()
|
|
|
-- void SubscribeToEvent(void* sender, const String eventName, const String functionName)
|
|
|
-- void UnsubscribeFromEvent(void* sender, const String eventName)
|
|
|
-- void UnsubscribeFromEvents(void* sender)
|
|
|
-- float Lerp(float lhs, float rhs, float t)
|
|
|
-- float Min(float lhs, float rhs)
|
|
|
-- float Max(float lhs, float rhs)
|
|
|
-- float Abs(float value)
|
|
|
-- float Sign(float value)
|
|
|
-- float Clamp(float value, float min, float max)
|
|
|
-- float SmoothStep(float lhs, float rhs, float t)
|
|
|
-- bool Equals(float lhs, float rhs)
|
|
|
-- float Random()
|
|
|
-- float Random(float range)
|
|
|
-- float Random(float min, float max)
|
|
|
-- int RandomInt(int range)
|
|
|
-- int RandomInt(int min, int max)
|
|
|
-- void SetRandomSeed(unsigned seed)
|
|
|
-- unsigned GetRandomSeed()
|
|
|
-- int Rand()
|
|
|
+\section LuaScriptAPI_Enums Enumerations
|
|
|
+
|
|
|
+
|
|
|
+### SoundType
|
|
|
|
|
|
-\section LuaScriptAPI_GlobalConstants Global constants
|
|
|
-- unsigned DEBUGHUD_SHOW_NONE
|
|
|
-- unsigned DEBUGHUD_SHOW_STATS
|
|
|
-- unsigned DEBUGHUD_SHOW_MODE
|
|
|
-- unsigned DEBUGHUD_SHOW_PROFILER
|
|
|
-- unsigned DEBUGHUD_SHOW_ALL
|
|
|
-- int QUALITY_LOW
|
|
|
-- int QUALITY_MEDIUM
|
|
|
-- int QUALITY_HIGH
|
|
|
-- int QUALITY_MAX
|
|
|
-- int SHADOWQUALITY_LOW_16BIT
|
|
|
-- int SHADOWQUALITY_LOW_24BIT
|
|
|
-- int SHADOWQUALITY_HIGH_16BIT
|
|
|
-- int SHADOWQUALITY_HIGH_24BIT
|
|
|
-- unsigned CLEAR_COLOR
|
|
|
-- unsigned CLEAR_DEPTH
|
|
|
-- unsigned CLEAR_STENCIL
|
|
|
-- unsigned DRAWABLE_GEOMETRY
|
|
|
-- unsigned DRAWABLE_LIGHT
|
|
|
-- unsigned DRAWABLE_ZONE
|
|
|
-- unsigned DRAWABLE_ANY
|
|
|
-- unsigned DEFAULT_VIEWMASK
|
|
|
-- unsigned DEFAULT_LIGHTMASK
|
|
|
-- unsigned DEFAULT_SHADOWMASK
|
|
|
-- unsigned DEFAULT_ZONEMASK
|
|
|
-- int MAX_VERTEX_LIGHTS
|
|
|
-- float ANIMATION_LOD_BASESCALE
|
|
|
-- unsigned char CHANNEL_POSITION
|
|
|
-- unsigned char CHANNEL_ROTATION
|
|
|
-- unsigned char CHANNEL_SCALE
|
|
|
-- unsigned VO_NONE
|
|
|
-- unsigned VO_LOW_MATERIAL_QUALITY
|
|
|
-- unsigned VO_DISABLE_SHADOWS
|
|
|
-- unsigned VO_DISABLE_OCCLUSION
|
|
|
-- int SHADOW_MIN_PIXELS
|
|
|
-- int INSTANCING_BUFFER_DEFAULT_SIZE
|
|
|
-- unsigned SCAN_FILES
|
|
|
-- unsigned SCAN_DIRS
|
|
|
-- unsigned SCAN_HIDDEN
|
|
|
-- int LOG_DEBUG
|
|
|
-- int LOG_INFO
|
|
|
-- int LOG_WARNING
|
|
|
-- int LOG_ERROR
|
|
|
-- int LOG_NONE
|
|
|
-- int MOUSEB_LEFT
|
|
|
-- int MOUSEB_MIDDLE
|
|
|
-- int MOUSEB_RIGHT
|
|
|
-- int QUAL_SHIFT
|
|
|
-- int QUAL_CTRL
|
|
|
-- int QUAL_ALT
|
|
|
-- int QUAL_ANY
|
|
|
-- int KEY_1
|
|
|
-- int KEY_2
|
|
|
-- int KEY_3
|
|
|
-- int KEY_4
|
|
|
-- int KEY_5
|
|
|
-- int KEY_6
|
|
|
-- int KEY_7
|
|
|
-- int KEY_8
|
|
|
-- int KEY_9
|
|
|
-- int KEY_0
|
|
|
-- int KEY_A
|
|
|
-- int KEY_B
|
|
|
-- int KEY_C
|
|
|
-- int KEY_D
|
|
|
-- int KEY_E
|
|
|
-- int KEY_F
|
|
|
-- int KEY_G
|
|
|
-- int KEY_H
|
|
|
-- int KEY_I
|
|
|
-- int KEY_J
|
|
|
-- int KEY_K
|
|
|
-- int KEY_L
|
|
|
-- int KEY_M
|
|
|
-- int KEY_N
|
|
|
-- int KEY_O
|
|
|
-- int KEY_P
|
|
|
-- int KEY_Q
|
|
|
-- int KEY_R
|
|
|
-- int KEY_S
|
|
|
-- int KEY_T
|
|
|
-- int KEY_U
|
|
|
-- int KEY_V
|
|
|
-- int KEY_W
|
|
|
-- int KEY_X
|
|
|
-- int KEY_Y
|
|
|
-- int KEY_Z
|
|
|
-- int KEY_BACKSPACE
|
|
|
-- int KEY_TAB
|
|
|
-- int KEY_RETURN
|
|
|
-- int KEY_RETURN2
|
|
|
-- int KEY_KP_ENTER
|
|
|
-- int KEY_SHIFT
|
|
|
-- int KEY_CTRL
|
|
|
-- int KEY_ALT
|
|
|
-- int KEY_PAUSE
|
|
|
-- int KEY_CAPSLOCK
|
|
|
-- int KEY_ESC
|
|
|
-- int KEY_SPACE
|
|
|
-- int KEY_PAGEUP
|
|
|
-- int KEY_PAGEDOWN
|
|
|
-- int KEY_END
|
|
|
-- int KEY_HOME
|
|
|
-- int KEY_LEFT
|
|
|
-- int KEY_UP
|
|
|
-- int KEY_RIGHT
|
|
|
-- int KEY_DOWN
|
|
|
-- int KEY_SELECT
|
|
|
-- int KEY_PRINTSCREEN
|
|
|
-- int KEY_INSERT
|
|
|
-- int KEY_DELETE
|
|
|
-- int KEY_LWIN
|
|
|
-- int KEY_RWIN
|
|
|
-- int KEY_APPS
|
|
|
-- int KEY_NUMPAD0
|
|
|
-- int KEY_NUMPAD1
|
|
|
-- int KEY_NUMPAD2
|
|
|
-- int KEY_NUMPAD3
|
|
|
-- int KEY_NUMPAD4
|
|
|
-- int KEY_NUMPAD5
|
|
|
-- int KEY_NUMPAD6
|
|
|
-- int KEY_NUMPAD7
|
|
|
-- int KEY_NUMPAD8
|
|
|
-- int KEY_NUMPAD9
|
|
|
-- int KEY_MULTIPLY
|
|
|
-- int KEY_ADD
|
|
|
-- int KEY_SUBTRACT
|
|
|
-- int KEY_DECIMAL
|
|
|
-- int KEY_DIVIDE
|
|
|
-- int KEY_F1
|
|
|
-- int KEY_F2
|
|
|
-- int KEY_F3
|
|
|
-- int KEY_F4
|
|
|
-- int KEY_F5
|
|
|
-- int KEY_F6
|
|
|
-- int KEY_F7
|
|
|
-- int KEY_F8
|
|
|
-- int KEY_F9
|
|
|
-- int KEY_F10
|
|
|
-- int KEY_F11
|
|
|
-- int KEY_F12
|
|
|
-- int KEY_F13
|
|
|
-- int KEY_F14
|
|
|
-- int KEY_F15
|
|
|
-- int KEY_F16
|
|
|
-- int KEY_F17
|
|
|
-- int KEY_F18
|
|
|
-- int KEY_F19
|
|
|
-- int KEY_F20
|
|
|
-- int KEY_F21
|
|
|
-- int KEY_F22
|
|
|
-- int KEY_F23
|
|
|
-- int KEY_F24
|
|
|
-- int KEY_NUMLOCK
|
|
|
-- int KEY_SCROLLLOCK
|
|
|
-- int KEY_LSHIFT
|
|
|
-- int KEY_RSHIFT
|
|
|
-- int KEY_LCTRL
|
|
|
-- int KEY_RCTRL
|
|
|
-- int KEY_LALT
|
|
|
-- int KEY_RALT
|
|
|
-- int HAT_CENTER
|
|
|
-- int HAT_UP
|
|
|
-- int HAT_RIGHT
|
|
|
-- int HAT_DOWN
|
|
|
-- int HAT_LEFT
|
|
|
-- int CONTROLLER_BUTTON_A
|
|
|
-- int CONTROLLER_BUTTON_B
|
|
|
-- int CONTROLLER_BUTTON_X
|
|
|
-- int CONTROLLER_BUTTON_Y
|
|
|
-- int CONTROLLER_BUTTON_BACK
|
|
|
-- int CONTROLLER_BUTTON_GUIDE
|
|
|
-- int CONTROLLER_BUTTON_START
|
|
|
-- int CONTROLLER_BUTTON_LEFTSTICK
|
|
|
-- int CONTROLLER_BUTTON_RIGHTSTICK
|
|
|
-- int CONTROLLER_BUTTON_LEFTSHOULDER
|
|
|
-- int CONTROLLER_BUTTON_RIGHTSHOULDER
|
|
|
-- int CONTROLLER_BUTTON_DPAD_UP
|
|
|
-- int CONTROLLER_BUTTON_DPAD_DOWN
|
|
|
-- int CONTROLLER_BUTTON_DPAD_LEFT
|
|
|
-- int CONTROLLER_BUTTON_DPAD_RIGHT
|
|
|
-- int CONTROLLER_AXIS_LEFTX
|
|
|
-- int CONTROLLER_AXIS_LEFTY
|
|
|
-- int CONTROLLER_AXIS_RIGHTX
|
|
|
-- int CONTROLLER_AXIS_RIGHTY
|
|
|
-- int CONTROLLER_AXIS_TRIGGERLEFT
|
|
|
-- int CONTROLLER_AXIS_TRIGGERRIGHT
|
|
|
-- float M_PI
|
|
|
-- int M_MIN_INT
|
|
|
-- int M_MAX_INT
|
|
|
-- unsigned M_MIN_UNSIGNED
|
|
|
-- unsigned M_MAX_UNSIGNED
|
|
|
-- float M_EPSILON
|
|
|
-- float M_LARGE_EPSILON
|
|
|
-- float M_MIN_NEARCLIP
|
|
|
-- float M_MAX_FOV
|
|
|
-- float M_LARGE_VALUE
|
|
|
-- float M_INFINITY
|
|
|
-- float M_DEGTORAD
|
|
|
-- float M_DEGTORAD_2
|
|
|
-- float M_RADTODEG
|
|
|
-- unsigned NUM_FRUSTUM_PLANES
|
|
|
-- unsigned NUM_FRUSTUM_VERTICES
|
|
|
-- unsigned FIRST_REPLICATED_ID
|
|
|
-- unsigned LAST_REPLICATED_ID
|
|
|
-- unsigned FIRST_LOCAL_ID
|
|
|
-- unsigned LAST_LOCAL_ID
|
|
|
-- unsigned DD_DISABLED
|
|
|
-- unsigned DD_SOURCE
|
|
|
-- unsigned DD_TARGET
|
|
|
-- unsigned DD_SOURCE_AND_TARGET
|
|
|
- int SOUND_EFFECT
|
|
|
- int SOUND_AMBIENT
|
|
|
- int SOUND_VOICE
|
|
|
- int SOUND_MUSIC
|
|
|
- int SOUND_MASTER
|
|
|
- int MAX_SOUND_TYPES
|
|
|
+
|
|
|
+
|
|
|
+### VariantType
|
|
|
+
|
|
|
- int VAR_NONE
|
|
|
- int VAR_INT
|
|
|
- int VAR_BOOL
|
|
|
@@ -5165,14 +4884,26 @@ Properties:
|
|
|
- int VAR_INTRECT
|
|
|
- int VAR_INTVECTOR2
|
|
|
- int MAX_VAR_TYPES
|
|
|
+
|
|
|
+
|
|
|
+### PrimitiveType
|
|
|
+
|
|
|
- int TRIANGLE_LIST
|
|
|
- int LINE_LIST
|
|
|
+
|
|
|
+
|
|
|
+### GeometryType
|
|
|
+
|
|
|
- int GEOM_STATIC
|
|
|
- int GEOM_SKINNED
|
|
|
- int GEOM_INSTANCED
|
|
|
- int GEOM_BILLBOARD
|
|
|
- int GEOM_STATIC_NOINSTANCING
|
|
|
- int MAX_GEOMETRYTYPES
|
|
|
+
|
|
|
+
|
|
|
+### BlendMode
|
|
|
+
|
|
|
- int BLEND_REPLACE
|
|
|
- int BLEND_ADD
|
|
|
- int BLEND_MULTIPLY
|
|
|
@@ -5181,6 +4912,10 @@ Properties:
|
|
|
- int BLEND_PREMULALPHA
|
|
|
- int BLEND_INVDESTALPHA
|
|
|
- int MAX_BLENDMODES
|
|
|
+
|
|
|
+
|
|
|
+### CompareMode
|
|
|
+
|
|
|
- int CMP_ALWAYS
|
|
|
- int CMP_EQUAL
|
|
|
- int CMP_NOTEQUAL
|
|
|
@@ -5189,22 +4924,42 @@ Properties:
|
|
|
- int CMP_GREATER
|
|
|
- int CMP_GREATEREQUAL
|
|
|
- int MAX_COMPAREMODES
|
|
|
+
|
|
|
+
|
|
|
+### CullMode
|
|
|
+
|
|
|
- int CULL_NONE
|
|
|
- int CULL_CCW
|
|
|
- int CULL_CW
|
|
|
- int MAX_CULLMODES
|
|
|
+
|
|
|
+
|
|
|
+### FillMode
|
|
|
+
|
|
|
- int FILL_SOLID
|
|
|
- int FILL_WIREFRAME
|
|
|
- int FILL_POINT
|
|
|
+
|
|
|
+
|
|
|
+### StencilOp
|
|
|
+
|
|
|
- int OP_KEEP
|
|
|
- int OP_ZERO
|
|
|
- int OP_REF
|
|
|
- int OP_INCR
|
|
|
- int OP_DECR
|
|
|
+
|
|
|
+
|
|
|
+### LockState
|
|
|
+
|
|
|
- int LOCK_NONE
|
|
|
- int LOCK_HARDWARE
|
|
|
- int LOCK_SHADOW
|
|
|
- int LOCK_SCRATCH
|
|
|
+
|
|
|
+
|
|
|
+### VertexElement
|
|
|
+
|
|
|
- int ELEMENT_POSITION
|
|
|
- int ELEMENT_NORMAL
|
|
|
- int ELEMENT_COLOR
|
|
|
@@ -5219,25 +4974,45 @@ Properties:
|
|
|
- int ELEMENT_INSTANCEMATRIX2
|
|
|
- int ELEMENT_INSTANCEMATRIX3
|
|
|
- int MAX_VERTEX_ELEMENTS
|
|
|
+
|
|
|
+
|
|
|
+### TextureFilterMode
|
|
|
+
|
|
|
- int FILTER_NEAREST
|
|
|
- int FILTER_BILINEAR
|
|
|
- int FILTER_TRILINEAR
|
|
|
- int FILTER_ANISOTROPIC
|
|
|
- int FILTER_DEFAULT
|
|
|
- int MAX_FILTERMODES
|
|
|
+
|
|
|
+
|
|
|
+### TextureAddressMode
|
|
|
+
|
|
|
- int ADDRESS_WRAP
|
|
|
- int ADDRESS_MIRROR
|
|
|
- int ADDRESS_CLAMP
|
|
|
- int ADDRESS_BORDER
|
|
|
- int MAX_ADDRESSMODES
|
|
|
+
|
|
|
+
|
|
|
+### TextureCoordinate
|
|
|
+
|
|
|
- int COORD_U
|
|
|
- int COORD_V
|
|
|
- int COORD_W
|
|
|
- int MAX_COORDS
|
|
|
+
|
|
|
+
|
|
|
+### TextureUsage
|
|
|
+
|
|
|
- int TEXTURE_STATIC
|
|
|
- int TEXTURE_DYNAMIC
|
|
|
- int TEXTURE_RENDERTARGET
|
|
|
- int TEXTURE_DEPTHSTENCIL
|
|
|
+
|
|
|
+
|
|
|
+### CubeMapFace
|
|
|
+
|
|
|
- int FACE_POSITIVE_X
|
|
|
- int FACE_NEGATIVE_X
|
|
|
- int FACE_POSITIVE_Y
|
|
|
@@ -5245,11 +5020,23 @@ Properties:
|
|
|
- int FACE_POSITIVE_Z
|
|
|
- int FACE_NEGATIVE_Z
|
|
|
- int MAX_CUBEMAP_FACES
|
|
|
+
|
|
|
+
|
|
|
+### RenderSurfaceUpdateMode
|
|
|
+
|
|
|
- int SURFACE_MANUALUPDATE
|
|
|
- int SURFACE_UPDATEVISIBLE
|
|
|
- int SURFACE_UPDATEALWAYS
|
|
|
+
|
|
|
+
|
|
|
+### ShaderType
|
|
|
+
|
|
|
- int VS
|
|
|
- int PS
|
|
|
+
|
|
|
+
|
|
|
+### TextureUnit
|
|
|
+
|
|
|
- int TU_DIFFUSE
|
|
|
- int TU_ALBEDOBUFFER
|
|
|
- int TU_NORMAL
|
|
|
@@ -5267,6 +5054,10 @@ Properties:
|
|
|
- int TU_LIGHTBUFFER
|
|
|
- int TU_VOLUMEMAP
|
|
|
- int MAX_TEXTURE_UNITS
|
|
|
+
|
|
|
+
|
|
|
+### ShaderParameterGroup
|
|
|
+
|
|
|
- int SP_FRAME
|
|
|
- int SP_CAMERA
|
|
|
- int SP_VIEWPORT
|
|
|
@@ -5276,18 +5067,38 @@ Properties:
|
|
|
- int SP_MATERIAL
|
|
|
- int SP_OBJECTTRANSFORM
|
|
|
- int MAX_SHADER_PARAMETER_GROUPS
|
|
|
+
|
|
|
+
|
|
|
+### UpdateGeometryType
|
|
|
+
|
|
|
- int UPDATE_NONE
|
|
|
- int UPDATE_MAIN_THREAD
|
|
|
- int UPDATE_WORKER_THREAD
|
|
|
+
|
|
|
+
|
|
|
+### LightType
|
|
|
+
|
|
|
- int LIGHT_DIRECTIONAL
|
|
|
- int LIGHT_SPOT
|
|
|
- int LIGHT_POINT
|
|
|
+
|
|
|
+
|
|
|
+### RayQueryLevel
|
|
|
+
|
|
|
- int RAY_AABB_NOSUBOBJECTS
|
|
|
- int RAY_AABB
|
|
|
- int RAY_OBB
|
|
|
- int RAY_TRIANGLE
|
|
|
+
|
|
|
+
|
|
|
+### EmitterType
|
|
|
+
|
|
|
- int EMITTER_SPHERE
|
|
|
- int EMITTER_BOX
|
|
|
+
|
|
|
+
|
|
|
+### LightVSVariation
|
|
|
+
|
|
|
- int LVS_DIR
|
|
|
- int LVS_SPOT
|
|
|
- int LVS_POINT
|
|
|
@@ -5301,12 +5112,20 @@ Properties:
|
|
|
- int LVS_SPOTSPECSHADOW
|
|
|
- int LVS_POINTSPECSHADOW
|
|
|
- int MAX_LIGHT_VS_VARIATIONS
|
|
|
+
|
|
|
+
|
|
|
+### VertexLightVSVariation
|
|
|
+
|
|
|
- int VLVS_NOLIGHTS
|
|
|
- int VLVS_1LIGHT
|
|
|
- int VLVS_2LIGHTS
|
|
|
- int VLVS_3LIGHTS
|
|
|
- int VLVS_4LIGHTS
|
|
|
- int MAX_VERTEXLIGHT_VS_VARIATIONS
|
|
|
+
|
|
|
+
|
|
|
+### LightPSVariation
|
|
|
+
|
|
|
- int LPS_NONE
|
|
|
- int LPS_SPOT
|
|
|
- int LPS_POINT
|
|
|
@@ -5324,11 +5143,19 @@ Properties:
|
|
|
- int LPS_POINTSHADOWSPEC
|
|
|
- int LPS_POINTMASKSHADOWSPEC
|
|
|
- int MAX_LIGHT_PS_VARIATIONS
|
|
|
+
|
|
|
+
|
|
|
+### DeferredLightVSVariation
|
|
|
+
|
|
|
- int DLVS_NONE
|
|
|
- int DLVS_DIR
|
|
|
- int DLVS_ORTHO
|
|
|
- int DLVS_ORTHODIR
|
|
|
- int MAX_DEFERRED_LIGHT_VS_VARIATIONS
|
|
|
+
|
|
|
+
|
|
|
+### DeferredLightPSVariation
|
|
|
+
|
|
|
- int DLPS_NONE
|
|
|
- int DLPS_SPOT
|
|
|
- int DLPS_POINT
|
|
|
@@ -5362,25 +5189,49 @@ Properties:
|
|
|
- int DLPS_ORTHOPOINTSHADOWSPEC
|
|
|
- int DLPS_ORTHOPOINTMASKSHADOWSPEC
|
|
|
- int MAX_DEFERRED_LIGHT_PS_VARIATIONS
|
|
|
+
|
|
|
+
|
|
|
+### PassLightingMode
|
|
|
+
|
|
|
- int LIGHTING_UNLIT
|
|
|
- int LIGHTING_PERVERTEX
|
|
|
- int LIGHTING_PERPIXEL
|
|
|
+
|
|
|
+
|
|
|
+### FileMode
|
|
|
+
|
|
|
- int FILE_READ
|
|
|
- int FILE_WRITE
|
|
|
- int FILE_READWRITE
|
|
|
+
|
|
|
+
|
|
|
+### Intersection
|
|
|
+
|
|
|
- int OUTSIDE
|
|
|
- int INTERSECTS
|
|
|
- int INSIDE
|
|
|
+
|
|
|
+
|
|
|
+### FrustumPlane
|
|
|
+
|
|
|
- int PLANE_NEAR
|
|
|
- int PLANE_LEFT
|
|
|
- int PLANE_RIGHT
|
|
|
- int PLANE_UP
|
|
|
- int PLANE_DOWN
|
|
|
- int PLANE_FAR
|
|
|
+
|
|
|
+
|
|
|
+### HttpRequestState
|
|
|
+
|
|
|
- int HTTP_INITIALIZING
|
|
|
- int HTTP_ERROR
|
|
|
- int HTTP_OPEN
|
|
|
- int HTTP_CLOSED
|
|
|
+
|
|
|
+
|
|
|
+### ShapeType
|
|
|
+
|
|
|
- int SHAPE_BOX
|
|
|
- int SHAPE_SPHERE
|
|
|
- int SHAPE_STATICPLANE
|
|
|
@@ -5390,13 +5241,25 @@ Properties:
|
|
|
- int SHAPE_TRIANGLEMESH
|
|
|
- int SHAPE_CONVEXHULL
|
|
|
- int SHAPE_TERRAIN
|
|
|
+
|
|
|
+
|
|
|
+### ConstraintType
|
|
|
+
|
|
|
- int CONSTRAINT_POINT
|
|
|
- int CONSTRAINT_HINGE
|
|
|
- int CONSTRAINT_SLIDER
|
|
|
- int CONSTRAINT_CONETWIST
|
|
|
+
|
|
|
+
|
|
|
+### CollisionEventMode
|
|
|
+
|
|
|
- int COLLISION_NEVER
|
|
|
- int COLLISION_ACTIVE
|
|
|
- int COLLISION_ALWAYS
|
|
|
+
|
|
|
+
|
|
|
+### CompressedFormat
|
|
|
+
|
|
|
- int CF_NONE
|
|
|
- int CF_DXT1
|
|
|
- int CF_DXT3
|
|
|
@@ -5406,31 +5269,71 @@ Properties:
|
|
|
- int CF_PVRTC_RGBA_2BPP
|
|
|
- int CF_PVRTC_RGB_4BPP
|
|
|
- int CF_PVRTC_RGBA_4BPP
|
|
|
+
|
|
|
+
|
|
|
+### CreateMode
|
|
|
+
|
|
|
- int REPLICATED
|
|
|
- int LOCAL
|
|
|
+
|
|
|
+
|
|
|
+### InterpolationMode
|
|
|
+
|
|
|
- int BEZIER_CURVE
|
|
|
+
|
|
|
+
|
|
|
+### HorizontalAlignment
|
|
|
+
|
|
|
- int HA_LEFT
|
|
|
- int HA_CENTER
|
|
|
- int HA_RIGHT
|
|
|
+
|
|
|
+
|
|
|
+### VerticalAlignment
|
|
|
+
|
|
|
- int VA_TOP
|
|
|
- int VA_CENTER
|
|
|
- int VA_BOTTOM
|
|
|
+
|
|
|
+
|
|
|
+### Corner
|
|
|
+
|
|
|
- int C_TOPLEFT
|
|
|
- int C_TOPRIGHT
|
|
|
- int C_BOTTOMLEFT
|
|
|
- int C_BOTTOMRIGHT
|
|
|
- int MAX_UIELEMENT_CORNERS
|
|
|
+
|
|
|
+
|
|
|
+### Orientation
|
|
|
+
|
|
|
- int O_HORIZONTAL
|
|
|
- int O_VERTICAL
|
|
|
+
|
|
|
+
|
|
|
+### FocusMode
|
|
|
+
|
|
|
- int FM_NOTFOCUSABLE
|
|
|
- int FM_RESETFOCUS
|
|
|
- int FM_FOCUSABLE
|
|
|
- int FM_FOCUSABLE_DEFOCUSABLE
|
|
|
+
|
|
|
+
|
|
|
+### LayoutMode
|
|
|
+
|
|
|
- int LM_FREE
|
|
|
- int LM_HORIZONTAL
|
|
|
- int LM_VERTICAL
|
|
|
+
|
|
|
+
|
|
|
+### TraversalMode
|
|
|
+
|
|
|
- int TM_BREADTH_FIRST
|
|
|
- int TM_DEPTH_FIRST
|
|
|
+
|
|
|
+
|
|
|
+### CursorShape
|
|
|
+
|
|
|
- int CS_NORMAL
|
|
|
- int CS_RESIZEVERTICAL
|
|
|
- int CS_RESIZEDIAGONAL_TOPRIGHT
|
|
|
@@ -5440,12 +5343,24 @@ Properties:
|
|
|
- int CS_REJECTDROP
|
|
|
- int CS_BUSY
|
|
|
- int CS_MAX_SHAPES
|
|
|
+
|
|
|
+
|
|
|
+### HighlightMode
|
|
|
+
|
|
|
- int HM_NEVER
|
|
|
- int HM_FOCUS
|
|
|
- int HM_ALWAYS
|
|
|
+
|
|
|
+
|
|
|
+### TextEffect
|
|
|
+
|
|
|
- int TE_NONE
|
|
|
- int TE_SHADOW
|
|
|
- int TE_STROKE
|
|
|
+
|
|
|
+
|
|
|
+### WindowDragMode
|
|
|
+
|
|
|
- int DRAG_NONE
|
|
|
- int DRAG_MOVE
|
|
|
- int DRAG_RESIZE_TOPLEFT
|
|
|
@@ -5457,6 +5372,297 @@ Properties:
|
|
|
- int DRAG_RESIZE_BOTTOMLEFT
|
|
|
- int DRAG_RESIZE_LEFT
|
|
|
|
|
|
+\section LuaScriptAPI_GlobalFunctions Global functions
|
|
|
+- Context* GetContext()
|
|
|
+- Object* GetEventSender()
|
|
|
+- EventHandler* GetEventHandler() const
|
|
|
+- Audio* GetAudio()
|
|
|
+- Console* GetConsole()
|
|
|
+- DebugHud* GetDebugHud()
|
|
|
+- DebugRenderer* GetDebugRenderer()
|
|
|
+- Engine* GetEngine()
|
|
|
+- FileSystem* GetFileSystem()
|
|
|
+- Graphics* GetGraphics()
|
|
|
+- Input* GetInput()
|
|
|
+- Log* GetLog()
|
|
|
+- Network* GetNetwork()
|
|
|
+- PhysicsWorld* GetPhysicsWorld()
|
|
|
+- Renderer* GetRenderer()
|
|
|
+- ResourceCache* GetCache()
|
|
|
+- Time* GetTime()
|
|
|
+- UI* GetUI()
|
|
|
+- void ErrorDialog(const String title, const String message)
|
|
|
+- void ErrorExit(const String message = String::EMPTY, int exitCode = EXIT_FAILURE)
|
|
|
+- void OpenConsoleWindow()
|
|
|
+- void PrintLine(const String str, bool error = false)
|
|
|
+- const Vector<String>& GetArguments()
|
|
|
+- String GetConsoleInput()
|
|
|
+- String GetPlatform()
|
|
|
+- unsigned GetNumPhysicalCPUs()
|
|
|
+- unsigned GetNumLogicalCPUs()
|
|
|
+- bool ToBool(const String source)
|
|
|
+- float ToFloat(const String source)
|
|
|
+- int ToInt(const String source)
|
|
|
+- unsigned ToUInt(const String source)
|
|
|
+- Color ToColor(const String source)
|
|
|
+- IntRect ToIntRect(const String source)
|
|
|
+- IntVector2 ToIntVector2(const String source)
|
|
|
+- Quaternion ToQuaternion(const String source)
|
|
|
+- Rect ToRect(const String source)
|
|
|
+- Vector2 ToVector2(const String source)
|
|
|
+- Vector3 ToVector3(const String source)
|
|
|
+- Vector4 ToVector4(const String source, bool allowMissingCoords = false)
|
|
|
+- String ToString(void* value)
|
|
|
+- String ToStringHex(unsigned value)
|
|
|
+- bool IsAlpha(unsigned ch)
|
|
|
+- bool IsDigit(unsigned ch)
|
|
|
+- String GetPath(const String fullPath)
|
|
|
+- String GetFileName(const String fullPath)
|
|
|
+- String GetExtension(const String fullPath, bool lowercaseExtension = true)
|
|
|
+- String GetFileNameAndExtension(const String fullPath, bool lowercaseExtension = false)
|
|
|
+- String ReplaceExtension(const String fullPath, const String newExtension)
|
|
|
+- String AddTrailingSlash(const String pathName)
|
|
|
+- String RemoveTrailingSlash(const String pathName)
|
|
|
+- String GetParentPath(const String pathName)
|
|
|
+- String GetInternalPath(const String pathName)
|
|
|
+- String GetNativePath(const String pathName)
|
|
|
+- bool IsAbsolutePath(const String pathName)
|
|
|
+- void SendEvent(const String eventName, VariantMap& eventData)
|
|
|
+- void SubscribeToEvent(const String eventName, const String functionName)
|
|
|
+- void UnsubscribeFromEvent(const String eventName)
|
|
|
+- void UnsubscribeFromAllEvents()
|
|
|
+- void SubscribeToEvent(void* sender, const String eventName, const String functionName)
|
|
|
+- void UnsubscribeFromEvent(void* sender, const String eventName)
|
|
|
+- void UnsubscribeFromEvents(void* sender)
|
|
|
+- float Lerp(float lhs, float rhs, float t)
|
|
|
+- float Min(float lhs, float rhs)
|
|
|
+- float Max(float lhs, float rhs)
|
|
|
+- float Abs(float value)
|
|
|
+- float Sign(float value)
|
|
|
+- float Clamp(float value, float min, float max)
|
|
|
+- float SmoothStep(float lhs, float rhs, float t)
|
|
|
+- bool Equals(float lhs, float rhs)
|
|
|
+- float Random()
|
|
|
+- float Random(float range)
|
|
|
+- float Random(float min, float max)
|
|
|
+- int RandomInt(int range)
|
|
|
+- int RandomInt(int min, int max)
|
|
|
+- void SetRandomSeed(unsigned seed)
|
|
|
+- unsigned GetRandomSeed()
|
|
|
+- int Rand()
|
|
|
+
|
|
|
+\section LuaScriptAPI_GlobalConstants Global constants
|
|
|
+- unsigned DEBUGHUD_SHOW_NONE
|
|
|
+- unsigned DEBUGHUD_SHOW_STATS
|
|
|
+- unsigned DEBUGHUD_SHOW_MODE
|
|
|
+- unsigned DEBUGHUD_SHOW_PROFILER
|
|
|
+- unsigned DEBUGHUD_SHOW_ALL
|
|
|
+- int QUALITY_LOW
|
|
|
+- int QUALITY_MEDIUM
|
|
|
+- int QUALITY_HIGH
|
|
|
+- int QUALITY_MAX
|
|
|
+- int SHADOWQUALITY_LOW_16BIT
|
|
|
+- int SHADOWQUALITY_LOW_24BIT
|
|
|
+- int SHADOWQUALITY_HIGH_16BIT
|
|
|
+- int SHADOWQUALITY_HIGH_24BIT
|
|
|
+- unsigned CLEAR_COLOR
|
|
|
+- unsigned CLEAR_DEPTH
|
|
|
+- unsigned CLEAR_STENCIL
|
|
|
+- unsigned DRAWABLE_GEOMETRY
|
|
|
+- unsigned DRAWABLE_LIGHT
|
|
|
+- unsigned DRAWABLE_ZONE
|
|
|
+- unsigned DRAWABLE_ANY
|
|
|
+- unsigned DEFAULT_VIEWMASK
|
|
|
+- unsigned DEFAULT_LIGHTMASK
|
|
|
+- unsigned DEFAULT_SHADOWMASK
|
|
|
+- unsigned DEFAULT_ZONEMASK
|
|
|
+- int MAX_VERTEX_LIGHTS
|
|
|
+- float ANIMATION_LOD_BASESCALE
|
|
|
+- unsigned char CHANNEL_POSITION
|
|
|
+- unsigned char CHANNEL_ROTATION
|
|
|
+- unsigned char CHANNEL_SCALE
|
|
|
+- unsigned VO_NONE
|
|
|
+- unsigned VO_LOW_MATERIAL_QUALITY
|
|
|
+- unsigned VO_DISABLE_SHADOWS
|
|
|
+- unsigned VO_DISABLE_OCCLUSION
|
|
|
+- int SHADOW_MIN_PIXELS
|
|
|
+- int INSTANCING_BUFFER_DEFAULT_SIZE
|
|
|
+- unsigned SCAN_FILES
|
|
|
+- unsigned SCAN_DIRS
|
|
|
+- unsigned SCAN_HIDDEN
|
|
|
+- int LOG_DEBUG
|
|
|
+- int LOG_INFO
|
|
|
+- int LOG_WARNING
|
|
|
+- int LOG_ERROR
|
|
|
+- int LOG_NONE
|
|
|
+- int MOUSEB_LEFT
|
|
|
+- int MOUSEB_MIDDLE
|
|
|
+- int MOUSEB_RIGHT
|
|
|
+- int QUAL_SHIFT
|
|
|
+- int QUAL_CTRL
|
|
|
+- int QUAL_ALT
|
|
|
+- int QUAL_ANY
|
|
|
+- int KEY_1
|
|
|
+- int KEY_2
|
|
|
+- int KEY_3
|
|
|
+- int KEY_4
|
|
|
+- int KEY_5
|
|
|
+- int KEY_6
|
|
|
+- int KEY_7
|
|
|
+- int KEY_8
|
|
|
+- int KEY_9
|
|
|
+- int KEY_0
|
|
|
+- int KEY_A
|
|
|
+- int KEY_B
|
|
|
+- int KEY_C
|
|
|
+- int KEY_D
|
|
|
+- int KEY_E
|
|
|
+- int KEY_F
|
|
|
+- int KEY_G
|
|
|
+- int KEY_H
|
|
|
+- int KEY_I
|
|
|
+- int KEY_J
|
|
|
+- int KEY_K
|
|
|
+- int KEY_L
|
|
|
+- int KEY_M
|
|
|
+- int KEY_N
|
|
|
+- int KEY_O
|
|
|
+- int KEY_P
|
|
|
+- int KEY_Q
|
|
|
+- int KEY_R
|
|
|
+- int KEY_S
|
|
|
+- int KEY_T
|
|
|
+- int KEY_U
|
|
|
+- int KEY_V
|
|
|
+- int KEY_W
|
|
|
+- int KEY_X
|
|
|
+- int KEY_Y
|
|
|
+- int KEY_Z
|
|
|
+- int KEY_BACKSPACE
|
|
|
+- int KEY_TAB
|
|
|
+- int KEY_RETURN
|
|
|
+- int KEY_RETURN2
|
|
|
+- int KEY_KP_ENTER
|
|
|
+- int KEY_SHIFT
|
|
|
+- int KEY_CTRL
|
|
|
+- int KEY_ALT
|
|
|
+- int KEY_PAUSE
|
|
|
+- int KEY_CAPSLOCK
|
|
|
+- int KEY_ESC
|
|
|
+- int KEY_SPACE
|
|
|
+- int KEY_PAGEUP
|
|
|
+- int KEY_PAGEDOWN
|
|
|
+- int KEY_END
|
|
|
+- int KEY_HOME
|
|
|
+- int KEY_LEFT
|
|
|
+- int KEY_UP
|
|
|
+- int KEY_RIGHT
|
|
|
+- int KEY_DOWN
|
|
|
+- int KEY_SELECT
|
|
|
+- int KEY_PRINTSCREEN
|
|
|
+- int KEY_INSERT
|
|
|
+- int KEY_DELETE
|
|
|
+- int KEY_LWIN
|
|
|
+- int KEY_RWIN
|
|
|
+- int KEY_APPS
|
|
|
+- int KEY_NUMPAD0
|
|
|
+- int KEY_NUMPAD1
|
|
|
+- int KEY_NUMPAD2
|
|
|
+- int KEY_NUMPAD3
|
|
|
+- int KEY_NUMPAD4
|
|
|
+- int KEY_NUMPAD5
|
|
|
+- int KEY_NUMPAD6
|
|
|
+- int KEY_NUMPAD7
|
|
|
+- int KEY_NUMPAD8
|
|
|
+- int KEY_NUMPAD9
|
|
|
+- int KEY_MULTIPLY
|
|
|
+- int KEY_ADD
|
|
|
+- int KEY_SUBTRACT
|
|
|
+- int KEY_DECIMAL
|
|
|
+- int KEY_DIVIDE
|
|
|
+- int KEY_F1
|
|
|
+- int KEY_F2
|
|
|
+- int KEY_F3
|
|
|
+- int KEY_F4
|
|
|
+- int KEY_F5
|
|
|
+- int KEY_F6
|
|
|
+- int KEY_F7
|
|
|
+- int KEY_F8
|
|
|
+- int KEY_F9
|
|
|
+- int KEY_F10
|
|
|
+- int KEY_F11
|
|
|
+- int KEY_F12
|
|
|
+- int KEY_F13
|
|
|
+- int KEY_F14
|
|
|
+- int KEY_F15
|
|
|
+- int KEY_F16
|
|
|
+- int KEY_F17
|
|
|
+- int KEY_F18
|
|
|
+- int KEY_F19
|
|
|
+- int KEY_F20
|
|
|
+- int KEY_F21
|
|
|
+- int KEY_F22
|
|
|
+- int KEY_F23
|
|
|
+- int KEY_F24
|
|
|
+- int KEY_NUMLOCK
|
|
|
+- int KEY_SCROLLLOCK
|
|
|
+- int KEY_LSHIFT
|
|
|
+- int KEY_RSHIFT
|
|
|
+- int KEY_LCTRL
|
|
|
+- int KEY_RCTRL
|
|
|
+- int KEY_LALT
|
|
|
+- int KEY_RALT
|
|
|
+- int HAT_CENTER
|
|
|
+- int HAT_UP
|
|
|
+- int HAT_RIGHT
|
|
|
+- int HAT_DOWN
|
|
|
+- int HAT_LEFT
|
|
|
+- int CONTROLLER_BUTTON_A
|
|
|
+- int CONTROLLER_BUTTON_B
|
|
|
+- int CONTROLLER_BUTTON_X
|
|
|
+- int CONTROLLER_BUTTON_Y
|
|
|
+- int CONTROLLER_BUTTON_BACK
|
|
|
+- int CONTROLLER_BUTTON_GUIDE
|
|
|
+- int CONTROLLER_BUTTON_START
|
|
|
+- int CONTROLLER_BUTTON_LEFTSTICK
|
|
|
+- int CONTROLLER_BUTTON_RIGHTSTICK
|
|
|
+- int CONTROLLER_BUTTON_LEFTSHOULDER
|
|
|
+- int CONTROLLER_BUTTON_RIGHTSHOULDER
|
|
|
+- int CONTROLLER_BUTTON_DPAD_UP
|
|
|
+- int CONTROLLER_BUTTON_DPAD_DOWN
|
|
|
+- int CONTROLLER_BUTTON_DPAD_LEFT
|
|
|
+- int CONTROLLER_BUTTON_DPAD_RIGHT
|
|
|
+- int CONTROLLER_AXIS_LEFTX
|
|
|
+- int CONTROLLER_AXIS_LEFTY
|
|
|
+- int CONTROLLER_AXIS_RIGHTX
|
|
|
+- int CONTROLLER_AXIS_RIGHTY
|
|
|
+- int CONTROLLER_AXIS_TRIGGERLEFT
|
|
|
+- int CONTROLLER_AXIS_TRIGGERRIGHT
|
|
|
+- float M_PI
|
|
|
+- int M_MIN_INT
|
|
|
+- int M_MAX_INT
|
|
|
+- unsigned M_MIN_UNSIGNED
|
|
|
+- unsigned M_MAX_UNSIGNED
|
|
|
+- float M_EPSILON
|
|
|
+- float M_LARGE_EPSILON
|
|
|
+- float M_MIN_NEARCLIP
|
|
|
+- float M_MAX_FOV
|
|
|
+- float M_LARGE_VALUE
|
|
|
+- float M_INFINITY
|
|
|
+- float M_DEGTORAD
|
|
|
+- float M_DEGTORAD_2
|
|
|
+- float M_RADTODEG
|
|
|
+- unsigned NUM_FRUSTUM_PLANES
|
|
|
+- unsigned NUM_FRUSTUM_VERTICES
|
|
|
+- unsigned FIRST_REPLICATED_ID
|
|
|
+- unsigned LAST_REPLICATED_ID
|
|
|
+- unsigned FIRST_LOCAL_ID
|
|
|
+- unsigned LAST_LOCAL_ID
|
|
|
+- unsigned DD_DISABLED
|
|
|
+- unsigned DD_SOURCE
|
|
|
+- unsigned DD_TARGET
|
|
|
+- unsigned DD_SOURCE_AND_TARGET
|
|
|
+
|
|
|
\section LuaScriptAPI_RenameTypes Rename types
|
|
|
- SharedPtr<HttpRequest> becomes HttpRequestSPtr
|
|
|
|