Jump to content

  • Log In with Google      Sign In   
  • Create Account

sothro

Member Since 05 Jan 2014
Offline Last Active May 10 2014 02:00 AM

#5147439 Drawing to different models

Posted by sothro 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);



PARTNERS