the-doomed-posts-of-muteKi

I'm the hedgehog masque replica guy

嘘だらけ塗ったチョースト


twitter, if you must
twitter.com/the_damn_muteKi

MorningSong
@MorningSong

I have made the gradient triangle in OpenGL.

But because I'm me i had to do it special-like. I had to take an example that was in C++ using OpenGL 3.3 and GLFW, and implement in in D, with OpenGL ES 2.0 and SDLGL 2.0.

It took me like 3 days to get here BUT I AM HERE.


MorningSong
@MorningSong

So, I hadn't fully realized there was kind of a major flaw in this. The hello triangle i was copying from used a GL 3.x VBO-VAO setup to draw the triangle. I'm using GLES 2.0 (and i want it to run on a raspi so no GL_OES_vertex_array_object extension either.

It wouldn't draw the triangle. So I ended up fighting and looking at other examples until I found one that used a system-memory vertex array. And that's cool, but I want to be able to draw straight from a VBO, and that wouldn't work no matter what I did.


MorningSong
@MorningSong

Because the punchline of every single programming story is that the programmer, a person typically regarded by society as possessing some sort of intellectual dignity, is invariably stripped of this pretense.


You must log in to comment.

in reply to @namelessWrench's post: