~ubuntu-branches/ubuntu/quantal/mesa-glw/quantal

« back to all changes in this revision

Viewing changes to docs/mangling.html

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2008-05-06 16:19:15 UTC
  • Revision ID: james.westby@ubuntu.com-20080506161915-uynz7nftmfixu6bq
Tags: upstream-7.0.3
ImportĀ upstreamĀ versionĀ 7.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<HTML>
 
2
 
 
3
<TITLE>Function Name Mangling</TITLE>
 
4
 
 
5
<link rel="stylesheet" type="text/css" href="mesa.css"></head>
 
6
 
 
7
<BODY>
 
8
 
 
9
<H1>Function Name Mangling</H1>
 
10
 
 
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>
 
18
 
 
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>
 
27
 
 
28
 
 
29
</BODY>
 
30
</HTML>