opengl + sdl + golang cannot draw simple triangle

Started by
0 comments, last by BitMaster 9 years, 2 months ago

Hello all,

I'm working on creating a simple game with the Go programming language and running into a few opengl/sdl issues. I'm not sure if this is a bindings issue or syntax/semantics issue but I need some help here. I created a basic opengl 3.3 scene with sdl as the windowing framework. All i'm trying to do is display a simple triangle. However; the background changes but I see no triangle. I have posted this on many forums and everyone seems stumped. To save myself and everyone from cross posting I will just link to my original stackoverflow article.

http://stackoverflow.com/questions/27913078/go-lang-opengl-simple-shape-blank-screen

Thanks.

Advertisement
I don't really know Go so I'm not sure of quite a few things in there. I do however notice that you enable depth testing and don't seem to clear the depth buffer.

This topic is closed to new replies.

Advertisement