GlBufferData(GL_ELEMENT_ARRAY_BUFFER, *sizeof(GLushort), GL_STATIC_DRAW) GlBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBuffer1) GlBufferData(GL_ARRAY_BUFFER, *sizeof(GLfloat),, GL_STATIC_DRAW) GlBindBuffer(GL_ARRAY_BUFFER, vertexBuffer1) //vertexBuffer) PieOne = initWithPieGeometry:0.75 thickness:0.20 startAngle:tempAngles*M_PI/180 andEndAngle:tempAngles*M_PI/180] However, If I am initializing and rendering any one of them, it renders just fine (perfect). When I just initialize all of the 3 but render just first, it again shows distorted geometry and somehow the third geometry is more visible (even when I am not rendering it). This results in a distorted geometry for the first two and the third objects geometry renders somewhat fine (not perfect). To check everything, I initialized just 3 objects and render them. I am not able to render my all objects using more than 1 pair of vertex and index buffer objects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |