   [dx 10 c++]class with data and redy to draw
  Hy.I have a collada importer for directx that fill a data class with all the property(vertex,normal,binormal, texture ecc..)in some vectors member vars.first the import load the data and in the same class there is a initialize method that create the vertex and index buffer(of the dx10) ready to draw, and delete all the vectors data.Is better to create 2 class : a data class and a ready To draw class then utilize the same class with clear of the vectors?THanks.   
  upup   ;  Do you know in advance the amount of data that needs to be loaded?  If so, you could create the buffers up front, and then the load could read the vertex data directly into the buffers. There is no penalty keeping a map open for a long period of time, and in the end it'll reduce the number of data copies by 1.  You could also recast the buffer pointers into arrays of some structured class that describes your vertex attributes for ease of use.   