Changeset 398 for trunk/src/gfx/mesh_creator.cc
- Timestamp:
- 06/13/15 11:20:22 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/mesh_creator.cc
r395 r398 21 21 size_t count = ( keys ? keys->get_channel(0)->count : 0 ); 22 22 size_t pcount = ( pkeys ? pkeys->get_channel(0)->count : 0 ); 23 max_frames = glm::max<uint32>( count, max_frames );23 max_frames = nv::max<uint32>( count, max_frames ); 24 24 if ( pkeys && pkeys->get_channel_count() > 0 && keys && keys->get_channel_count() > 0 ) 25 25 { … … 28 28 for ( unsigned n = 0; n < count; ++n ) 29 29 { 30 channel[n].tform = pchannel[ glm::min( n, pcount-1 ) ].tform * channel[n].tform;30 channel[n].tform = pchannel[ nv::min( n, pcount-1 ) ].tform * channel[n].tform; 31 31 } 32 32 } … … 63 63 for ( size_t c = 0; c < chan_count; ++c ) 64 64 { 65 max_keys = glm::max( max_keys, old_keys->get_channel(c)->count );65 max_keys = nv::max( max_keys, old_keys->get_channel(c)->count ); 66 66 } 67 67 … … 79 79 for ( uint16 c = 0; c < chan_count; ++c ) 80 80 { 81 size_t idx = glm::min( old_keys->get_channel(c)->count - 1, n );81 size_t idx = nv::min( old_keys->get_channel(c)->count - 1, n ); 82 82 pkey += old_keys->get_channel(c)->get_raw( idx, pkey ); 83 83 } … … 119 119 void nv::mesh_data_creator::transform( float scale, const mat3& r33 ) 120 120 { 121 vec3 vertex_offset = glm::vec3();121 vec3 vertex_offset = vec3(); 122 122 mat3 vertex_transform = scale * r33; 123 123 mat3 normal_transform = r33; … … 297 297 vec3 xyz2 = v2 - v1; 298 298 299 // glm::vec3 normal = glm::cross( xyz1, xyz2 );299 //vec3 normal = glm::cross( xyz1, xyz2 ); 300 300 // 301 301 //vtcs[ ti0 ].normal += normal;
Note: See TracChangeset
for help on using the changeset viewer.