- Timestamp:
- 07/25/13 14:37:24 (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/lib/detail/sdl_functions_20.inc
r171 r172 302 302 NV_SDL_FUN( int , SDL_GetNumTouchFingers, (SDL_TouchID touchID) ); 303 303 NV_SDL_FUN( SDL_Finger * , SDL_GetTouchFinger, (SDL_TouchID touchID, int index) ); 304 305 NV_SDL_FUN( char *, SDL_getenv, (const char *name) ); 306 NV_SDL_FUN( int , SDL_setenv, (const char *name, const char *value, int overwrite) ); 307 NV_SDL_FUN( int , SDL_isdigit, (int x) ); 308 NV_SDL_FUN( int , SDL_isspace, (int x) ); 309 NV_SDL_FUN( int , SDL_toupper, (int x) ); 310 NV_SDL_FUN( int , SDL_tolower, (int x) ); -
trunk/nv/lib/lua.hh
r166 r172 363 363 364 364 extern const lua_Number* (*lua_version) (lua_State *L); 365 extern int LUA_UPVALUEINDEX; 365 366 extern int LUA_REGISTRYINDEX; 366 367 extern int LUA_VERSION_NUM; 368 #define lua_upvalueindex(i) (LUA_UPVALUEINDEX-(i)) 367 369 #define lua_tounsigned(L,idx) (lua_Number)lua_tointeger(L,idx) 368 370 #define lua_pushunsigned(L,u) lua_pushinteger(L,(lua_Integer)u) -
trunk/nv/position.hh
r132 r172 41 41 * @param p The position to assign the rectangle to. 42 42 */ 43 rectangle( position p ) : ul(p), lr(p) {}43 explicit rectangle( position p ) : ul(p), lr(p) {} 44 44 45 45 /** … … 152 152 153 153 /** 154 * Gets the area of the rectangle. 155 * 156 * @returns The area of the rectangle, including the edge 157 */ 158 value_type get_enclosed_area() const { return (lr.y - ul.y + 1) * (lr.x - ul.x + 1); } 159 160 /** 154 161 * Checks to see if the rectangle is backwards. 155 162 * -
trunk/src/gl/gl_window.cc
r171 r172 28 28 { 29 29 kevent.key.ascii = static_cast<char8>( ucode ); 30 #if NV_SDL_VERSION == NV_SDL_20 31 if (ucode >= 'a' && ucode <= 'z') 32 { 33 int shifted = !!(ke.keysym.mod & KMOD_SHIFT); 34 int capslock = !!(ke.keysym.mod & KMOD_CAPS); 35 if ((shifted ^ capslock) != 0) { 36 kevent.key.ascii = SDL_toupper(ucode); 37 } 38 } 39 #endif 30 40 } 31 41 -
trunk/src/lib/lua.cc
r166 r172 45 45 # include <nv/lib/detail/lua_functions_compat.inc> 46 46 # undef NV_LUA_COMPAT_FUN 47 int LUA_UPVALUEINDEX = 0; 47 48 int LUA_REGISTRYINDEX = 0; 48 49 int LUA_VERSION_NUM = 0; … … 266 267 NV_LUA_LOAD( luaL_getsubtable ); 267 268 269 LUA_UPVALUEINDEX = LUA_REGISTRYINDEX_52; 268 270 LUA_REGISTRYINDEX = LUA_REGISTRYINDEX_52; 269 271 LUA_VERSION_NUM = 502; … … 292 294 NV_LUA_LOAD( lua_equal ); 293 295 lua_compare = lua_compare_51; 296 LUA_UPVALUEINDEX = LUA_GLOBALSINDEX_51; 294 297 LUA_REGISTRYINDEX = LUA_REGISTRYINDEX_51; 295 298 LUA_VERSION_NUM = 501; -
trunk/src/lua/lua_glm.cc
r121 r172 340 340 int stack = lua_gettop( L ); 341 341 342 luaL_requiref(L, "coord", luaopen_vec<nv::ivec2>, 1); 342 343 luaL_requiref(L, "ivec2", luaopen_vec<nv::ivec2>, 1); 343 344 luaL_requiref(L, "ivec3", luaopen_vec<nv::ivec3>, 1);
Note: See TracChangeset
for help on using the changeset viewer.