Browse Source

Exposed Source:setPosition and its brethren

Bill Meltsner 15 years ago
parent
commit
6f90a33e17
2 changed files with 8 additions and 0 deletions
  1. 1 0
      changes.txt
  2. 7 0
      src/modules/audio/wrap_Source.cpp

+ 1 - 0
changes.txt

@@ -4,6 +4,7 @@ LOVE 0.7.0
   * Added love.thread module.
   * Added love.thread module.
   * Added Source:play, Source:pause, etc.
   * Added Source:play, Source:pause, etc.
   * Added Source:isStatic().
   * Added Source:isStatic().
+  * Added get/setPosition, get/setVelocity, and get/setDirection to Source.
   * Added get/setGroupIndex to CircleShape and PolygonShape.
   * Added get/setGroupIndex to CircleShape and PolygonShape.
   * Added Font:getWrap.
   * Added Font:getWrap.
   * Added identity field to love.conf.
   * Added identity field to love.conf.

+ 7 - 0
src/modules/audio/wrap_Source.cpp

@@ -199,6 +199,13 @@ namespace audio
 		{ "getPitch", w_Source_getPitch },
 		{ "getPitch", w_Source_getPitch },
 		{ "setVolume", w_Source_setVolume },
 		{ "setVolume", w_Source_setVolume },
 		{ "getVolume", w_Source_getVolume },
 		{ "getVolume", w_Source_getVolume },
+		{ "setPosition", w_Source_setPosition },
+		{ "getPosition", w_Source_getPosition },
+		{ "setVelocity", w_Source_setVelocity },
+		{ "getVelocity", w_Source_getVelocity },
+		{ "setDirection", w_Source_setDirection },
+		{ "getDirection", w_Source_getDirection },
+		
 		{ "setLooping", w_Source_setLooping },
 		{ "setLooping", w_Source_setLooping },
 		{ "isLooping", w_Source_isLooping },
 		{ "isLooping", w_Source_isLooping },
 		{ "isStopped", w_Source_isStopped },
 		{ "isStopped", w_Source_isStopped },