Jump to content
  • Advertisement
Sign in to follow this  
efplaya

opengl + sdl + golang cannot draw simple triangle

This topic is 1250 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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. 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!