Jump to content
  • Advertisement
Sign in to follow this  
themean

OpenGL OpenGL 3.x examples for linux

This topic is 2492 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

[font="arial, sans-serif"][color="#333333"]Can anyone give me example how to draw simple triangle on linux (with all window and context creation)[/font]

[font="arial, sans-serif"][color="#333333"]I can do this on windows , but want to [/font]achieve this on linux with x11 and glx
For now i extremely fail with this
I using this links for tutorials
http://www.opengl.org/wiki/Tutorial:_OpenGL_3.0_Context_Creation_(GLX) for window and context

http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/ for shaders and triangle

Application output is colored screen (no triangle) and glGetError() returns GL_INVALID_ENUM and after that GL_INVALID_OPERATION
This work on windows
Pleas help me i really want to make this on linux

Share this post


Link to post
Share on other sites
Advertisement

[font=arial, sans-serif][color=#333333]Can anyone give me example how to draw simple triangle on linux (with all window and context creation)[/font]

[font=arial, sans-serif][color=#333333]I can do this on windows , but want to [/font]achieve this on linux with x11 and glx


Is there a reason why you need to use GLX? If you don't already know OpenGL, forcing yourself to learn both GLX and OpenGL at the same time will be confusing not to mention that few people will be able to help since its OS specific. I suggest you drop GLX and get it working with Freeglut or some other toolkit that will abstract away the boiler plate code. Once you're comfortable with OpenGL it will be much easier to write native code.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!