Brian Paul | 0b27ace | 2003-03-08 17:38:57 +0000 | [diff] [blame] | 1 | <HTML> |
| 2 | |
| 3 | <TITLE>Function Name Mangling</TITLE> |
| 4 | |
Brian Paul | 36da045 | 2005-01-20 03:55:10 +0000 | [diff] [blame] | 5 | <link rel="stylesheet" type="text/css" href="mesa.css"></head> |
| 6 | |
| 7 | <BODY> |
Brian Paul | 0b27ace | 2003-03-08 17:38:57 +0000 | [diff] [blame] | 8 | |
| 9 | <H1>Function Name Mangling</H1> |
| 10 | |
| 11 | <p> |
Brian Paul | bb4b378 | 2006-09-29 01:22:53 +0000 | [diff] [blame] | 12 | If you want to use both Mesa and another OpenGL library in the same |
| 13 | application at the same time you may find it useful to compile Mesa with |
Brian Paul | 0b27ace | 2003-03-08 17:38:57 +0000 | [diff] [blame] | 14 | <i>name mangling</i>. |
| 15 | This results in all the Mesa functions being prefixed with |
| 16 | <b>mgl</b> instead of <b>gl</b>. |
| 17 | </p> |
| 18 | |
| 19 | <p> |
| 20 | To do this, recompile Mesa with the compiler flag -DUSE_MGL_NAMESPACE. |
Brian Paul | bb4b378 | 2006-09-29 01:22:53 +0000 | [diff] [blame] | 21 | Add the flag to CFLAGS in the configuration file which you want to use. |
Brian Paul | c478f0d | 2006-11-18 16:44:30 +0000 | [diff] [blame] | 22 | For example: |
| 23 | <pre> |
| 24 | CFLAGS += -DUSE_MGL_NAMESPACE |
| 25 | </pre> |
Brian Paul | 0b27ace | 2003-03-08 17:38:57 +0000 | [diff] [blame] | 26 | </p> |
| 27 | |
| 28 | |
| 29 | </BODY> |
| 30 | </HTML> |