blob: c96f2f29ae666e9bb4a724ffe2ff743251741a73 [file] [log] [blame]
Andreas Bollecd5c7c2012-06-12 09:05:03 +02001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html lang="en">
3<head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
5 <title>Function Name Mangling</title>
6 <link rel="stylesheet" type="text/css" href="mesa.css">
7</head>
8<body>
Brian Paul0b27ace2003-03-08 17:38:57 +00009
Andreas Bollb5da52a2012-09-18 18:57:02 +020010<div class="header">
11 <h1>The Mesa 3D Graphics Library</h1>
12</div>
13
14<iframe src="contents.html"></iframe>
15<div class="content">
16
Andreas Bollecd5c7c2012-06-12 09:05:03 +020017<h1>Function Name Mangling</h1>
Brian Paul0b27ace2003-03-08 17:38:57 +000018
19<p>
Brian Paulbb4b3782006-09-29 01:22:53 +000020If you want to use both Mesa and another OpenGL library in the same
21application at the same time you may find it useful to compile Mesa with
Brian Paul0b27ace2003-03-08 17:38:57 +000022<i>name mangling</i>.
23This results in all the Mesa functions being prefixed with
24<b>mgl</b> instead of <b>gl</b>.
25</p>
26
27<p>
28To do this, recompile Mesa with the compiler flag -DUSE_MGL_NAMESPACE.
Brian Paulbb4b3782006-09-29 01:22:53 +000029Add the flag to CFLAGS in the configuration file which you want to use.
Brian Paulc478f0d2006-11-18 16:44:30 +000030For example:
Andreas Bolldf2be222012-06-12 09:05:22 +020031</p>
Brian Paulc478f0d2006-11-18 16:44:30 +000032<pre>
33CFLAGS += -DUSE_MGL_NAMESPACE
34</pre>
Brian Paul0b27ace2003-03-08 17:38:57 +000035
Andreas Bollb5da52a2012-09-18 18:57:02 +020036</div>
Andreas Bollecd5c7c2012-06-12 09:05:03 +020037</body>
38</html>