- Timestamp:
- 01/09/17 17:49:22 (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/interface/data_channel.hh
r487 r532 151 151 } 152 152 153 size_tget_channel_size( slot s ) const153 uint32 get_channel_size( slot s ) const 154 154 { 155 155 const raw_data_channel* channel = get_channel( s ); … … 157 157 } 158 158 159 size_t get_channel_size( size_tchannel ) const159 uint32 get_channel_size( uint32 channel ) const 160 160 { 161 161 if ( m_size > channel ) return m_channels[channel].size(); … … 164 164 165 165 template < typename Struct > 166 size_tget_channel_size() const166 uint32 get_channel_size() const 167 167 { 168 168 data_descriptor compare; -
trunk/nv/interface/interpolation_raw.hh
r485 r532 1 // Copyright (C) 2015 ChaosForge Ltd1 // Copyright (C) 2015-2017 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // -
trunk/nv/stl/container/hash_table.hh
r486 r532 1 // Copyright (C) 2015 ChaosForge Ltd1 // Copyright (C) 2015-2017 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 301 301 bool rehash_check( size_type new_elements ) 302 302 { 303 uint32new_buckets = RehashPolicy::is_rehash_required( m_bucket_count, m_element_count + new_elements, m_max_load_factor );303 size_t new_buckets = RehashPolicy::is_rehash_required( m_bucket_count, m_element_count + new_elements, m_max_load_factor ); 304 304 if ( new_buckets ) 305 305 { -
trunk/nv/stl/math.hh
r485 r532 1 // Copyright (C) 2012-201 5ChaosForge Ltd1 // Copyright (C) 2012-2017 ChaosForge Ltd 2 2 // http://chaosforge.org/ 3 3 // … … 96 96 struct datatype_info 97 97 { 98 size_tsize;98 uint32 size; 99 99 datatype base; 100 size_telements;100 uint32 elements; 101 101 }; 102 102 -
trunk/src/engine/particle_engine.cc
r529 r532 196 196 datap->plane_normal = normalize_safe( datap->plane_normal, vec3(0.0f,1.0f,0.0f) ); 197 197 datap->bounce = table->get<float>("bounce", 0.0f ); 198 datap->distance = -math::dot( datap->plane_normal, datap->plane_point ) / sqrt( math::dot( datap->plane_normal, datap->plane_normal ) );198 datap->distance = -math::dot( datap->plane_normal, datap->plane_point ) / math::sqrt( math::dot( datap->plane_normal, datap->plane_normal ) ); 199 199 return true; 200 200 } -
trunk/src/gfx/mesh_creator.cc
r526 r532 25 25 && old_keys->get_channel(0)->descriptor()[0].etype == TRANSFORM ) continue; 26 26 27 size_tmax_keys = 0;28 for ( size_tc = 0; c < chan_count; ++c )27 uint32 max_keys = 0; 28 for ( uint32 c = 0; c < chan_count; ++c ) 29 29 { 30 30 max_keys = nv::max( max_keys, old_keys->get_channel(c)->size() ); … … 45 45 for ( uint16 c = 0; c < chan_count; ++c ) 46 46 { 47 size_tidx = nv::min( old_keys->get_channel_size(c) - 1, n );47 uint32 idx = nv::min( old_keys->get_channel_size(c) - 1, n ); 48 48 pkey += raw_channel_interpolator::get_raw( *old_keys->get_channel(c), idx, pkey ); 49 49 } … … 66 66 for ( auto node : m_data->m_data ) 67 67 { 68 for ( size_tc = 0; c < node->size(); ++c )68 for ( uint32 c = 0; c < node->size(); ++c ) 69 69 { 70 70 raw_data_channel_access channel( node, c ); 71 size_tkey_size = channel.element_size();72 for ( size_tn = 0; n < channel.size(); ++n )71 uint32 key_size = channel.element_size(); 72 for ( uint32 n = 0; n < channel.size(); ++n ) 73 73 { 74 74 transform_key_raw( node->get_channel( c )->descriptor(), channel.raw_data() + n * key_size, scale, r33, ri33 ); … … 568 568 int och_ti = other->get_channel_index( slot::TEXCOORD ); 569 569 if ( ch_pi == -1 || ch_ti == -1 ) return; 570 size_tsize = m_data->get_channel_size( unsigned(ch_ti) );571 size_tosize = other->get_channel_size( unsigned(och_ti) );572 size_tcount = m_data->get_channel_size( unsigned(ch_pi) );573 size_tocount = other->get_channel_size( unsigned(och_pi) );570 uint32 size = m_data->get_channel_size( unsigned(ch_ti) ); 571 uint32 osize = other->get_channel_size( unsigned(och_ti) ); 572 uint32 count = m_data->get_channel_size( unsigned(ch_pi) ); 573 uint32 ocount = other->get_channel_size( unsigned(och_pi) ); 574 574 if ( count % size != 0 || ocount % osize != 0 ) return; 575 575 if ( count / size != ocount / osize ) return; … … 583 583 data_descriptor old_desc = old->descriptor(); 584 584 bool old_is_index = old_size > 0 && old_desc[0].vslot == slot::INDEX; 585 size_tframe_count = ( old_is_index ? 1 : old_size / size );585 uint32 frame_count = ( old_is_index ? 1 : old_size / size ); 586 586 data.set_channel( c, append_channels( *old, *other->get_channel(c), frame_count ) ); 587 587 if ( old_is_index )
Note: See TracChangeset
for help on using the changeset viewer.