Monday, April 27, 2009

XGL与AIGLX

前几天在搞Xorg-server和compiz, 就会被扯进3D的技术世界中.

要在linux下使用3D的特效, 都是需要使用OpenGL的. 对于怎么使用OpenGL, 有两种方法:

There are two ways in which a windowing system can allow an OpenGL implementation to talk to the graphics card.

The first is to specify the OpenGL command stream in a portable network-neutral manner using a client/server implementation similar to the X11 drawing routines. This method, used by AIGLX, is indirect in that the drawing commands are sent to the X server and then the X server sends them along to the graphics card.

The second way, which is at the base of Xgl, is to open a window and then allow the OpenGL library to send commands directly to the graphics card.

从上面的文字中看出, 就是直接与间接的区别.

两种方式需要不同的图形服务程序去支持.

对于直接的方法, 是使用一个叫XGL的服务程序, Xgl is an X server architecture designed to take advantage of modern graphics cards via their OpenGL drivers

间接的方法就是使用现在广泛使用的xorg-server, 那么要xorg-server接受OpenGL指令, 还是需要一定的扩展的, 这就是GLX (initialism for "OpenGL Extension to the X Window System") provides the binding connecting OpenGL and the X Window System: it enables programs wishing to use OpenGL to do so within a window provided by the X Window System.

http://en.wikipedia.org/wiki/AIGLX
http://www.gentoo-wiki.info/XGL
http://en.wikipedia.org/wiki/XGL
http://www.gentoo-wiki.info/AIGLX

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.