|
|

楼主 |
发表于 2006-7-26 15:03:00
|
显示全部楼层
Re: linux下的OpenGl编程
Mesa may be compiled in several different ways:
Stand-alone/Xlib mode - Mesa is compiled as a software renderer using Xlib to do all rendering. libGL.so is a self-contained rendering library.
To compile stand-alone Mesa type make in the top-level directory. You'll see a list of supported system configurations. Choose one from the list (such as linux-x86), and type:
make linux-x86
This will produce libGL.so and several other libraries
DRI/accelerated - The DRI hardware drivers (for ATI, Intel, Matrox, etc) are built. libGL.so implements the GLX extension and dynamically loads the DRI drivers.
To build the DRI drivers you'll first need to have the DRM (Direct Rendering Manager) kernel drivers and header files. They're available from the DRI project.
Your distribution should already have both the kernel modules and support library already installed. If not, you can get them from CVS by doing:
cvs -z3 -d:pserver:anonymous@anoncvs.freedesktop.org:/cvs/dri co drm......
我的意思是说Mesa可以在硬件渲染模式下编译,而且这种模式似乎速度更快一些,我的理解没有错吧?但是这种模式下的编译可能需要的资料多一些,所以我想请教各位该怎么样进行这种编译?
|
|