Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 05 Jan 2014
Offline Last Active Apr 07 2015 06:36 AM

#5147439 Drawing to different models

Posted by on 16 April 2014 - 01:07 PM

I solved my problem, i needed to add following lines to my draw function:

    int sizeVertex=sizeof(GetVertices().front());
    int vertexEllements=GetVertices().size();
    int sizeVertexes=sizeVertex*vertexEllements;
    glBindBuffer(GL_ARRAY_BUFFER,GetBufferIds(1));// BufferIds[1]);//BufferIdsTemp

    glBufferData(GL_ARRAY_BUFFER, sizeVertexes, &GetVertices().front(), GL_STATIC_DRAW);