having trouble drawing coloured vertices using shader in opengl to draw data read in from COLLADA file
问题 ok so this is the code I use to put the vertex array and buffers onto the graphics card. void Mesh3D::InitializeBuffers(GLuint program) { float largestPos = findLargestPosition(&col->vectorGeometry); std::cout << "largestPos is: "; std::cout << largestPos; std::cout << "\n"; int loc; vaos = new GLuint[nVectorGeometry]; glGenVertexArrays(nVectorGeometry, vaos);//The vertex array object stores the array of vertice indexes used to find the vertex in the buffer vertex buffer object.. vbosPosition