Why is that? Running it with "3" (as the tutorial does) does actually work, but renders only one triangle (the first three vertices). I do aim to render six vertices making up two triangles forming a square.
//Edit: having VertexAttribPointer at 3 and DrawArrays at 6 seems to work and makes sense now. I did not see the functions context and that it does not refer to the vertex count of the entire buffer but to the format thereof.
nonsenseincMember Since 18 Nov 2012
Offline Last Active Nov 19 2012 04:38 AM
- Group Members
- Active Posts 4
- Profile Views 755
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown