Преглед изворни кода

Commiting generated scripts

Ivan Safrin пре 9 година
родитељ
комит
bac4a857b5

+ 2 - 2
bindings/javascript/Polycode/Sound.js

@@ -7,8 +7,8 @@ Duktape.fin(Sound.prototype, function (x) {
 	Polycode.Sound__delete(x.__ptr)
 })
 
-Sound.prototype.getSampleAsNumber = function(offset,channel,listener,orientation) {
-	return Polycode.Sound_getSampleAsNumber(this.__ptr, offset,channel,listener,orientation)
+Sound.prototype.getSampleAsNumber = function(offset,channel,position,orientation) {
+	return Polycode.Sound_getSampleAsNumber(this.__ptr, offset,channel,position,orientation)
 }
 
 Sound.prototype.loadFile = function(fileName) {

BIN
bindings/javascript/js_Polycode.pak


+ 2 - 2
bindings/lua/Polycode/Sound.lua

@@ -15,8 +15,8 @@ function Sound:Sound(...)
 	end
 end
 
-function Sound:getSampleAsNumber(offset, channel, listener, orientation)
-	local retVal = Polycode.Sound_getSampleAsNumber(self.__ptr, offset, channel, listener.__ptr, orientation.__ptr)
+function Sound:getSampleAsNumber(offset, channel, position, orientation)
+	local retVal = Polycode.Sound_getSampleAsNumber(self.__ptr, offset, channel, position.__ptr, orientation.__ptr)
 	return retVal
 end
 

BIN
bindings/lua/lua_Polycode.pak


+ 2 - 2
include/polycode/bindings/javascript/PolycodeJSWrappers.h

@@ -12459,9 +12459,9 @@ namespace Polycode {
 		Sound *inst = (Sound*)duk_to_pointer(context, 0);
 		int offset = duk_to_int(context, 1);
 		int channel = duk_to_int(context, 2);
-		Vector3 listener = *(Vector3*)duk_to_pointer(context, 3);
+		Vector3 position = *(Vector3*)duk_to_pointer(context, 3);
 		Quaternion orientation = *(Quaternion*)duk_to_pointer(context, 4);
-		duk_push_number(context, inst->getSampleAsNumber(offset,channel,listener,orientation));
+		duk_push_number(context, inst->getSampleAsNumber(offset,channel,position,orientation));
 		return 1;
 	}
 

+ 2 - 2
include/polycode/bindings/lua/PolycodeLuaWrappers.h

@@ -17624,10 +17624,10 @@ static int Polycode_BoneTrack_set_weight(lua_State *L) {
 		luaL_checktype(L, 3, LUA_TNUMBER);
 		int channel = lua_tointeger(L, 3);
 		luaL_checktype(L, 4, LUA_TUSERDATA);
-		Vector3 listener = *(Vector3*) *((PolyBase**)lua_touserdata(L, 4));
+		Vector3 position = *(Vector3*) *((PolyBase**)lua_touserdata(L, 4));
 		luaL_checktype(L, 5, LUA_TUSERDATA);
 		Quaternion orientation = *(Quaternion*) *((PolyBase**)lua_touserdata(L, 5));
-		lua_pushnumber(L, inst->getSampleAsNumber(offset, channel, listener, orientation));
+		lua_pushnumber(L, inst->getSampleAsNumber(offset, channel, position, orientation));
 		return 1;
 	}
 	static int Polycode_Sound_loadFile(lua_State *L) {