{"id":904,"date":"2009-07-17T09:46:00","date_gmt":"2009-07-17T08:46:00","guid":{"rendered":"http:\/\/it4bus.vn\/itersdesktop\/2009\/07\/17\/opengl-programming-in-linux-glx-and-xlib\/"},"modified":"2009-07-17T09:46:00","modified_gmt":"2009-07-17T08:46:00","slug":"opengl-programming-in-linux-glx-and-xlib","status":"publish","type":"post","link":"https:\/\/www.itersdesktop.com\/fr\/2009\/07\/17\/opengl-programming-in-linux-glx-and-xlib\/","title":{"rendered":"OpenGL Programming in Linux: GLX and Xlib"},"content":{"rendered":"<p>Xlib is a library which provides functions for applications running under the X Window System (also referred to as X). This includes window management as well as event handling. X is a network orientated system: An application which is running on computer A can send its graphical output to computer B, which is located somewhere else in the network (the network can be a LAN as well as the internet), and can receive events like keyboard or mouse input from computer B. This requires that a program called the \u00ab\u00a0X-Server\u00a0\u00bb is running on both computers. In Linux, the X-server is started with the command startx. You will most probably not have to start the X-server manually, because most Linux Distributions will set up the system to automatically start X after booting.<\/p>\n<p>In the following, a small program framework will be developed, which uses the GLX extension to the X windows system. Only little knowledge of X will be needed; for a comprehensive introduction to X the \u00ab\u00a0Xlib Programming Manual\u00a0\u00bb by Adrian Nye can be recommended.<\/p>\n<p>The program starts with the inclusion of the header files:<br \/><a href=\"http:\/\/www.opengl.org\/wiki\/Programming_OpenGL_in_Linux:_GLX_and_Xlib\">More&#8230; <\/a><\/p>\n<p>Another tutorial about OpenGL Programming in Linux is <a href=\"http:\/\/linux.com\/learn\/tutorials\/4614-getting-up-and-running-series-opengl-programming-on-ubuntu-810-intrepid\" target=\"_blank\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xlib is a library which provides functions for applications running under the X Window System (also referred to as X). This includes window management as well as event handling. X&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-904","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts\/904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/comments?post=904"}],"version-history":[{"count":0,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts\/904\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/media?parent=904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/categories?post=904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/tags?post=904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}