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

« back to all changes in this revision

Viewing changes to docs/mangling.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
<H1>Function Name Mangling</H1>
10
10
 
11
11
<p>
12
 
If you want to use Mesa and native OpenGL in the same application at
13
 
the same time you may find it useful to compile Mesa with
 
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
14
<i>name mangling</i>.
15
15
This results in all the Mesa functions being prefixed with
16
16
<b>mgl</b> instead of <b>gl</b>.
18
18
 
19
19
<p>
20
20
To do this, recompile Mesa with the compiler flag -DUSE_MGL_NAMESPACE.
21
 
Add the flag to the other compiler flags in Make-config (if using the
22
 
old-style build system) or in src/Makefile if using GNU autoconf/
23
 
automake to build Mesa.
 
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>
24
26
</p>
25
27
 
26
28