Prechádzať zdrojové kódy

Travis CI: API documentation update at 2014-01-19 22:34:55 UTC.
[ci skip]

urho3d-travis-ci 12 rokov pred
rodič
commit
f2de586353
3 zmenil súbory, kde vykonal 141 pridanie a 0 odobranie
  1. 64 0
      Docs/AngelScriptAPI.h
  2. 24 0
      Docs/LuaScriptAPI.dox
  3. 53 0
      Docs/ScriptAPI.dox

+ 64 - 0
Docs/AngelScriptAPI.h

@@ -52,6 +52,11 @@ REPLICATED,
 LOCAL,
 };
 
+enum InterpolationMode
+{
+BEZIER_CURVE,
+};
+
 enum FillMode
 {
 FILL_SOLID,
@@ -505,6 +510,7 @@ float AbsDotProduct(const Vector3&) const;
 Vector3 CrossProduct(const Vector3&) const;
 Vector3 Lerp(const Vector3&, float) const;
 bool Equals(const Vector3&) const;
+float Angle(const Vector3&) const;
 Vector3 Normalized() const;
 String ToString() const;
 
@@ -2117,6 +2123,64 @@ PhysicsWorld physicsWorld;
 ScriptObject scriptObject;
 };
 
+class Spline
+{
+// Methods:
+void SendEvent(const String&, VariantMap& = VariantMap ( ));
+bool Load(File, bool = false);
+bool Save(File) const;
+bool LoadXML(const XMLElement&, bool = false);
+bool SaveXML(XMLElement&) const;
+void ApplyAttributes();
+bool SetAttribute(const String&, const Variant&);
+void ResetToDefault();
+void RemoveInstanceDefault();
+Variant GetAttribute(const String&) const;
+Variant GetAttributeDefault(const String&) const;
+void Remove();
+void MarkNetworkUpdate() const;
+void Push(const Vector3&);
+void Pop();
+Vector3 GetPoint(float) const;
+void Move(float);
+void Reset();
+
+// Properties:
+/* (readonly) */
+int refs;
+/* (readonly) */
+int weakRefs;
+/* (readonly) */
+ShortStringHash type;
+/* (readonly) */
+ShortStringHash baseType;
+/* (readonly) */
+String typeName;
+/* (readonly) */
+String category;
+/* (readonly) */
+uint numAttributes;
+Array<Variant> attributes;
+/* (readonly) */
+Array<Variant> attributeDefaults;
+/* (readonly) */
+Array<AttributeInfo> attributeInfos;
+bool temporary;
+bool enabled;
+/* (readonly) */
+bool enabledEffective;
+/* (readonly) */
+uint id;
+/* (readonly) */
+Node node;
+Array<Vector3> controlPoints;
+InterpolationMode interpolationMode;
+float speed;
+Vector3 position;
+/* (readonly) */
+bool finished;
+};
+
 class Bone
 {
 

+ 24 - 0
Docs/LuaScriptAPI.dox

@@ -2938,6 +2938,7 @@ Methods:
 - Vector3 Abs() const
 - Vector3 Lerp(const Vector3& rhs, float t) const
 - bool Equals(const Vector3& rhs) const
+- float Angle(const Vector3& rhs) const
 - Vector3 Normalized() const
 - String ToString() const
 
@@ -3926,6 +3927,28 @@ Properties:
 - bool threadedUpdate (readonly)
 - String varNamesAttr
 
+### Spline : Component
+
+Methods:
+
+- void SetInterpolationMode(InterpolationMode interpolationMode)
+- void SetSpeed(float speed)
+- void SetPosition(float factor)
+- InterpolationMode GetInterpolationMode() const
+- float GetSpeed() const
+- Vector3 GetPosition() const
+- void Push(const Vector3& controlPoint)
+- void Pop()
+- Vector3 GetPoint(float factor) const
+- void Move(float timeStep)
+- void Reset()
+- bool IsFinished() const
+
+Properties:
+
+- InterpolationMode interpolationMode
+- float speed
+
 ### UIElement : Serializable
 
 Methods:
@@ -5397,6 +5420,7 @@ Properties:
 - int CF_PVRTC_RGBA_4BPP
 - int REPLICATED
 - int LOCAL
+- int BEZIER_CURVE
 - int HA_LEFT
 - int HA_CENTER
 - int HA_RIGHT

+ 53 - 0
Docs/ScriptAPI.dox

@@ -48,6 +48,11 @@ namespace Urho3D
 - LOCAL
 
 
+### InterpolationMode
+
+- BEZIER_CURVE
+
+
 ### FillMode
 
 - FILL_SOLID
@@ -498,6 +503,7 @@ Methods:
 - Vector3 CrossProduct(const Vector3&) const
 - Vector3 Lerp(const Vector3&, float) const
 - bool Equals(const Vector3&) const
+- float Angle(const Vector3&) const
 - Vector3 Normalized() const
 - String ToString() const
 
@@ -1946,6 +1952,53 @@ Properties:
 - ScriptObject@ scriptObject (readonly)
 
 
+### Spline
+
+Methods:
+
+- void SendEvent(const String&, VariantMap& = VariantMap ( ))
+- bool Load(File@, bool = false)
+- bool Save(File@) const
+- bool LoadXML(const XMLElement&, bool = false)
+- bool SaveXML(XMLElement&) const
+- void ApplyAttributes()
+- bool SetAttribute(const String&, const Variant&)
+- void ResetToDefault()
+- void RemoveInstanceDefault()
+- Variant GetAttribute(const String&) const
+- Variant GetAttributeDefault(const String&) const
+- void Remove()
+- void MarkNetworkUpdate() const
+- void Push(const Vector3&)
+- void Pop()
+- Vector3 GetPoint(float) const
+- void Move(float)
+- void Reset()
+
+Properties:
+
+- int refs (readonly)
+- int weakRefs (readonly)
+- ShortStringHash type (readonly)
+- ShortStringHash baseType (readonly)
+- String typeName (readonly)
+- String category (readonly)
+- uint numAttributes (readonly)
+- Variant[] attributes
+- Variant[] attributeDefaults (readonly)
+- AttributeInfo[] attributeInfos (readonly)
+- bool temporary
+- bool enabled
+- bool enabledEffective (readonly)
+- uint id (readonly)
+- Node@ node (readonly)
+- Vector3[]@ controlPoints
+- InterpolationMode interpolationMode
+- float speed
+- Vector3 position
+- bool finished (readonly)
+
+
 ### Bone
 
 Properties: