- Timestamp:
- 01/05/17 13:50:41 (8 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/default_resource_manager.cc
r520 r529 37 37 m_lua->register_enum( "RND_STEP_3", static_cast<int>( random_dist::STEP_3 ) ); 38 38 m_lua->register_enum( "RND_STEP_4", static_cast<int>( random_dist::STEP_4 ) ); 39 m_lua->register_enum( "RND_ LINEAR", static_cast<int>( random_dist::LINEAR ) );39 m_lua->register_enum( "RND_MLINEAR", static_cast<int>( random_dist::MLINEAR ) ); 40 40 m_lua->register_enum( "RND_MGAUSSIAN", static_cast<int>( random_dist::MGAUSSIAN ) ); 41 41 m_lua->register_enum( "RND_MRGAUSSIAN", static_cast<int>( random_dist::MRGAUSSIAN ) ); -
trunk/src/engine/model_manager.cc
r527 r529 135 135 node->choice = model_node_choice( table.get_unsigned( "choice", false ) ); 136 136 node->chance = table.get_float( "chance", 1.0f ); 137 node->weight = table.get_unsigned( "weight", 1);137 node->weight = static_cast< uint16 >( table.get_unsigned( "weight", 1 ) ); 138 138 node->mesh = cmesh; 139 139 node->attach_id = attach_id; -
trunk/src/engine/particle_engine.cc
r522 r529 454 454 uint32 ecount = info->data->emitter_count; 455 455 if ( ecount == 0 ) return; 456 457 bool local = model.is_identity();458 // if ( !local )459 // {460 // source = vec3( m_model_matrix[3] );461 // orient = mat3( m_model_matrix );462 // }463 456 464 457 for ( uint32 i = 0; i < ecount; ++i ) -
trunk/src/engine/resource_system.cc
r524 r529 44 44 lua::table_guard sub_table( table, i + 1 ); 45 45 string64 id = sub_table.get_string64( "id" ); 46 NV_ASSERT( m_id_hash.find( id ) == m_id_hash.end(), "HASH COLLISION - ", id, " - ", m_id_hash[id]);46 NV_ASSERT( m_id_hash.find( id ) == m_id_hash.end(), "HASH COLLISION" ); 47 47 m_id_hash[id] = id; 48 48 } -
trunk/src/gfx/gfx_terminal.cc
r520 r529 112 112 }; 113 113 114 gfx_terminal::gfx_terminal( context* ctx, texture t, dimension tsize, dimension psize)114 gfx_terminal::gfx_terminal( context* ctx, texture t, dimension tsize, dimension /*psize*/ ) 115 115 : terminal( tsize ), m_context( ctx ) 116 116 { … … 178 178 } 179 179 180 bool gfx_terminal::poll( io_event & kevent)180 bool gfx_terminal::poll( io_event & /*kevent*/ ) 181 181 { 182 182 return false; 183 183 } 184 184 185 void gfx_terminal::set_cursor( position p)185 void gfx_terminal::set_cursor( position /*p*/ ) 186 186 { 187 187 } -
trunk/src/image/png_writer.cc
r520 r529 47 47 48 48 // initialize a callback-based context 49 static void stbi__start_write_callbacks( stbi__write_context *s, stbi_write_func *c, void *context )50 {51 s->func = c;52 s->context = context;53 }49 // static void stbi__start_write_callbacks( stbi__write_context *s, stbi_write_func *c, void *context ) 50 // { 51 // s->func = c; 52 // s->context = context; 53 // } 54 54 55 55 typedef unsigned int stbiw_uint32; … … 65 65 #define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL)) 66 66 67 /* 67 68 static void stbiw__writefv( stbi__write_context *s, const char *fmt, va_list v ) 68 69 { … … 139 140 break; 140 141 } 141 / * FALLTHROUGH */142 // FALLTHROUGH 142 143 case 3: 143 144 stbiw__write3( s, d[1 - rgb_dir], d[1], d[1 + rgb_dir] ); … … 188 189 } 189 190 } 190 191 */ 191 192 192 193 static unsigned int stbiw__crc32( unsigned char *buffer, int len ) … … 253 254 } 254 255 255 unsigned char * stbi_zlib_compress( unsigned char *data, int data_len, int *out_len, int quality)256 unsigned char * stbi_zlib_compress( unsigned char *data, int data_len, int *out_len, int /*quality*/ ) 256 257 { 257 258 unsigned long expected = nv::miniz_bound( data_len ); -
trunk/src/lua/lua_area.cc
r520 r529 285 285 { 286 286 nv::rectangle* a = to_parea( L, 1 ); 287 push_coord( L, a-> ul - a->lr+ nv::ivec2(1,1) );287 push_coord( L, a->lr - a->ul + nv::ivec2(1,1) ); 288 288 return 1; 289 289 } -
trunk/src/lua/lua_math.cc
r520 r529 138 138 139 139 template< typename T > 140 int nlua_vec_sign( lua_State* L ) 141 { 142 push_vec<T>( L, nv::math::sign( to_vec<T>( L, 1 ) ) ); 143 return 1; 144 } 145 146 template< typename T > 140 147 int nlua_vec_call( lua_State* L ) 141 148 { … … 324 331 static const struct luaL_Reg nlua_vec_f [] = { 325 332 { "clone", nlua_vec_clone<T> }, 333 { "sign", nlua_vec_sign<T> }, 326 334 { "get", nlua_vec_get<T> }, 327 335 { "tostring", nlua_vec_tostring<T> }, -
trunk/src/sdl/sdl_window_manager.cc
r505 r529 42 42 char buffer[128]; 43 43 sprintf( buffer, "%p", primal_window ); 44 NV_ASSERT( SDL_SetHint( "SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT", buffer ) == SDL_TRUE ); 44 SDL_bool result = SDL_SetHint( "SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT", buffer ); 45 NV_UNUSED( result ); 46 NV_ASSERT( result == SDL_TRUE, "SetHint failed!" ); 45 47 } 46 48 primal_window = SDL_CreateWindowFrom( sys_w_handle );
Note: See TracChangeset
for help on using the changeset viewer.