blob: cb19e7568a59775455e95a48fbbc06dd88278fe1 [file] [log] [blame]
Brian Paul0b27ace2003-03-08 17:38:57 +00001<HTML>
2
3<TITLE>Function Name Mangling</TITLE>
4
Brian Paul36da0452005-01-20 03:55:10 +00005<link rel="stylesheet" type="text/css" href="mesa.css"></head>
6
7<BODY>
Brian Paul0b27ace2003-03-08 17:38:57 +00008
9<H1>Function Name Mangling</H1>
10
11<p>
12If you want to use Mesa and native OpenGL in the same application at
13the same time you may find it useful to compile Mesa with
14<i>name mangling</i>.
15This results in all the Mesa functions being prefixed with
16<b>mgl</b> instead of <b>gl</b>.
17</p>
18
19<p>
20To do this, recompile Mesa with the compiler flag -DUSE_MGL_NAMESPACE.
21Add the flag to the other compiler flags in Make-config (if using the
22old-style build system) or in src/Makefile if using GNU autoconf/
23automake to build Mesa.
24</p>
25
26
27</BODY>
28</HTML>