glsl2: Set a flag when visiting the assignee of an assignment
[mesa/nouveau-pmpeg.git] / docs / mangling.html
blob55071544fa63c244b241ba88c0346894e46a78a6
1 <HTML>
3 <TITLE>Function Name Mangling</TITLE>
5 <link rel="stylesheet" type="text/css" href="mesa.css"></head>
7 <BODY>
9 <H1>Function Name Mangling</H1>
11 <p>
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
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>
19 <p>
20 To do this, recompile Mesa with the compiler flag -DUSE_MGL_NAMESPACE.
21 Add the flag to CFLAGS in the configuration file which you want to use.
22 For example:
23 <pre>
24 CFLAGS += -DUSE_MGL_NAMESPACE
25 </pre>
26 </p>
29 </BODY>
30 </HTML>