LeeMcQueen / GameDemo

Demo
0 stars 0 forks source link

【ReMake】 loader #11

Closed LeeMcQueen closed 3 years ago

LeeMcQueen commented 3 years ago

RawModel Loader::createVertexArray(std::vector& vertices, std::vector indices) { //生成Vao(顶点数组对象) unsigned int vaoID = createVAO();

//需要确认 开始
unsigned int indicesSize = indices.size();
//需要确认 完毕

//需要确认 开始
//EBO封装调用
bindIndicesBuffer(&vertices[0], indicesSize);
//需要确认 完毕

//记载数据到
storeDataInAttributeList(0, 1 , vertices[0].get)

}