blob: 2ff628c342a88473d19d6689a2f3931b085dd848 [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 Bollecd5c7c2012-06-12 09:05:03 +020010<h1>Function Name Mangling</h1>
Brian Paul0b27ace2003-03-08 17:38:57 +000011
12<p>
Brian Paulbb4b3782006-09-29 01:22:53 +000013If you want to use both Mesa and another OpenGL library in the same
14application at the same time you may find it useful to compile Mesa with
Brian Paul0b27ace2003-03-08 17:38:57 +000015<i>name mangling</i>.
16This results in all the Mesa functions being prefixed with
17<b>mgl</b> instead of <b>gl</b>.
18</p>
19
20<p>
21To do this, recompile Mesa with the compiler flag -DUSE_MGL_NAMESPACE.
Brian Paulbb4b3782006-09-29 01:22:53 +000022Add the flag to CFLAGS in the configuration file which you want to use.
Brian Paulc478f0d2006-11-18 16:44:30 +000023For example:
Andreas Bolldf2be222012-06-12 09:05:22 +020024</p>
Brian Paulc478f0d2006-11-18 16:44:30 +000025<pre>
26CFLAGS += -DUSE_MGL_NAMESPACE
27</pre>
Brian Paul0b27ace2003-03-08 17:38:57 +000028
29
Andreas Bollecd5c7c2012-06-12 09:05:03 +020030</body>
31</html>