Browse Source

Applied CustomGeometry script API patch from weitjong.

Lasse Öörni 13 years ago
parent
commit
b51fd39bcc
3 changed files with 4 additions and 2 deletions
  1. 2 0
      Docs/Reference.dox
  2. 1 1
      Docs/ScriptAPI.dox
  3. 1 1
      Engine/Engine/GraphicsAPI.cpp

+ 2 - 0
Docs/Reference.dox

@@ -374,6 +374,8 @@ Much of the Urho3D classes are exposed to scripts, however things that require l
 
 
 - Template functions for getting components or resources by type are not supported. Instead automatic type casts are performed as necessary.
 - Template functions for getting components or resources by type are not supported. Instead automatic type casts are performed as necessary.
 
 
+Check the automatically built \ref ScriptAPI "Scripting API" documentation for the exact function signatures. Note that the API documentation can be regenerated to the Urho3D log file by calling \ref Script::DumpAPI "DumpAPI()" function on the Script subsystem.
+
 \section Scripting_Limitations Limitations
 \section Scripting_Limitations Limitations
 
 
 There are some complexities of the scripting system one has to watch out for:
 There are some complexities of the scripting system one has to watch out for:

+ 1 - 1
Docs/ScriptAPI.dox

@@ -2487,7 +2487,7 @@ Methods:<br>
 - void DefineVertex(const Vector3&)
 - void DefineVertex(const Vector3&)
 - void DefineNormal(const Vector3&)
 - void DefineNormal(const Vector3&)
 - void DefineColor(const Color&)
 - void DefineColor(const Color&)
-- void DefineTexCoord(const Color&)
+- void DefineTexCoord(const Vector2&)
 - void DefineTangent(const Vector4&)
 - void DefineTangent(const Vector4&)
 - void Commit()
 - void Commit()
 
 

+ 1 - 1
Engine/Engine/GraphicsAPI.cpp

@@ -885,7 +885,7 @@ static void RegisterCustomGeometry(asIScriptEngine* engine)
     engine->RegisterObjectMethod("CustomGeometry", "void DefineVertex(const Vector3&in)", asMETHOD(CustomGeometry, DefineVertex), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void DefineVertex(const Vector3&in)", asMETHOD(CustomGeometry, DefineVertex), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void DefineNormal(const Vector3&in)", asMETHOD(CustomGeometry, DefineNormal), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void DefineNormal(const Vector3&in)", asMETHOD(CustomGeometry, DefineNormal), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void DefineColor(const Color&in)", asMETHOD(CustomGeometry, DefineColor), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void DefineColor(const Color&in)", asMETHOD(CustomGeometry, DefineColor), asCALL_THISCALL);
-    engine->RegisterObjectMethod("CustomGeometry", "void DefineTexCoord(const Color&in)", asMETHOD(CustomGeometry, DefineTexCoord), asCALL_THISCALL);
+    engine->RegisterObjectMethod("CustomGeometry", "void DefineTexCoord(const Vector2&in)", asMETHOD(CustomGeometry, DefineTexCoord), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void DefineTangent(const Vector4&in)", asMETHOD(CustomGeometry, DefineTangent), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void DefineTangent(const Vector4&in)", asMETHOD(CustomGeometry, DefineTangent), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void Commit()", asMETHOD(CustomGeometry, Commit), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void Commit()", asMETHOD(CustomGeometry, Commit), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void set_material(Material@+)", asMETHODPR(CustomGeometry, SetMaterial, (Material*), void), asCALL_THISCALL);
     engine->RegisterObjectMethod("CustomGeometry", "void set_material(Material@+)", asMETHODPR(CustomGeometry, SetMaterial, (Material*), void), asCALL_THISCALL);