- Timestamp:
- 06/12/14 11:07:08 (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/gfx/keyframed_mesh.hh
r239 r251 45 45 virtual void set_frame( uint32 frame ); 46 46 virtual void update( uint32 ms ); 47 virtual void update( program* a_program ) ;47 virtual void update( program* a_program ) const; 48 48 virtual ~keyframed_mesh(); 49 49 protected: -
trunk/nv/interface/context.hh
r232 r251 39 39 explicit mesh_interface( vertex_array* array ) : m_va( array ) {} 40 40 virtual void update( uint32 ) {} 41 virtual void update( program* ) {}41 virtual void update( program* ) const {} 42 42 virtual nv::vertex_array* get_vertex_array() const { return m_va; } 43 43 virtual size_t get_index_count() const { return 0; } 44 virtual nv::primitive get_primitive_type() { return nv::TRIANGLES; }44 virtual nv::primitive get_primitive_type() const { return nv::TRIANGLES; } 45 45 virtual ~mesh_interface() {} 46 46 protected: … … 62 62 virtual void draw( primitive prim, const render_state& rs, program* p, vertex_array* va, size_t count ) = 0; 63 63 64 virtual void draw( const render_state& rs, program* p, mesh_interface* mesh )64 virtual void draw( const render_state& rs, program* p, const mesh_interface* mesh ) 65 65 { 66 66 draw( mesh->get_primitive_type(), rs, p, mesh->get_vertex_array(), mesh->get_index_count() ); 67 67 } 68 virtual void draw( const render_state& rs, const scene_state& s, program* p, mesh_interface* mesh )68 virtual void draw( const render_state& rs, const scene_state& s, program* p, const mesh_interface* mesh ) 69 69 { 70 70 p->apply_engine_uniforms( this, &s ); -
trunk/src/gfx/keyframed_mesh.cc
r241 r251 106 106 } 107 107 108 void nv::keyframed_mesh::update( program* a_program ) 108 void nv::keyframed_mesh::update( program* a_program ) const 109 109 { 110 110 a_program->set_opt_uniform( "nv_interpolate", m_interpolation );
Note: See TracChangeset
for help on using the changeset viewer.