Changeset 374 for trunk/src/engine


Ignore:
Timestamp:
05/26/15 17:35:06 (10 years ago)
Author:
epyon
Message:
  • MASSIVE commit
  • common.hh - size_t, ptrdiff_t, nv:: namespace, NV_ALIGN_OF and basic template tools
  • STL - algorithm.hh, iterator.hh, limits.hh, numeric.hh and type_info.hh
  • STL - updates to memory, array and string
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine/particle_engine.cc

    r365 r374  
    77#include <nv/interface/device.hh>
    88#include <nv/core/random.hh>
     9#include <nv/stl/utility.hh>
    910#include <nv/lua/lua_glm.hh>
    1011#include <nv/core/logging.hh>
    11 #include <cmath>
    1212
    1313static const char *nv_particle_engine_vertex_shader_world =
     
    203203        if ( datap->average )
    204204        {
    205                 float norm_factor = glm::min( factor, 1.0f );
     205                float norm_factor = nv::min( factor, 1.0f );
    206206                for ( uint32 i = 0; i < count; ++i )
    207207                        p[i].velocity = datap->force_vector * norm_factor + p[i].velocity * ( 1.0f - norm_factor );
     
    696696                        {
    697697                                info->count--;
    698                                 std::swap( info->particles[i], info->particles[info->count] );
     698                                swap( info->particles[i], info->particles[info->count] );
    699699                        }
    700700                }
Note: See TracChangeset for help on using the changeset viewer.