# 3D Acceleration and GLFW

**URL:** <https://discourse.glfw.org/t/3d-acceleration-and-glfw/304>\
**Category:** support\
**Created:** [August 17, 2010, 8:34pm UTC](https://discourse.glfw.org/t/3d-acceleration-and-glfw/304 "2010-08-17T20:34:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 17, 2010, 8:34pm UTC](https://discourse.glfw.org/t/3d-acceleration-and-glfw/304/1 "2010-08-17T20:34:53Z")

</div>

**[soulfreezer](https://sourceforge.net/u/soulfreezer/)** wrote on [Tuesday, August 17, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/d78be6bf/#6b3c):

Hi,

Its me again. 🙂 I am developing a “worms-Clone” and all seems to be pretty  
simple with the nice help of the GLFW.  
But now I was wondering, why it was all so badly slow? so I programmed a  
little Test-Application, which only draws one triangle, which I could move  
with the cursor-keys. This demo was still very slow!! So I googled a while,  
and it seems that I am using  
the Mesa-Implementation of OpenGL which does only support Software rendering.  
But my Games on Ubuntu (for example wow)  
runs very smooth. I have an ATI Card and using the glfrx-driver. So I decided  
to install the glfrx-dev - package.  
After that I have now in my /usr/include/GL - folder the following files:

-rw-r-r- 1 root root 18832 2009-04-30 14:08 glfw.h  
**-rw-r-r- 1 root root 7628 2010-04-09 20:21 glxATI.h  
-rw-r-r- 1 root root 271812 2010-04-09 20:21 glATI.h**  
-rw-r-r- 1 root root 3463 2010-04-29 07:40 glx\_mangle.h  
-rw-r-r- 1 root root 17155 2010-04-29 07:40 glx.h  
-rw-r-r- 1 root root 39904 2010-04-29 07:40 glxext.h  
-rw-r-r- 1 root root 3315 2010-04-29 07:40 glu\_mangle.h  
-rw-r-r- 1 root root 17251 2010-04-29 07:40 glu.h  
-rw-r-r- 1 root root 110027 2010-04-29 07:40 gl\_mangle.h  
-rw-r-r- 1 root root 84058 2010-04-29 07:40 gl.h  
-rw-r-r- 1 root root 504124 2010-04-29 07:40 glext.h

U can see, that there a new Header-Files from ATI!! I looked into the  
glfw.h, and it uses only the gl.h and glu.h, NOT the glATI.h and glxATI.h!!  
Maybe thats no big Problem…I am a noob with linux sorry ☹

Then I looked for [libGL.so](http://libGL.so) files and I found two versions on my system!!

/usr/lib/fglrx/libGL.so  
/usr/lib/fglrx/libGL.so.1  
/usr/lib/fglrx/libGL.so.1.2  
/usr/lib/mesa/libGL.so.1  
/usr/lib/mesa/libGL.so.1.2

Maybe is my prob, that the libGL from mesa is used, instead of the lib from  
fglrx???  
Can someone plz explain me, how this all works, and where does the compiler  
know, which lib it will use?  
I use eclipse and I only added the libs “glfw” and “GLU” in the Project-  
Configuration without path.  
The [libGL.so](http://libGL.so) I never defined anywhere!! But it still compiles…

Can someone help me, what I can do to get 3D Acceleration for my Worms-Clone-  
project? ☹

Maybe this can help u to help me also:

soulfreezer@shadowhost:/usr/lib$ **glxinfo**  
name of display: :0.0  
display: :0 screen: 0  
**direct rendering: Yes**  
server glx vendor string: ATI  
server glx version string: 1.4  
server glx extensions:  
GLX\_ARB\_multisample, GLX\_EXT\_import\_context,  
GLX\_EXT\_texture\_from\_pixmap,  
GLX\_EXT\_visual\_info, GLX\_EXT\_visual\_rating, GLX\_OML\_swap\_method,  
GLX\_SGI\_make\_current\_read, GLX\_SGI\_swap\_control,  
GLX\_SGIS\_multisample,  
GLX\_SGIX\_fbconfig, GLX\_SGIX\_pbuffer, GLX\_SGIX\_visual\_select\_group  
client glx vendor string: ATI  
client glx version string: 1.4  
client glx extensions:  
GLX\_ARB\_create\_context, GLX\_ARB\_create\_context\_profile,  
GLX\_ARB\_get\_proc\_address, GLX\_ARB\_multisample,  
GLX\_EXT\_import\_context,  
GLX\_EXT\_visual\_info, GLX\_EXT\_visual\_rating, GLX\_MESA\_allocate\_memory,  
GLX\_MESA\_swap\_control, GLX\_MESA\_swap\_frame\_usage, GLX\_NV\_swap\_group,  
GLX\_OML\_swap\_method, GLX\_SGI\_make\_current\_read,  
GLX\_SGI\_swap\_control,  
GLX\_SGI\_video\_sync, GLX\_SGIS\_multisample, GLX\_SGIX\_fbconfig,  
GLX\_SGIX\_pbuffer, GLX\_SGIX\_swap\_barrier, GLX\_SGIX\_swap\_group,  
GLX\_SGIX\_visual\_select\_group, GLX\_EXT\_texture\_from\_pixmap,  
GLX\_EXT\_framebuffer\_sRGB, GLX\_ARB\_fbconfig\_float  
GLX version: 1.4  
GLX extensions:  
GLX\_ARB\_create\_context, GLX\_ARB\_create\_context\_profile,  
GLX\_ARB\_get\_proc\_address, GLX\_ARB\_multisample,  
GLX\_EXT\_import\_context,  
GLX\_EXT\_visual\_info, GLX\_EXT\_visual\_rating, GLX\_MESA\_swap\_control,  
GLX\_NV\_swap\_group, GLX\_OML\_swap\_method, GLX\_SGI\_make\_current\_read,  
GLX\_SGI\_swap\_control, GLX\_SGI\_video\_sync, GLX\_SGIS\_multisample,  
GLX\_SGIX\_fbconfig, GLX\_SGIX\_pbuffer, GLX\_SGIX\_swap\_barrier,  
GLX\_SGIX\_swap\_group, GLX\_SGIX\_visual\_select\_group,  
GLX\_EXT\_texture\_from\_pixmap  
OpenGL vendor string: ATI Technologies Inc.  
OpenGL renderer string: ATI Mobility Radeon 4100  
OpenGL version string: 3.2.9756 Compatibility Profile Context  
OpenGL shading language version string: 1.50  
OpenGL extensions:  
GL\_AMDX\_name\_gen\_delete, GL\_AMD\_conservative\_depth,  
GL\_AMD\_draw\_buffers\_blend, GL\_AMD\_performance\_monitor,  
GL\_AMD\_shader\_stencil\_export, GL\_ARB\_color\_buffer\_float,  
GL\_ARB\_copy\_buffer, GL\_ARB\_depth\_buffer\_float, GL\_ARB\_depth\_clamp,  
GL\_ARB\_depth\_texture, GL\_ARB\_draw\_buffers,  
GL\_ARB\_draw\_buffers\_blend,  
GL\_ARB\_draw\_elements\_base\_vertex, GL\_ARB\_draw\_instanced,  
GL\_ARB\_fragment\_coord\_conventions, GL\_ARB\_fragment\_program,  
GL\_ARB\_fragment\_program\_shadow, GL\_ARB\_fragment\_shader,  
GL\_ARB\_framebuffer\_object, GL\_ARB\_framebuffer\_sRGB,  
GL\_ARB\_geometry\_shader4, GL\_ARB\_half\_float\_pixel,  
GL\_ARB\_half\_float\_vertex, GL\_ARB\_imaging, GL\_ARB\_instanced\_arrays,  
GL\_ARB\_map\_buffer\_range, GL\_ARB\_multisample, GL\_ARB\_multitexture,  
GL\_ARB\_occlusion\_query, GL\_ARB\_pixel\_buffer\_object,  
GL\_ARB\_point\_parameters, GL\_ARB\_point\_sprite,  
GL\_ARB\_provoking\_vertex,  
GL\_ARB\_seamless\_cube\_map, GL\_ARB\_shader\_objects,  
GL\_ARB\_shader\_texture\_lod, GL\_ARB\_shading\_language\_100,  
GL\_ARB\_shadow,  
GL\_ARB\_shadow\_ambient, GL\_ARB\_sync, GL\_ARB\_texture\_border\_clamp,  
GL\_ARB\_texture\_buffer\_object, GL\_ARB\_texture\_compression,  
GL\_ARB\_texture\_compression\_rgtc, GL\_ARB\_texture\_cube\_map,  
GL\_ARB\_texture\_env\_add, GL\_ARB\_texture\_env\_combine,  
GL\_ARB\_texture\_env\_crossbar, GL\_ARB\_texture\_env\_dot3,  
GL\_ARB\_texture\_float, GL\_ARB\_texture\_mirrored\_repeat,  
GL\_ARB\_texture\_multisample, GL\_ARB\_texture\_non\_power\_of\_two,  
GL\_ARB\_texture\_rectangle, GL\_ARB\_texture\_rg, GL\_ARB\_texture\_snorm,  
GL\_ARB\_transpose\_matrix, GL\_ARB\_uniform\_buffer\_object,  
GL\_ARB\_vertex\_array\_bgra, GL\_ARB\_vertex\_array\_object,  
GL\_ARB\_vertex\_buffer\_object, GL\_ARB\_vertex\_program,  
GL\_ARB\_vertex\_shader,  
GL\_ARB\_window\_pos, GL\_ATI\_draw\_buffers, GL\_ATI\_envmap\_bumpmap,  
GL\_ATI\_fragment\_shader, GL\_ATI\_meminfo, GL\_ATI\_separate\_stencil,  
GL\_ATI\_texture\_compression\_3dc, GL\_ATI\_texture\_env\_combine3,  
GL\_ATI\_texture\_float, GL\_ATI\_texture\_mirror\_once, GL\_EXT\_abgr,  
GL\_EXT\_bgra, GL\_EXT\_bindable\_uniform, GL\_EXT\_blend\_color,  
GL\_EXT\_blend\_equation\_separate, GL\_EXT\_blend\_func\_separate,  
GL\_EXT\_blend\_minmax, GL\_EXT\_blend\_subtract,  
GL\_EXT\_compiled\_vertex\_array,  
GL\_EXT\_copy\_buffer, GL\_EXT\_copy\_texture, GL\_EXT\_draw\_buffers2,  
GL\_EXT\_draw\_instanced, GL\_EXT\_draw\_range\_elements, GL\_EXT\_fog\_coord,  
GL\_EXT\_framebuffer\_blit, GL\_EXT\_framebuffer\_multisample,  
GL\_EXT\_framebuffer\_object, GL\_EXT\_framebuffer\_sRGB,  
GL\_EXT\_geometry\_shader4, GL\_EXT\_gpu\_program\_parameters,  
GL\_EXT\_gpu\_shader4, GL\_EXT\_histogram, GL\_EXT\_multi\_draw\_arrays,  
GL\_EXT\_packed\_depth\_stencil, GL\_EXT\_packed\_float,  
GL\_EXT\_packed\_pixels,  
GL\_EXT\_pixel\_buffer\_object, GL\_EXT\_point\_parameters,  
GL\_EXT\_provoking\_vertex, GL\_EXT\_rescale\_normal,  
GL\_EXT\_secondary\_color,  
GL\_EXT\_separate\_specular\_color, GL\_EXT\_shadow\_funcs,  
GL\_EXT\_stencil\_wrap,  
GL\_EXT\_subtexture, GL\_EXT\_texgen\_reflection, GL\_EXT\_texture3D,  
GL\_EXT\_texture\_array, GL\_EXT\_texture\_buffer\_object,  
GL\_EXT\_texture\_buffer\_object\_rgb32, GL\_EXT\_texture\_compression\_latc,  
GL\_EXT\_texture\_compression\_rgtc, GL\_EXT\_texture\_compression\_s3tc,  
GL\_EXT\_texture\_cube\_map, GL\_EXT\_texture\_edge\_clamp,  
GL\_EXT\_texture\_env\_add, GL\_EXT\_texture\_env\_combine,  
GL\_EXT\_texture\_env\_dot3, GL\_EXT\_texture\_filter\_anisotropic,  
GL\_EXT\_texture\_integer, GL\_EXT\_texture\_lod, GL\_EXT\_texture\_lod\_bias,  
GL\_EXT\_texture\_mirror\_clamp, GL\_EXT\_texture\_object,  
GL\_EXT\_texture\_rectangle, GL\_EXT\_texture\_sRGB,  
GL\_EXT\_texture\_shared\_exponent, GL\_EXT\_texture\_snorm,  
GL\_EXT\_texture\_swizzle, GL\_EXT\_timer\_query,  
GL\_EXT\_transform\_feedback,  
GL\_EXT\_vertex\_array, GL\_EXT\_vertex\_array\_bgra,  
GL\_IBM\_texture\_mirrored\_repeat, GL\_KTX\_buffer\_region,  
GL\_NV\_blend\_square,  
GL\_NV\_conditional\_render, GL\_NV\_copy\_depth\_to\_color,  
GL\_NV\_explicit\_multisample, GL\_NV\_primitive\_restart,  
GL\_NV\_texgen\_reflection, GL\_SGIS\_generate\_mipmap,  
GL\_SGIS\_texture\_edge\_clamp, GL\_SGIS\_texture\_lod,  
GL\_SUN\_multi\_draw\_arrays,  
GL\_WIN\_swap\_hint, WGL\_EXT\_swap\_control

Direct-Rendering is active!

And a call of “glxgears” in the terminal works so smooth…so my card has 3D-  
Acceleration enabled!!

Has anybody an idea…I switched from windows 7 to ubuntu…but if this will not  
work…I have no alternative to switch back to evil windows ☹

Thanx and plz excuse my bad english (I am German)

Greetz  
Soul

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 17, 2010, 9:36pm UTC](https://discourse.glfw.org/t/3d-acceleration-and-glfw/304/2 "2010-08-17T21:36:56Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Tuesday, August 17, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/d78be6bf/#54ed):

This is an issue with your GNU/Linux distribution and/or your graphics driver,  
not with GLFW. You should refer to a support forum for your distribution for  
help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 20, 2010, 11:55am UTC](https://discourse.glfw.org/t/3d-acceleration-and-glfw/304/3 "2010-08-20T11:55:48Z")

</div>

**[sydbod](https://sourceforge.net/u/sydbod/)** wrote on [Friday, August 20, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/d78be6bf/#d3d0):

Hi soulfreezer,

You are in a similar position to me … coming over from Windows to Linux.

Let us check if you are set up correctly.

1) Are you using Ubuntu 10.04 ?

2) From menu “System -\>Preferences -\>” , does it show the Menu items for “ATI  
Catalyst Control Center” and “ATI Catalyst Control Center (Administrative)”

3)Did you disable “compiz” from operating on your desktop …. Problem is with  
ATI Drivers messing up compiz.  
ie: "System -\>Preferences -\> Appearance ", select the “Visual Effects” tab,  
select "None: … " instead of “Normal: …”

4)Did you use “GLFW 2.7” rather than “GLFW 2.6”

5)Did the “GLFW 2.7” libraries and header files get created properly with the  
make command, and did all the sample programs get compiled properly …… Do all  
the sample programs now run properly?

If you get to this stage then let us know and we can progress further,  
otherwise we have to get tis first part sorted out.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 20, 2010, 7:55pm UTC](https://discourse.glfw.org/t/3d-acceleration-and-glfw/304/4 "2010-08-20T19:55:08Z")

</div>

**[soulfreezer](https://sourceforge.net/u/soulfreezer/)** wrote on [Friday, August 20, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/d78be6bf/#7720):

Thanx for your help 😉 But I switched back now to windows 7 ^^ I have to less  
time to analyse the strange things happens on my ubuntu ☹ …and my worms-game  
must be finished this year xD If I have a stable und runnable demo, I will  
post it here if it is ok?!

@elmindreda

It is stable to use the GLF 2.7 Version? Is it the same interface?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 20, 2010, 9:21pm UTC](https://discourse.glfw.org/t/3d-acceleration-and-glfw/304/5 "2010-08-20T21:21:58Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Friday, August 20, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/d78be6bf/#36c7):

GLFW trunk is quite stable, with two pending fixes remaining until release.

Minor versions are always backward compatible.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 21, 2010, 6:08pm UTC](https://discourse.glfw.org/t/3d-acceleration-and-glfw/304/6 "2010-08-21T18:08:19Z")

</div>

**[soulfreezer](https://sourceforge.net/u/soulfreezer/)** wrote on [Saturday, August 21, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/d78be6bf/#e69b):

Thanx for Info. At the moment I am using the 2.6 Static-lib with Visual Studio  
2010 Ultimate on windows 7 32-Bit. It works  
great and with no Problems (Multithreaded - Release Version). To get it work  
I still converted the msvc80-Solution-project to MSV 2010 and compiled it. And  
NOW I have hardware acceleration!! 😉

Greetz  
Soul
