Changeset 454 for trunk/src/lua


Ignore:
Timestamp:
07/31/15 20:25:22 (10 years ago)
Author:
epyon
Message:
  • math library work
  • glm only referenced in math/common.hh
  • still a lot work to do, but its WURF
Location:
trunk/src/lua
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_area.cc

    r449 r454  
    255255        nv::rectangle* a = to_parea( L, 1 );
    256256        nv::ivec2*     c = to_pcoord( L, 2 );
    257         *c = glm::clamp( *c, a->ul, a->lr );
     257        *c = nv::math::clamp( *c, a->ul, a->lr );
    258258        return 0;
    259259}
     
    263263        nv::rectangle* a = to_parea( L, 1 );
    264264        nv::ivec2*     c = to_pcoord( L, 2 );
    265         push_coord( L, glm::clamp( *c, a->ul, a->lr ) );
     265        push_coord( L, nv::math::clamp( *c, a->ul, a->lr ) );
    266266        return 0;
    267267}
  • trunk/src/lua/lua_values.cc

    r449 r454  
    2525void* nv::lua::detail::raw_check_userdata( lua_State *L, int index, const char* metatable )
    2626{
    27         return luaL_checkudata( L, index, metatable );
     27        return luaL_testudata( L, index, metatable );
    2828}
    2929
Note: See TracChangeset for help on using the changeset viewer.