Ignore:
Timestamp:
07/08/14 21:49:37 (11 years ago)
Author:
epyon
Message:
  • animation key raw sizes (the whole system will be dumped though)
  • bugfix for string_table
  • nv::slot is now an enum class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/interface/vertex_buffer.hh

    r256 r281  
    100100                        m_map[ location ] = p;
    101101                }
     102                void add_vertex_buffer( slot location, vertex_buffer* buffer, datatype datatype, size_t components, size_t offset = 0, size_t stride = 0, bool owner = true )
     103                {
     104                        add_vertex_buffer( (int)location, buffer, datatype, components, offset, stride, owner );
     105                }
    102106
    103107                void add_vertex_buffers( vertex_buffer* buffer, const mesh_raw_channel* channel )
     
    131135                        }
    132136                }
     137                void update_vertex_buffer( slot location, vertex_buffer* b, bool owner )
     138                {update_vertex_buffer( (int)location, b, owner ); }
     139                void update_vertex_buffer( slot location, size_t offset ) {update_vertex_buffer( (int)location, offset );       }
    133140                void set_index_buffer( index_buffer* buffer, datatype datatype, bool owner )
    134141                {
     
    152159                        return nullptr;
    153160                }
     161                vertex_buffer* find_buffer( slot location ) { return find_buffer((int)location); }
    154162                bool has_index_buffer() const { return m_index != nullptr; }
    155163                datatype get_index_buffer_type() const { return m_index_type; }
Note: See TracChangeset for help on using the changeset viewer.