Brian Paul | 0b27ace | 2003-03-08 17:38:57 +0000 | [diff] [blame^] | 1 | <HTML> |
| 2 | |
| 3 | <TITLE>Function Name Mangling</TITLE> |
| 4 | |
| 5 | <BODY text="#000000" bgcolor="#55bbff" link="#111188"> |
| 6 | |
| 7 | <H1>Function Name Mangling</H1> |
| 8 | |
| 9 | <p> |
| 10 | If you want to use Mesa and native OpenGL in the same application at |
| 11 | the same time you may find it useful to compile Mesa with |
| 12 | <i>name mangling</i>. |
| 13 | This results in all the Mesa functions being prefixed with |
| 14 | <b>mgl</b> instead of <b>gl</b>. |
| 15 | </p> |
| 16 | |
| 17 | <p> |
| 18 | To do this, recompile Mesa with the compiler flag -DUSE_MGL_NAMESPACE. |
| 19 | Add the flag to the other compiler flags in Make-config (if using the |
| 20 | old-style build system) or in src/Makefile if using GNU autoconf/ |
| 21 | automake to build Mesa. |
| 22 | </p> |
| 23 | |
| 24 | |
| 25 | </BODY> |
| 26 | </HTML> |