Changeset 525


Ignore:
Timestamp:
10/28/16 22:33:56 (9 years ago)
Author:
epyon
Message:
  • its true, I tell you
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/bullet/bullet_world.hh

    r520 r525  
    2929                virtual collision_shape create_box( const vec3& half_extens );
    3030                virtual collision_shape create_static_plane( const vec3& norm, float cst );
    31                 virtual collision_shape create_mesh( array_view< vec3 > vtx, array_view< int > idx );
     31                virtual collision_shape create_mesh( array_view< vec3 > vtx, array_view< uint32 > idx );
    3232                virtual rigid_body create_rigid_body( float mass, const transform& tr, collision_shape shape, const vec3& com_offset = vec3() );
    3333                virtual constraint create_hinge_constraint( rigid_body a, const transform& ta, rigid_body b, const transform& tb, const vec2& low_high, const vec3& params = vec3( 0.9f, 0.3f, 1.0f ) );
  • trunk/nv/engine/model_manager.hh

    r524 r525  
    8585                resource< animator_data >      animator;
    8686                resource< animator_bind_data > bind_data;
     87                resource< data_channel_set >   phx_mesh;
    8788                // TODO: change to resource
    8889                string32                       ragdoll_id;
     
    106107        {
    107108                flat_model_element             elements[32];
     109                resource< data_channel_set >   phx_mesh;
    108110                uint32                         count;
    109111                shash64                        attach;
     
    160162                        result.flags = m->flags;
    161163                        result.count = 0;
     164                        result.phx_mesh = m->phx_mesh;
    162165                        flatten( result, m, rng, control, transform(), -1, map, gen_flags, 0, select );
    163166                        return result;
  • trunk/nv/interface/context.hh

    r523 r525  
    261261                vertex_array create_vertex_array( const VTX* v, size_t vcount, const IDX* i, size_t icount, buffer_hint hint )
    262262                {
    263                         buffer       vb = create_buffer( VERTEX_BUFFER, hint, count * sizeof( VTX ), v );
    264                         buffer       ib = create_buffer( INDEX_BUFFER, hint, icount * sizeof( IDX ), i );
     263                        buffer       vb = this->create_buffer( VERTEX_BUFFER, hint, count * sizeof( VTX ), v );
     264                        buffer       ib = this->create_buffer( INDEX_BUFFER, hint, icount * sizeof( IDX ), i );
    265265                        vertex_array_desc desc;
    266266                        desc.add_vertex_buffers< VTX >( vb, true );
  • trunk/nv/interface/physics_world.hh

    r520 r525  
    6868        public:
    6969                virtual int step_simulation( float dtime, int max_sub_steps = 1, float fixed_time_step = 1.0f / 60.0f ) = 0;
    70                 virtual collision_shape create_mesh( array_view< vec3 > vtx, array_view< int > idx ) = 0;
     70                virtual collision_shape create_mesh( array_view< vec3 > vtx, array_view< uint32 > idx ) = 0;
    7171                virtual collision_shape create_sphere( float radius ) = 0;
    7272                virtual collision_shape create_capsule( float radius, float height ) = 0;
  • trunk/src/bullet/bullet_world.cc

    r520 r525  
    121121}
    122122
    123 nv::collision_shape nv::bullet_world::create_mesh( array_view< vec3 > vtx, array_view< int > idx )
     123nv::collision_shape nv::bullet_world::create_mesh( array_view< vec3 > vtx, array_view< uint32 > idx )
    124124{
    125125        btTriangleMesh* mesh = new btTriangleMesh;
     
    274274{
    275275        if ( !sh.internal ) return;
    276         if ( sh.mesh );
     276        if ( sh.mesh )
    277277        {
    278278                btStridingMeshInterface* smi = static_cast<btStridingMeshInterface*>( sh.mesh );
Note: See TracChangeset for help on using the changeset viewer.