1 Attachment(s)
Error in my logic somewhere
I've been learning opengl, finally managed to use index buffers correctly but having an issue with vertex management, specifically and 2nd triangle that should appear is not appearing, I get the first but not the second, when I print the vertices identified by the 2nd triangle's indices they appear to be correct, I cannot for the life of me see where I'm going wrong. I've also been posting here just in case anyone tries to direct me there, it's not the calls that are the issue, only the data being fed. I attached the whole project I'm using to learn opengl, would someone mind having a look through my code and seeing if they can spot the issue, the primary function to look at is glfwRefreshCB(), I've been using trigon instead of triangle because I have a tendency to mistype triangle as traingle. The functions of most interest besides glfwRefreshCB() are add_trigons(), find_quad/trio/pair() and add_trigon_to_index_buffers(). I may have misremembered the spelling of those functions but you get the picture.