RAS_MeshSlot *RAS_MaterialBucket::NewMesh(RAS_MeshObject *mesh, RAS_MeshMaterial *meshmat, const RAS_TexVertFormat& format) { RAS_MeshSlot *ms = new RAS_MeshSlot(); ms->init(this, mesh, meshmat, format); m_meshSlots.push_back(ms); return ms; }
RAS_MeshSlot* RAS_MaterialBucket::AddMesh(int numverts) { RAS_MeshSlot *ms; m_meshSlots.push_back(RAS_MeshSlot()); ms = &m_meshSlots.back(); ms->init(this, numverts); return ms; }