problems with glVertexAttribPointer - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

problems with glVertexAttribPointer

CucusCucus Posts: 1Member

I'm trying to render a robot which has 7 joints. Each joint is an object called "Joint". I load the vertices correctly but I don't know why I can just see the first joint. I new in openGL so I don't understand very well if my calls are correct or not and the reason why...

Here you can check my code:

vertexArray is the array where I put my vertexs points previously.

[code]GLuint vertexs;
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, 0);[/code]

the render function:
void Joint::render()

Can you see a problem? Thanks
Sign In or Register to comment.