Changeset 314 for trunk


Ignore:
Timestamp:
08/19/14 01:34:13 (11 years ago)
Author:
epyon
Message:
  • update( time ) removed from mesh_interface
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/gfx/keyframed_mesh.hh

    r304 r314  
    2828                virtual void update_animation( animation_entry*, uint32 a_anim_time );
    2929                virtual void update( program a_program );
    30                 virtual void update( uint32 ms ) { animated_mesh::update(ms); }
    3130                virtual ~keyframed_mesh();
    3231        protected:
     
    7473        public:
    7574                keyframed_mesh_gpu( context* a_context, const mesh_data* a_data, const mesh_nodes_data* a_tag_map );
    76                 void update( uint32 ms );
     75                void update_animation( animation_entry* anim, uint32 a_anim_time );
    7776                virtual void update( program a_program );
    7877        private:
     
    8988        public:
    9089                keyframed_mesh_cpu( context* a_context, const mesh_data* a_data, const mesh_nodes_data* a_tag_map );
    91                 void update( uint32 ms );
     90                void update_animation( animation_entry* anim, uint32 a_anim_time );
    9291                ~keyframed_mesh_cpu();
    9392        private:
  • trunk/nv/interface/context.hh

    r313 r314  
    4242        public:
    4343                mesh_interface() {}
    44                 virtual void update( uint32 ) {}
    4544                virtual void update( program ) {}
    4645                virtual nv::vertex_array get_vertex_array() const = 0;
     
    9392                virtual void draw( primitive prim, const render_state& rs, program p, vertex_array va, size_t count ) = 0;
    9493
    95                 void draw( const render_state& rs, program p, const mesh_interface* mesh )
    96                 {
    97                         draw( mesh->get_primitive_type(), rs, p, mesh->get_vertex_array(), mesh->get_index_count() );
    98                 }
    99                 void draw( const render_state& rs, const scene_state& s, program p, const mesh_interface* mesh )
    100                 {
    101                         apply_engine_uniforms(p,s);
    102                         draw( rs, p, mesh );
    103                 }
    10494                void draw( primitive prim, const render_state& rs, const scene_state& s, program p, vertex_array va, size_t count )
    10595                {
  • trunk/src/gfx/keyframed_mesh.cc

    r313 r314  
    136136
    137137
    138 void nv::keyframed_mesh_gpu::update( uint32 ms )
    139 {
     138void nv::keyframed_mesh_gpu::update_animation( animation_entry* anim, uint32 a_anim_time )
     139{
     140        keyframed_mesh::update_animation( anim, a_anim_time );
    140141        if ( m_loc_next_position == -1 ) return;
    141         animated_mesh::update( ms );
    142142        if ( m_gpu_last_frame != m_last_frame )
    143143        {
     
    199199}
    200200
    201 void nv::keyframed_mesh_cpu::update( uint32 ms )
    202 {
    203         animated_mesh::update( ms );
    204 
     201void nv::keyframed_mesh_cpu::update_animation( animation_entry* anim, uint32 a_anim_time )
     202{
     203        keyframed_mesh::update_animation( anim, a_anim_time );
    205204        // TODO: this could be done generic for any data
    206205        if ( m_has_tangent )
Note: See TracChangeset for help on using the changeset viewer.