Ignore:
Timestamp:
06/13/15 11:20:22 (10 years ago)
Author:
epyon
Message:
  • cleanup of glm usage
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gfx/mesh_creator.cc

    r395 r398  
    2121                size_t count     = ( keys ? keys->get_channel(0)->count : 0 );
    2222                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 );
    2424                if ( pkeys && pkeys->get_channel_count() > 0 && keys && keys->get_channel_count() > 0 )
    2525                {
     
    2828                        for ( unsigned n = 0; n < count; ++n )
    2929                        {
    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;
    3131                        }
    3232                }
     
    6363                        for ( size_t c = 0; c < chan_count; ++c )
    6464                        {
    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 );
    6666                        }
    6767
     
    7979                                for ( uint16 c = 0; c < chan_count; ++c )
    8080                                {
    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 );
    8282                                        pkey += old_keys->get_channel(c)->get_raw( idx, pkey );
    8383                                }
     
    119119void nv::mesh_data_creator::transform( float scale, const mat3& r33 )
    120120{
    121         vec3 vertex_offset     = glm::vec3();
     121        vec3 vertex_offset     = vec3();
    122122        mat3 vertex_transform  = scale * r33;
    123123        mat3 normal_transform  = r33;
     
    297297                        vec3 xyz2 = v2 - v1;
    298298
    299                         //glm::vec3 normal = glm::cross( xyz1, xyz2 );
     299                        //vec3 normal = glm::cross( xyz1, xyz2 );
    300300                        //
    301301                        //vtcs[ ti0 ].normal += normal;
Note: See TracChangeset for help on using the changeset viewer.