浏览代码

Travis CI: API documentation update at 2014-08-02 10:08:52 UTC.
[ci package]

urho3d-travis-ci 11 年之前
父节点
当前提交
a6b0535df4
共有 3 个文件被更改,包括 50 次插入1 次删除
  1. 16 0
      Docs/AngelScriptAPI.h
  2. 18 1
      Docs/LuaScriptAPI.dox
  3. 16 0
      Docs/ScriptAPI.dox

+ 16 - 0
Docs/AngelScriptAPI.h

@@ -3144,6 +3144,7 @@ void BeginGeometry(uint, PrimitiveType);
 void Clear();
 void Commit();
 void DefineColor(const Color&);
+void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
 void DefineNormal(const Vector3&);
 void DefineTangent(const Vector4&);
 void DefineTexCoord(const Vector2&);
@@ -3154,6 +3155,7 @@ ValueAnimation GetAttributeAnimation(const String&) const;
 float GetAttributeAnimationSpeed(const String&) const;
 WrapMode GetAttributeAnimationWrapMode(const String&) const;
 Variant GetAttributeDefault(const String&) const;
+CustomGeometryVertex GetVertex(uint, uint);
 bool IsInView(Camera) const;
 bool Load(File, bool = false);
 bool Load(VectorBuffer&, bool = false);
@@ -3186,6 +3188,7 @@ bool castShadows;
 /* readonly */
 String category;
 float drawDistance;
+bool dynamic;
 bool enabled;
 /* readonly */
 bool enabledEffective;
@@ -3204,6 +3207,8 @@ Node node;
 /* readonly */
 uint numAttributes;
 uint numGeometries;
+/* readonly */
+Array<uint> numVertices;
 ObjectAnimation objectAnimation;
 bool occludee;
 bool occluder;
@@ -3226,6 +3231,17 @@ Zone zone;
 uint zoneMask;
 };
 
+class CustomGeometryVertex
+{
+
+// Properties:
+uint color;
+Vector3 normal;
+Vector3 position;
+Vector4 tangent;
+Vector2 texCoord;
+};
+
 class DebugHud
 {
 // Methods:

+ 18 - 1
Docs/LuaScriptAPI.dox

@@ -1365,22 +1365,39 @@ Methods:
 
 - void Clear()
 - void SetNumGeometries(unsigned num)
+- void SetDynamic(bool enable)
 - void BeginGeometry(unsigned index, PrimitiveType type)
 - void DefineVertex(const Vector3& position)
 - void DefineNormal(const Vector3& normal)
 - void DefineTangent(const Vector4& tangent)
 - void DefineColor(const Color& color)
 - void DefineTexCoord(const Vector2& texCoord)
+- void DefineGeometry(unsigned index, PrimitiveType type, unsigned numVertices, bool hasNormals, bool hasColors, bool hasTexCoords, bool hasTangents)
 - void Commit()
 - void SetMaterial(Material* material)
 - bool SetMaterial(unsigned index, Material* material)
-- unsigned GetNumGeometries()
+- unsigned GetNumGeometries() const
+- unsigned GetNumVertices(unsigned index) const
+- bool IsDynamic() const
 - Material* GetMaterial(unsigned index = 0)
+- CustomGeometryVertex* GetVertex(unsigned geometryIndex, unsigned vertexNum)
 
 Properties:
 
 - Material* material
 - unsigned numGeometries
+- bool dynamic
+
+### CustomGeometryVertex
+
+
+Properties:
+
+- Vector3 position
+- Vector3 normal
+- unsigned color
+- Vector2 texCoord
+- Vector4 tangent
 
 ### DebugHud : Object
 

+ 16 - 0
Docs/ScriptAPI.dox

@@ -1037,6 +1037,7 @@ namespace Urho3D
 
 ### CustomGeometry
 - %Is %Enabled : bool
+- %Dynamic %Vertex %Buffer : bool
 - %Materials : ResourceRefList
 - %Is %Occluder : bool
 - %Can %Be %Occluded : bool
@@ -4618,6 +4619,7 @@ Methods:
 - void Clear()
 - void Commit()
 - void DefineColor(const Color&)
+- void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool)
 - void DefineNormal(const Vector3&)
 - void DefineTangent(const Vector4&)
 - void DefineTexCoord(const Vector2&)
@@ -4628,6 +4630,7 @@ Methods:
 - float GetAttributeAnimationSpeed(const String&) const
 - WrapMode GetAttributeAnimationWrapMode(const String&) const
 - Variant GetAttributeDefault(const String&) const
+- CustomGeometryVertex@ GetVertex(uint, uint)
 - bool IsInView(Camera@) const
 - bool Load(File@, bool = false)
 - bool Load(VectorBuffer&, bool = false)
@@ -4656,6 +4659,7 @@ Properties:
 - bool castShadows
 - String category // readonly
 - float drawDistance
+- bool dynamic
 - bool enabled
 - bool enabledEffective // readonly
 - uint id // readonly
@@ -4668,6 +4672,7 @@ Properties:
 - Node@ node // readonly
 - uint numAttributes // readonly
 - uint numGeometries
+- uint[] numVertices // readonly
 - ObjectAnimation@ objectAnimation
 - bool occludee
 - bool occluder
@@ -4684,6 +4689,17 @@ Properties:
 - uint zoneMask
 
 
+### CustomGeometryVertex
+
+Properties:
+
+- uint color
+- Vector3 normal
+- Vector3 position
+- Vector4 tangent
+- Vector2 texCoord
+
+
 ### DebugHud
 
 Methods: