diff options
author | chai <chaifix@163.com> | 2018-12-22 10:58:06 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-22 10:58:06 +0800 |
commit | 6cb616689535c340b0b4f441c12ef8eb1ee42cb0 (patch) | |
tree | 1013294d114d18fd10f363e4645d421e7efbd285 /src/libjin-lua/modules/graphics/je_lua_particle_system.cpp | |
parent | 71416cb4b388956d6132f6c8b5b77b0fb38b7a27 (diff) |
*修改vector访问方式
Diffstat (limited to 'src/libjin-lua/modules/graphics/je_lua_particle_system.cpp')
-rw-r--r-- | src/libjin-lua/modules/graphics/je_lua_particle_system.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp b/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp index 0c42209..70511f7 100644 --- a/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp +++ b/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp @@ -147,10 +147,10 @@ namespace JinEngine return 1; } Vector2<float> floor, ceil; - floor.x = luax_rawgetnumber(L, 2, 1); - floor.y = luax_rawgetnumber(L, 2, 2); - ceil.x = luax_rawgetnumber(L, 3, 1); - ceil.y = luax_rawgetnumber(L, 3, 2); + floor.x() = luax_rawgetnumber(L, 2, 1); + floor.y() = luax_rawgetnumber(L, 2, 2); + ceil.x() = luax_rawgetnumber(L, 3, 1); + ceil.y() = luax_rawgetnumber(L, 3, 2); ps->setEmitPosition(floor, ceil); } else if (luax_gettop(L) >= 2) @@ -161,8 +161,8 @@ namespace JinEngine return 1; } Vector2<float> pos; - pos.x = luax_rawgetnumber(L, 2, 1); - pos.y = luax_rawgetnumber(L, 2, 2); + pos.x() = luax_rawgetnumber(L, 2, 1); + pos.y() = luax_rawgetnumber(L, 2, 2); ps->setEmitPosition(pos); } return 0; @@ -194,8 +194,8 @@ namespace JinEngine return 1; } Vector2<float> ac; - ac.x = luax_rawgetnumber(L, 2, 1); - ac.y = luax_rawgetnumber(L, 2, 2); + ac.x() = luax_rawgetnumber(L, 2, 1); + ac.y() = luax_rawgetnumber(L, 2, 2); ps->setParticleLinearAccelaration(ac); return 0; } |