Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


sothro

Member Since 05 Jan 2014
Offline Last Active Apr 07 2015 06:36 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