OpenGL 3.x examples for linux

Started by
3 comments, last by themean 12 years, 2 months ago

[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

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.
Good judgment comes from experience; experience comes from bad judgment.
I need to manage many windows and all toolkits fail on this
If you like books, there is the OpenGL SuperBible 5th Edition. Its concerning OpenGL 3.0 (actually 3.3+) and contains platform code and examples for Windows, Linux and MacOS.

The updated source from the book is freely available from http://www.starstonesoftware.com/OpenGL/

?hank yousmile.png

This topic is closed to new replies.

Advertisement