| 1 |
<!-- rcsid="$Id: index.html,v 1.29 2010/08/09 19:02:01 fetk Exp $" --> |
| 2 |
<!-- ===================================================================== --> |
| 3 |
<!--#include virtual="../../include/head.html"--> |
| 4 |
<!-- ===================================================================== --> |
| 5 |
|
| 6 |
<object class="largeFonts"> |
| 7 |
SG User's Guide |
| 8 |
</object> |
| 9 |
|
| 10 |
<br /> |
| 11 |
<br /> |
| 12 |
Version 0.1 |
| 13 |
<br /> |
| 14 |
<br /> |
| 15 |
|
| 16 |
<b>Table of Contents</b> |
| 17 |
<ol> |
| 18 |
<li> <a href="#overview">Overview</a></li> |
| 19 |
<li> <a href="#resources">Information and Resources</a></li> |
| 20 |
<li> <a href="#download">Obtaining SG</a></li> |
| 21 |
<li> <a href="#faq">Frequently Asked Questions</a></li> |
| 22 |
<li> <a href="#install">Installation Instructions</a></li> |
| 23 |
<li> <a href="#author">Author Information</a></li> |
| 24 |
<li> <a href="#license">Copyright and Terms of Use</a></li> |
| 25 |
<li> <a href="#gpl">GNU GPL</a></li> |
| 26 |
</ol> |
| 27 |
|
| 28 |
<i> |
| 29 |
NOTE: |
| 30 |
</i> |
| 31 |
This documentation provides information about installation, configuration, |
| 32 |
and general usage of the SG libraries. |
| 33 |
Information about the programming interface provided by the SG software |
| 34 |
can be found in the <a href="api/html/index.html" target="_blank">Programmer's Guide</a>. |
| 35 |
|
| 36 |
<br /> |
| 37 |
<br /> |
| 38 |
<!-- ===================================================================== --> |
| 39 |
<hr /> |
| 40 |
<br /> |
| 41 |
|
| 42 |
<b><a name="overview">Overview</a></b> |
| 43 |
|
| 44 |
<br /> |
| 45 |
<br /> |
| 46 |
SG is an unstructured simplex mesh |
| 47 |
OpenGL display and manipulation tool for use with |
| 48 |
the finite element research codes <a href="../mc/index.html">MC</a> |
| 49 |
and <a href="http://ccom.ucsd.edu/~reb">PLTMG</a>. |
| 50 |
SG provides OpenGL-based graphics over UNIX and INET |
| 51 |
sockets on UNIX/X-based systems, Win32-based systems, and other systems. |
| 52 |
It can also be used with |
| 53 |
<a href="../mclite/index.html">MCLite</a> |
| 54 |
as a replacement for MATLAB's builtin graphics for polygons. |
| 55 |
SG can read Geomview OFF files and OpenInventor files for polygonal |
| 56 |
surface descriptions, and it can also read PDB files for molecule descriptions. |
| 57 |
SG looks and acts somewhat like Geomview, and it mimics most of the basic |
| 58 |
features and controls of Geomview for displaying polygonal 2-manifolds. |
| 59 |
|
| 60 |
<br /> |
| 61 |
<br /> |
| 62 |
<a href="images/ucsd2.gif" style="text-decoration: none"><img src="images/120x120/ucsd2.gif" alt="Figure" border="0" align="right" /></a> |
| 63 |
SG is designed to mimic the well-known Geomview program from the University |
| 64 |
of Minnesota's geometry center, and it uses one of Geomview's input file |
| 65 |
formats (the "OFF" format). Although SG it is quite a bit simpler than |
| 66 |
Geomview, it has three advantages when compared to Geomview. First, it can |
| 67 |
take input directly from files, UNIX pipes, UNIX domain sockets, and |
| 68 |
INET sockets (Geomview cannot take input from INET sockets). |
| 69 |
Second, it can produce provably |
| 70 |
correct PostScript renderings of meshes (Geomview uses a baricenter-based |
| 71 |
front-to-back ordering for the Painter's algorithm, which often fails for |
| 72 |
complex meshes; SG uses a linear programming approach which is |
| 73 |
mathematically guaranteed to work if the picture is paintable with the |
| 74 |
Painter's algorithm). Third, it will build and run on Win32 platforms |
| 75 |
such as Windows 2000, Windows NT, and Windows 98. |
| 76 |
(Some may actually view this as a disadvantage.) |
| 77 |
In the case of Win32, SG uses the WINSOCK API for INET socket access. |
| 78 |
The window-system specific connection to X11 or Win32 is made through |
| 79 |
"WGL" extensions to Win32 under NT, or using the SGI "GLw" widget set |
| 80 |
on X11 platforms. |
| 81 |
The graphics in SG is done in an entirely platform-independent manner |
| 82 |
using OpenGL. |
| 83 |
This portability is due to SG having been built on top of |
| 84 |
a portable low-level abstraction library called MALOC (Minimal Abstraction |
| 85 |
Layer for Object-oriented C). MALOC was written primarily to support the |
| 86 |
development of MC, but is now also used for SG. Both MALOC and SG are now |
| 87 |
both used by Randy Bank in the development of his software package PLTMG. |
| 88 |
|
| 89 |
<br /> |
| 90 |
<br /> |
| 91 |
<b> |
| 92 |
Quaternion-based Trackball Rotator |
| 93 |
</b> |
| 94 |
|
| 95 |
<br /> |
| 96 |
<br /> |
| 97 |
<a href="images/tr.gif" style="text-decoration: none"><img src="images/120x120/tr.gif" alt="Figure" border="0" align="right" /></a> |
| 98 |
SG is a polygonal manifold display and manipulation tool. |
| 99 |
It can also display PDB (Protein DataBase) data as a collection of |
| 100 |
intersecting triangulated spheres of appropriate color and radii. |
| 101 |
It is basically a trackball rotator, although one can also scale and |
| 102 |
translate the object being displayed. |
| 103 |
The manipulation is done with a combination of the mouse and the keyboard. |
| 104 |
The rotator is quaternion-based, following the trackball example in Mark |
| 105 |
Kilgard's OpenGL programming book. |
| 106 |
The rotator avoids gimbal lock, rotation instability, and other degeneracies |
| 107 |
through the use of a projection ball and quaternions. |
| 108 |
The hysteresis problem usually present in rotators is removed by employing |
| 109 |
Ken Shoemake's non-accumulation trick from his famous Arcball example in |
| 110 |
one of the Graphics Gems. |
| 111 |
(I.e., when you move the mouse back to the starting point in a rotation, |
| 112 |
the object resumes its original position.) |
| 113 |
|
| 114 |
<br /> |
| 115 |
<br /> |
| 116 |
<b> |
| 117 |
OpenGL-to-Postscript Generation |
| 118 |
</b> |
| 119 |
|
| 120 |
<br /> |
| 121 |
<br /> |
| 122 |
<a href="images/torus.gif" style="text-decoration: none"><img src="images/120x120/torus.gif" alt="Figure" border="0" align="right" /></a> |
| 123 |
SG can generate a very high-quality Postscript rendering of any displayed |
| 124 |
scene, with (provably) correct logical rendering order of the polygon |
| 125 |
primitives, through the use of builtin routine called SGps. |
| 126 |
SGps generates Postscript output from an arbitrary |
| 127 |
OpenGL scene, by using the feedback buffer mechanism in OpenGL. |
| 128 |
SGps is similar to Seth Teller's PSGL, and to Gary Wu's PSOGL, |
| 129 |
but it does not use the same baricentric depth quicksorting of the polygons, |
| 130 |
which is prone to incorrect rendering orders for complex scenes. |
| 131 |
Instead, SGps is based on a linear programming approach |
| 132 |
developed jointly with R. Bank. |
| 133 |
If a scene can be rendered by the Painter's Algorithm, then SGps is |
| 134 |
guaranteed to find a logically correct painting order, and it will then use |
| 135 |
the Painter's Algorithm to render the scene correctly in Postscript. |
| 136 |
|
| 137 |
<br /> |
| 138 |
<br /> |
| 139 |
<b> |
| 140 |
Input Format |
| 141 |
</b> |
| 142 |
|
| 143 |
<br /> |
| 144 |
<br /> |
| 145 |
Here are some examples illustrating the Geomview-compatible OFF input format tha |
| 146 |
t |
| 147 |
SG employs: |
| 148 |
<a href="mctri.off">tri</a>, |
| 149 |
<a href="mctet.off">tet</a>. |
| 150 |
The portability of SG is attained by the use of a low-level |
| 151 |
abstraction library called <a href="../maloc/index.html">MALOC</a>. |
| 152 |
The MALOC library must be installed before installing SG. |
| 153 |
Similar to MALOC, SG is easily buildable from source on any UNIX-like system, |
| 154 |
and uses a GNU autoconf build environment. |
| 155 |
|
| 156 |
<br /> |
| 157 |
<br /> |
| 158 |
<!-- ===================================================================== --> |
| 159 |
<hr /> |
| 160 |
<br /> |
| 161 |
|
| 162 |
<b><a name="resources">Information and Resources</a></b> |
| 163 |
|
| 164 |
<br /> |
| 165 |
<br /> |
| 166 |
Detailed information about SG can be found in the |
| 167 |
<a href="index.html">User's Guide</a> |
| 168 |
and |
| 169 |
<a href="api/html/index.html">Programmers's Guide</a>. |
| 170 |
|
| 171 |
<br /> |
| 172 |
<br /> |
| 173 |
While SG is itself a self-contained software package, it is one of several |
| 174 |
components of |
| 175 |
FETK |
| 176 |
(the Finite Element ToolKit). |
| 177 |
FETK |
| 178 |
consists of the |
| 179 |
following components written in Clean OO C: |
| 180 |
<ul> |
| 181 |
<li> MALOC - Minimal Abstraction Layer for Object-oriented C programs.</li> |
| 182 |
<li> PUNC - Portable Understructure for Numerical Computing.</li> |
| 183 |
<li> GAMer - Geometry-preserving Adaptive MeshER (uses MALOC).</li> |
| 184 |
<li> SG - Socket Graphics mesh display tool (uses MALOC).</li> |
| 185 |
<li> MC - Manifold Code finite element package (uses MALOC and PUNC).</li> |
| 186 |
<li> MCX - MC eXtension libraries (uses MALOC, PUNC, and MC). </li> |
| 187 |
</ul> |
| 188 |
|
| 189 |
<br /> |
| 190 |
MALOC is self-contained, and requires only an ANSI-C compiler on a UNIX |
| 191 |
or Win32 platform. PUNC, GAMer, SG, and MC are also self-contained, but rely |
| 192 |
on MALOC having been previously installed on the platform. Additional features |
| 193 |
of MC are enabled if PUNC is available, but PUNC is not required to build MC. |
| 194 |
The MC eXtension libraries MCX are constructed on top of MALOC and MC, and |
| 195 |
in order install and use MCX one must first correctly configure and install |
| 196 |
both MALOC and MC. MCX is made up of a number of individual libraries |
| 197 |
developed by members of our group, or contributed by one of a number of |
| 198 |
colleagues. More information about |
| 199 |
FETK |
| 200 |
can be found on the |
| 201 |
FETK |
| 202 |
website: |
| 203 |
<ul> |
| 204 |
<li> <a href="http://www.fetk.org/">http://www.fetk.org/</a></li> |
| 205 |
</ul> |
| 206 |
|
| 207 |
<br /> |
| 208 |
<!-- ===================================================================== --> |
| 209 |
<hr /> |
| 210 |
<br /> |
| 211 |
|
| 212 |
<b><a name="download">Obtaining SG</a></b> |
| 213 |
|
| 214 |
<br /> |
| 215 |
<br /> |
| 216 |
SG is copyrighted, but is redistributable in source and binary form |
| 217 |
under the following <a href="#license">license</a>. |
| 218 |
The SG source can be downloaded from the |
| 219 |
<a href="http://www.fetk.org/codes/download/index.html">FETK Download Page</a>. |
| 220 |
<br /> |
| 221 |
<br /> |
| 222 |
|
| 223 |
In case you are having trouble with X11 on your MacOSX Leopard machine, |
| 224 |
here are some precompiled binaries: |
| 225 |
<ul> |
| 226 |
<li> <a href="http://www.fetk.org/codes/sg/sg-i386-apple" onclick="javascript: pageTracker._trackPageview('/downloads/sg-i386-apple'); "> |
| 227 |
http://www.fetk.org/codes/sg/sg-i386-apple |
| 228 |
</a></li> |
| 229 |
<li> <a href="http://www.fetk.org/codes/sg/mcsg-i386-apple" onclick="javascript: pageTracker._trackPageview('/downloads/mcsg-i386-apple'); "> |
| 230 |
http://www.fetk.org/codes/sg/mcsg-i386-apple |
| 231 |
</a></li> |
| 232 |
<li> <a href="http://www.fetk.org/codes/sg/bridge-i386-apple" onclick="javascript: pageTracker._trackPageview('/downloads/bridge-i386-apple'); "> |
| 233 |
http://www.fetk.org/codes/sg/bridge-i386-apple |
| 234 |
</a></li> |
| 235 |
</ul> |
| 236 |
|
| 237 |
Some older pre-compiled SG and related binaries |
| 238 |
for Win32 platforms can be found below: |
| 239 |
<ul> |
| 240 |
<li> <a href="http://www.fetk.org/codes/sg/mcsg.exe" onclick="javascript: pageTracker._trackPageview('/downloads/mcsg.exe'); "> |
| 241 |
http://www.fetk.org/codes/sg/mcsg.exe |
| 242 |
</a></li> |
| 243 |
<li> <a href="http://www.fetk.org/codes/sg/bridge.exe" onclick="javascript: pageTracker._trackPageview('/downloads/bridge.exe'); "> |
| 244 |
http://www.fetk.org/codes/sg/bridge.exe |
| 245 |
</a></li> |
| 246 |
</ul> |
| 247 |
|
| 248 |
SG uses the low-level FETK abstraction library |
| 249 |
<a href="../maloc/index.html">MALOC</a>, |
| 250 |
which must be installed before installing SG. |
| 251 |
|
| 252 |
<br /> |
| 253 |
<br /> |
| 254 |
<!-- ===================================================================== --> |
| 255 |
<hr /> |
| 256 |
<br /> |
| 257 |
|
| 258 |
<b><a name="faq">Frequently Asked Questions</a></b> |
| 259 |
|
| 260 |
<br /> |
| 261 |
<br /> |
| 262 |
<b> |
| 263 |
What is SG and what does SG stand for? |
| 264 |
</b> |
| 265 |
|
| 266 |
<br /> |
| 267 |
<br /> |
| 268 |
See the <a href="#overview">Overview</a>. |
| 269 |
|
| 270 |
<br /> |
| 271 |
<br /> |
| 272 |
<b> |
| 273 |
How to I obtain a copy of the SG source code? |
| 274 |
</b> |
| 275 |
|
| 276 |
<br /> |
| 277 |
<br /> |
| 278 |
See the <a href="#download">Obtaining SG</a> section. |
| 279 |
|
| 280 |
<br /> |
| 281 |
<br /> |
| 282 |
<b> |
| 283 |
I managed to get a copy of "sg-VERSION.[i386|src|tar].[rpm|gz]"; |
| 284 |
how do I now install SG? |
| 285 |
</b> |
| 286 |
|
| 287 |
<br /> |
| 288 |
<br /> |
| 289 |
See the <a href="#install">Installation Instructions</a>. |
| 290 |
|
| 291 |
<br /> |
| 292 |
<br /> |
| 293 |
<b> |
| 294 |
You gave me a "patch.gz" file to fix a bug in SG; how do I apply the patch? |
| 295 |
</b> |
| 296 |
|
| 297 |
<br /> |
| 298 |
<br /> |
| 299 |
To apply patches to upgrade SG to a new version, you first obtain the patch |
| 300 |
from me or my webpage as a single file with a name like "patch.gz". You |
| 301 |
apply the patch after you have unpacked the sg.tgz file as described above. |
| 302 |
To apply the patch, cd into the directory containing the root SG directory |
| 303 |
(called "sg" after unpacking sg.tgz) and execute the "patch" program as |
| 304 |
follows (the patch program exists on most UNIX machines): |
| 305 |
<ul> |
| 306 |
<li>gzip -cd patch.gz | patch -p0</li> |
| 307 |
</ul> |
| 308 |
|
| 309 |
<br /> |
| 310 |
Patch files are simply the output from a recursive "diff" that are used to |
| 311 |
represent all differences between two directory trees. For example, to create |
| 312 |
a patch representing the changes from version 1.0 of SG (in directory |
| 313 |
sg_1.0 for example) to version 1.1 of SG (e.g. in directory sg_1.1), |
| 314 |
I would normally type the following: |
| 315 |
<ul> |
| 316 |
<li> diff -r -u -N sg_1.0 sg_1.1 > patch1</li> |
| 317 |
<li> gzip -v patch1</li> |
| 318 |
</ul> |
| 319 |
which would produce the gzipped patch file "patch1.gz". If you had previously |
| 320 |
installed version 1.0 of SG but would like to upgrade to version 1.1 of |
| 321 |
SG, you could just download the file "patch1.gz" and apply the changes |
| 322 |
using the program "patch" as above, rather than downloading and reinstalling |
| 323 |
the entire version 1.1 of SG. |
| 324 |
|
| 325 |
<br /> |
| 326 |
<br /> |
| 327 |
<b> |
| 328 |
I really don't know what I'm doing; how to I get more documentation for SG? |
| 329 |
</b> |
| 330 |
|
| 331 |
<br /> |
| 332 |
<br /> |
| 333 |
The |
| 334 |
<a href="index.html">User's Guide</a> |
| 335 |
and the |
| 336 |
<a href="api/html/index.html">Programmers's Guide</a> |
| 337 |
contain all of the SG documentation. |
| 338 |
|
| 339 |
<br /> |
| 340 |
<br /> |
| 341 |
<b> |
| 342 |
Why did you develop SG? There are many other mesh viewer packages, right? |
| 343 |
</b> |
| 344 |
|
| 345 |
<br /> |
| 346 |
<br /> |
| 347 |
Yes, there are. Geomview is awesome. However, we often want to display the |
| 348 |
mesh in a calculation on a local workstation, while running the calculation |
| 349 |
on a larger remote (possibly parallel) machine. For large complex meshes, |
| 350 |
opening up a remote X display is extremely slow (the X libraries may not |
| 351 |
even exist on the large number crucher). By running SG on the local |
| 352 |
machine, our numerical codes on the remote machine can send polygons in |
| 353 |
binary XDR format directly to an INET socket on the local machine. This is |
| 354 |
extremely fast, even for very large datasets. |
| 355 |
Finally, we often need to run visualization tools natively on Win32 platforms. |
| 356 |
|
| 357 |
<br /> |
| 358 |
<br /> |
| 359 |
There are a couple of things we didn't like about Geomview, which we made |
| 360 |
different in SG. For example, the rotator in Geomview exhibits hysteresis |
| 361 |
in the sense that if you return the mouse to its original location when |
| 362 |
rotating, the object doesn't actually return to its original position. |
| 363 |
SG on the other hand uses a quaternion-based trackball rotator, and uses a |
| 364 |
rotation non-accumulation trick due to Ken Shoemake to avoid this type of |
| 365 |
hysteresis (the particular trick can be found in one of the Graphics Gems |
| 366 |
volumes). The PostScript generation mentioned above was another reason for |
| 367 |
writing SG. |
| 368 |
|
| 369 |
<br /> |
| 370 |
<br /> |
| 371 |
<b> |
| 372 |
What is in all of these subdirectories? Where exactly is "SG"? |
| 373 |
</b> |
| 374 |
|
| 375 |
<br /> |
| 376 |
<br /> |
| 377 |
SG consists of several (class) libraries from which you will call routines |
| 378 |
to handle your application. You will need to write a main driver program |
| 379 |
(and any supporting routines you need) and then link to the libraries. |
| 380 |
Alternatively, you can build the SG tools "sg" and "mcsg" by doing a |
| 381 |
"./configure ; make ; make install" in the tools subdirectory. These two |
| 382 |
tools process and display polygon data, and have functionality and behavior |
| 383 |
similar to Geomview. If you are simply after these two tools, then you |
| 384 |
don't need to actually use the libraries and headers that get installed |
| 385 |
when you configure/make/make install the SG libraries. However, the in |
| 386 |
order to successfully configure/make/make install the tools sg and mcsg, |
| 387 |
you must first succesfully configure/make/make install the SG libraries. |
| 388 |
|
| 389 |
<br /> |
| 390 |
<br /> |
| 391 |
As described in the file "INSTALL", you will build all of the libraries in one |
| 392 |
shot for your particular architecture, along with various test programs to |
| 393 |
verify that the various pieces are functioning correctly. The libraries end |
| 394 |
up in "sg/lib", and the header files are in subdirectories in "sg/inc". |
| 395 |
|
| 396 |
<br /> |
| 397 |
<br /> |
| 398 |
The following directory tree is created when you unpack the SG "sg.tgz" |
| 399 |
distribution file by following the instructions in the INSTALL document: |
| 400 |
<pre style="font-family: Courier New"> |
| 401 |
sg |
| 402 |
| |
| 403 |
------------------------ |
| 404 |
/ | | | \ |
| 405 |
config doc examples src tools |
| 406 |
</pre> |
| 407 |
<br /> |
| 408 |
The src directory has the additional subdirectory structure: |
| 409 |
<pre style="font-family: Courier New"> |
| 410 |
src |
| 411 |
| |
| 412 |
------------------------------ |
| 413 |
/ | | | | | | \ |
| 414 |
aaa_inc aaa_lib base gl glu glw ogl vgl |
| 415 |
</pre> |
| 416 |
<br /> |
| 417 |
Within each library source directory is an additional subdirectory, |
| 418 |
"sg". The "sg" subdirectory contains public headers for the library, |
| 419 |
representing the library API; these headers will be installed in the |
| 420 |
specified header install directory during the install procedure after |
| 421 |
building SG. (The OpenGL library subdirectories gl, glu, and glw contain |
| 422 |
additional OpenGL-specific API files in additional subdirectories.) |
| 423 |
|
| 424 |
<br /> |
| 425 |
<br /> |
| 426 |
The following is a brief description of each subdirectory of the package. |
| 427 |
<br /> |
| 428 |
<pre style="font-family: Courier New"> |
| 429 |
sg - The entire SG package |
| 430 |
sg/config - GNU Autoconf scripts and non-unix config files |
| 431 |
sg/doc - SG documentation |
| 432 |
sg/examples - Complex examples and data files for using SG |
| 433 |
sg/src - SG source code (all source and headers) |
| 434 |
sg/src/aaa_inc - Header installation tools |
| 435 |
sg/src/aaa_lib - Library installation tools |
| 436 |
sg/src/*/sg - The SG headers (API) |
| 437 |
sg/src/base - Source for M. Holst's BASE (SG foundation headers) |
| 438 |
sg/src/ogl - Source for M. Holst's OGL (OpenGL rotator kernel) |
| 439 |
sg/src/vgl - Source for M. Holst's VGL (Virtual openGL) |
| 440 |
sg/src/gl - Source files for dubset of B. Paul's MesaGL |
| 441 |
sg/src/glu - Source files for dubset of B. Paul's MesaGLU |
| 442 |
sg/src/glw - Source files for dubset of B. Paul's MesaGLw |
| 443 |
sg/tools - Some binary tools for use with SG |
| 444 |
</pre> |
| 445 |
|
| 446 |
<br /> |
| 447 |
<br /> |
| 448 |
<b> |
| 449 |
Okay, I seem to have installed SG correctly; how do I actually use it now? |
| 450 |
</b> |
| 451 |
|
| 452 |
<br /> |
| 453 |
<br /> |
| 454 |
Using the SG code is very simple; just type "./mcsg" without arguments and |
| 455 |
you get a list of all of the options. The socket bridging tool functions |
| 456 |
similarly; typing "./mcbridge" without arguments gives you a list of all |
| 457 |
of the possible options. The remaining tool "sg" is a motif version of |
| 458 |
"mcsg" with similar functionality, but with a more sophisticated button |
| 459 |
layout. |
| 460 |
|
| 461 |
<br /> |
| 462 |
<br /> |
| 463 |
<b> |
| 464 |
What is the class hierarchy? How are the various libraries related? |
| 465 |
</b> |
| 466 |
|
| 467 |
<br /> |
| 468 |
<br /> |
| 469 |
Detailed information on the class relationships can be found |
| 470 |
in the |
| 471 |
<a href="api/html/index.html">Programmers's Guide</a>. |
| 472 |
The following directed graph shows the class library dependencies. |
| 473 |
(This tends to evolve as MC is developed.) |
| 474 |
<br /> |
| 475 |
<pre style="font-family: Courier New"> |
| 476 |
MALOC ==> base ==> ogl ==> vgl ==> sg |
| 477 |
/\ /\ |
| 478 |
|| || |
| 479 |
OpenGL ===> gl => glu || |
| 480 |
|| |
| 481 |
Window System =========> wgl/glw |
| 482 |
</pre> |
| 483 |
|
| 484 |
<br /> |
| 485 |
<br /> |
| 486 |
<b> |
| 487 |
<a name="cooc"> |
| 488 |
Wait! I have a bunch of other questions, such as: |
| 489 |
</a> |
| 490 |
</b> |
| 491 |
|
| 492 |
<ul> |
| 493 |
<li>What in tarnation is "Clean OO C"?</li> |
| 494 |
<li>Why is SG written in Clean OO C rather than C++ or Objective-C?</li> |
| 495 |
<li>Why is SG written on top of this other package with a weird name (MALOC)?</li> |
| 496 |
<li>I want to extend SG and/or MALOC in some way; what is the "Coding Style"?</li> |
| 497 |
<li>I wrote a cool extension; how do I get it included in SG and/or MALOC?</li> |
| 498 |
</ul> |
| 499 |
These and other related questions are addressed in the MALOC FAQ, which is |
| 500 |
distributed as the README file in the MALOC source distribution. |
| 501 |
|
| 502 |
<br /> |
| 503 |
<br /> |
| 504 |
<!-- ===================================================================== --> |
| 505 |
<hr /> |
| 506 |
<br /> |
| 507 |
|
| 508 |
<b><a name="install">Installation Instructions</a></b> |
| 509 |
|
| 510 |
<br /> |
| 511 |
<br /> |
| 512 |
<b> |
| 513 |
Available distribution formats |
| 514 |
</b> |
| 515 |
|
| 516 |
<br /> |
| 517 |
<br /> |
| 518 |
SG is distributed in both binary format (as a binary RPM file |
| 519 |
sg-VERSION.i386.rpm for i386-based versions of Linux) and in source |
| 520 |
format (as a source RPM file sg-VERSION.src.rpm and as a gzipped tar |
| 521 |
file "sg-VERSION.tar.gz"). |
| 522 |
|
| 523 |
<br /> |
| 524 |
<br /> |
| 525 |
<b> |
| 526 |
Installation using the binary RPM file |
| 527 |
</b> |
| 528 |
|
| 529 |
<br /> |
| 530 |
<br /> |
| 531 |
The following rpm command will install all of the SG headers and libraries |
| 532 |
into /usr/local/include and /usr/local/lib, and will install the SG |
| 533 |
documentation into /usr/share/doc/packages/sg: |
| 534 |
<pre style="font-family: Courier New"> |
| 535 |
rpm -Uvh sg-VERSION.i386.rpm |
| 536 |
</pre> |
| 537 |
|
| 538 |
<br /> |
| 539 |
<b> |
| 540 |
Installation and rebuilding from sources using the source RPM file |
| 541 |
</b> |
| 542 |
|
| 543 |
<br /> |
| 544 |
<br /> |
| 545 |
The following rpm command will unpack the source rpm file |
| 546 |
"sg-VERSON.src.rpm" into the SG gzipped tar file containing |
| 547 |
the sources called "sg-VERSION.tar.tar.gz" and into a small RPM |
| 548 |
spec file called "sg-VERSON.spec": |
| 549 |
<pre style="font-family: Courier New"> |
| 550 |
rpm -Uvh sg-VERSION.src.rpm |
| 551 |
</pre> |
| 552 |
The sources can then be unpacked and built using the directions for |
| 553 |
the gzipped tar file below. |
| 554 |
Alternatively, the following rpm command will do these steps for you: |
| 555 |
<pre style="font-family: Courier New"> |
| 556 |
rpm -bp sg-VERSION.spec |
| 557 |
</pre> |
| 558 |
|
| 559 |
<br /> |
| 560 |
<b> |
| 561 |
Rebuilding binary and source RPM files from the gzipped tar file |
| 562 |
</b> |
| 563 |
|
| 564 |
<br /> |
| 565 |
<br /> |
| 566 |
The SG sources contain the RPM spec file "sg-VERSON.spec" in the |
| 567 |
root source directory; as a result, rebuilding the RPM files from sources |
| 568 |
can be done using the rpm command: |
| 569 |
<pre style="font-family: Courier New"> |
| 570 |
rpm -ta sg-VERSION.tar.gz |
| 571 |
</pre> |
| 572 |
The result will be the corresponding source and binary rpm files, |
| 573 |
named "sg-VERSON.src.rpm" and "sg-VERSION.i386.rpm". |
| 574 |
Normally, these files are written to /usr/src/redhat/SRPMS |
| 575 |
and /usr/src/redhat/RPMS respectively, but you must be logged in |
| 576 |
as root for these to work. |
| 577 |
The destination directories can be overriden using arguments to the |
| 578 |
rpm program (see the rpm manpage). |
| 579 |
|
| 580 |
<br /> |
| 581 |
<br /> |
| 582 |
<b> |
| 583 |
Installation and building from sources using the gzipped tar file |
| 584 |
</b> |
| 585 |
|
| 586 |
<br /> |
| 587 |
<br /> |
| 588 |
The following command will unpack |
| 589 |
SG into a number of subdirectories and files on any UNIX machine |
| 590 |
(and on any WinNT machine with the GNU-Win32 tools gzip and tar). |
| 591 |
<pre style="font-family: Courier New"> |
| 592 |
gzip -dc sg.tgz | tar xvf - |
| 593 |
</pre> |
| 594 |
|
| 595 |
<br /> |
| 596 |
<b> |
| 597 |
Building the package using the GNU "configure" shell script and "make" |
| 598 |
</b> |
| 599 |
|
| 600 |
<br /> |
| 601 |
<br /> |
| 602 |
The "configure" shell script in the "sg" directory (the toplevel |
| 603 |
directory created when you unpacked the SG tgz file) will build the entire |
| 604 |
package. This is a standard GNU autoconf-generated configuration script. |
| 605 |
For a list of the possible configuration options, type: |
| 606 |
<pre style="font-family: Courier New"> |
| 607 |
./configure --help |
| 608 |
</pre> |
| 609 |
<br /> |
| 610 |
You should be able to build SG by simply typing: |
| 611 |
<pre style="font-family: Courier New"> |
| 612 |
./configure |
| 613 |
make |
| 614 |
make install |
| 615 |
</pre> |
| 616 |
<br /> |
| 617 |
However, it is often advantageous to keep the original source directory |
| 618 |
pristine; the configure script can actually be run outside the source |
| 619 |
tree, which will keep all files created by the build outside the source |
| 620 |
tree. (This idea is related to the section below describing how to build |
| 621 |
binaries for multiple architectures at the same time using the same source |
| 622 |
tree, and requires that your version of make has the VPATH facility, such |
| 623 |
as GNU make.) For example, I build SG in a separate directory from the |
| 624 |
source tree as follows: |
| 625 |
<pre style="font-family: Courier New"> |
| 626 |
gzip -dc sg.tgz | tar xvf - |
| 627 |
mkdir sg_build |
| 628 |
cd sg_build |
| 629 |
../sg/configure |
| 630 |
make |
| 631 |
make install |
| 632 |
</pre> |
| 633 |
|
| 634 |
<br /> |
| 635 |
<br /> |
| 636 |
<b> |
| 637 |
Building binaries for multiple architectures in the same source directory |
| 638 |
</b> |
| 639 |
|
| 640 |
<br /> |
| 641 |
<br /> |
| 642 |
If you have a version of "make" that supports the VPATH facility (such as |
| 643 |
any recent version of GNU make), then you can build the package for multiple |
| 644 |
architectures in the same source directory (in fact, you can do the compiles |
| 645 |
at the same time without collisions). This is very useful if you have your |
| 646 |
home directory on an NFS volume that you share among multiple architectures, |
| 647 |
such as SGI, Linux, etc. To build SG for all the systems at the same time, |
| 648 |
you simply make an additional subdirectory in the main SG directory for |
| 649 |
each architecture, copy "configure" into it, "cd" into the subdirectory, and |
| 650 |
then install as above. For example, on a linux machine you would do the |
| 651 |
following: |
| 652 |
<pre style="font-family: Courier New"> |
| 653 |
mkdir linux |
| 654 |
cp configure linux/. |
| 655 |
cd linux |
| 656 |
./configure |
| 657 |
make |
| 658 |
make install |
| 659 |
</pre> |
| 660 |
<br /> |
| 661 |
If you mount the same NFS home directory on for example an OpenStep box, |
| 662 |
you could at the same time do the following: |
| 663 |
<pre style="font-family: Courier New"> |
| 664 |
mkdir next |
| 665 |
cp configure next/. |
| 666 |
cd next |
| 667 |
./configure |
| 668 |
make |
| 669 |
make install |
| 670 |
</pre> |
| 671 |
<br /> |
| 672 |
Again, both builds can actually be done outside the source tree rather |
| 673 |
than in a subdirectory of the source tree, as described in the previous |
| 674 |
section. |
| 675 |
|
| 676 |
<br /> |
| 677 |
<br /> |
| 678 |
<b> |
| 679 |
Building shared libraries rather than static libraries |
| 680 |
</b> |
| 681 |
|
| 682 |
<br /> |
| 683 |
<br /> |
| 684 |
(MIKE: give an overview of libtool.) |
| 685 |
|
| 686 |
<br /> |
| 687 |
<br /> |
| 688 |
<b> |
| 689 |
Rebuilding the configure script and the Makefile.in files |
| 690 |
</b> |
| 691 |
|
| 692 |
<br /> |
| 693 |
<br /> |
| 694 |
If for some reason you actually need to rebuild the configure script or the |
| 695 |
Makefile.in files using the GNU autoconf suite, you should read the block of |
| 696 |
documentation at the top of the configure.in file. The commentary I put there |
| 697 |
explains exactly how the GNU autoconf suite must be used and in what order, |
| 698 |
and exactly what files are produced at each step of the process. A script |
| 699 |
called "bootstrap" which automates this process is located in the config |
| 700 |
subdirectory of the SG source tree. |
| 701 |
|
| 702 |
<br /> |
| 703 |
<br /> |
| 704 |
<b> |
| 705 |
Platform-specific information |
| 706 |
</b> |
| 707 |
|
| 708 |
<br /> |
| 709 |
<br /> |
| 710 |
Below is some platform-specific build/usage information for SG. |
| 711 |
<ul> |
| 712 |
<li>Linux (Source: M. Holst, UCSD) |
| 713 |
<br /> |
| 714 |
<br /> |
| 715 |
Things should work as described above. |
| 716 |
<br /> |
| 717 |
<br /> |
| 718 |
</li> |
| 719 |
<li>FreeBSD/NetBSD/OpenBSD (Source: M. Holst, UCSD) |
| 720 |
<br /> |
| 721 |
<br /> |
| 722 |
Things should work as described above. |
| 723 |
<br /> |
| 724 |
<br /> |
| 725 |
</li> |
| 726 |
<li>OpenStep (Source: M. Holst, UCSD) |
| 727 |
<br /> |
| 728 |
<br /> |
| 729 |
Things should just work, but you may have to set the CC environment |
| 730 |
variable as follows before typing ./configure: |
| 731 |
<pre style="font-family: Courier New"> |
| 732 |
export CC="/bin/cc" |
| 733 |
</pre> |
| 734 |
or you might need to use: |
| 735 |
<pre style="font-family: Courier New"> |
| 736 |
export CC="/bin/cc -ObjC" |
| 737 |
</pre> |
| 738 |
<br /> |
| 739 |
</li> |
| 740 |
<li>IRIX (Source: M. Holst, UCSD) |
| 741 |
<br /> |
| 742 |
<br /> |
| 743 |
If you are on a 64-bit IRIX box such as an Onyx, Octane, or Origin, |
| 744 |
set the CC environment variable as follows before typing ./configure: |
| 745 |
<pre style="font-family: Courier New"> |
| 746 |
export CC="/bin/cc -64" |
| 747 |
</pre> |
| 748 |
If you are on a 32-bit IRIX box such as an O2 or Indy, |
| 749 |
set the CC environment variable as follows before typing ./configure: |
| 750 |
<pre style="font-family: Courier New"> |
| 751 |
export CC="/bin/cc -32" |
| 752 |
</pre> |
| 753 |
<br /> |
| 754 |
|
| 755 |
</li> |
| 756 |
<li>Win32 (Source: M. Holst, UCSD) |
| 757 |
<br /> |
| 758 |
<br /> |
| 759 |
Unless you have the Cygwin environment, you need to use one of the |
| 760 |
included project file collections for one of the commercially |
| 761 |
available ANSI C or C++ compilers for the Win32 environment. |
| 762 |
</li> |
| 763 |
</ul> |
| 764 |
|
| 765 |
<br /> |
| 766 |
<b> |
| 767 |
What you end up with |
| 768 |
</b> |
| 769 |
|
| 770 |
<br /> |
| 771 |
<br /> |
| 772 |
Once the build completes via the "configure;make;make install" procedure above |
| 773 |
with no errors, the SG library (libsg.a and/or libsg.so) is installed |
| 774 |
into the specified installation directory. You can also build some useful |
| 775 |
tools that employ the SG library by cd-ing into the "tools" subdirectory and |
| 776 |
repeating the "configure;make;make install" procedure. |
| 777 |
Once the tools build completes, you will end up with: |
| 778 |
<pre style="font-family: Courier New"> |
| 779 |
mcsg - Core socket OpenGL tool ([GLw | WGL] + [X | Win32] + OpenGL) |
| 780 |
mcbridge - A socket bridging tool (FILE/PIPE/UNIX/INET) |
| 781 |
sg - A Motif version of mcsg (Motif + X + OpenGL) |
| 782 |
</pre> |
| 783 |
<br /> |
| 784 |
If the SG tools work like they were designed, you won't need any more |
| 785 |
information to use the tools. If you want to know more about the details |
| 786 |
of the algorithms in SG, or about the implementation details such as the |
| 787 |
socket graphics, have a look at the |
| 788 |
<a href="api/html/index.html">Programmer's Guide</a>. |
| 789 |
|
| 790 |
<br /> |
| 791 |
<br /> |
| 792 |
<b> |
| 793 |
Getting SG to find your installation of GL/GLU/GLw/Motif/Etc |
| 794 |
</b> |
| 795 |
|
| 796 |
<br /> |
| 797 |
<br /> |
| 798 |
If your installation of OpenGL (libGL, libGLU, libGLw and headers) and/or |
| 799 |
Motif is located in an unusual directory, then the configuration script may |
| 800 |
have trouble finding the libraries or the headers. The configure script |
| 801 |
prints out the state of affairs quite clearly as to whether it found the |
| 802 |
libraries and the headers. If you have the libraries and configure is not |
| 803 |
finding them, then here are several possible solutions, each of which usually |
| 804 |
works. They are listed in preferred order (i.e. you should try Solution 1 |
| 805 |
first, and if that doesn't work try Solution 2, and so on). |
| 806 |
|
| 807 |
<br /> |
| 808 |
<br /> |
| 809 |
Note that you DO NOT need Motif in order to build SG; if you DO have Motif, |
| 810 |
then the additional Motif-based tool "sg" is built. Without |
| 811 |
Motif libraries on your system, you still get the base socket graphics tool |
| 812 |
"mcsg" and the socket bridging tool "mcbridge". ("sg" is |
| 813 |
somewhat fancier than "mcsg", but "mcsg" has all of the core functionality |
| 814 |
of the Motif tool.) On a Win32 machine such as Windows NT, you will also |
| 815 |
end up with both "mcsg" and "mcbridge". |
| 816 |
<ul> |
| 817 |
<li>Solution 1: |
| 818 |
<br /> |
| 819 |
<br /> |
| 820 |
Have your system administrator install MPI in a proper system |
| 821 |
directory so that MALOC (and other AUTOCONF-based codes) can find it! |
| 822 |
<br /> |
| 823 |
<br /> |
| 824 |
</li> |
| 825 |
<li>Solution 2: |
| 826 |
<ol> |
| 827 |
<li>Find the location of the OpenGL libraries and headers and the |
| 828 |
Motif libraries and headers on your system, either by asking your |
| 829 |
sysadmin, poking around yourself, or (if you have it) using the |
| 830 |
"locate" utility: |
| 831 |
<pre style="font-family: Courier New"> |
| 832 |
locate libGL.a |
| 833 |
locate libGLU.a |
| 834 |
locate libGLw.a |
| 835 |
locate gl.h |
| 836 |
locate glu.h |
| 837 |
locate GLwDrawA.h |
| 838 |
locate libXm.a |
| 839 |
locate Xm.h |
| 840 |
</pre> |
| 841 |
On my Redhat6.2 Linux box with LessTif supplying Motif, XiGraphics' |
| 842 |
supplying two of the OpenGL libraries (libGL and libGLU), and Mesa |
| 843 |
supplying the third (libGLw), the following output is produced: |
| 844 |
<pre style="font-family: Courier New"> |
| 845 |
mc:~% locate libGL.a |
| 846 |
/usr/lib/libGL.a |
| 847 |
mc:~% locate libGLU.a |
| 848 |
/usr/lib/libGLU.a |
| 849 |
mc:~% locate libGLw.a |
| 850 |
/usr/local/lib/libGLw.a |
| 851 |
|
| 852 |
mc:~% locate gl.h |
| 853 |
/usr/include/GL/gl.h |
| 854 |
mc:~% locate glu.h |
| 855 |
/usr/include/GL/glu.h |
| 856 |
mc:~% locate GLwDrawA.h |
| 857 |
/usr/local/include/GL/GLwDrawA.h |
| 858 |
|
| 859 |
mc:~% locate libXm.a |
| 860 |
/usr/X11R6/lib/libXm.a |
| 861 |
mc:~% locate Xm.h |
| 862 |
/usr/X11R6/include/Xm/Xm.h |
| 863 |
</pre> |
| 864 |
Therefore, my OpenGL libraries are installed as: |
| 865 |
<pre style="font-family: Courier New"> |
| 866 |
/usr/lib/libGL.a |
| 867 |
/usr/lib/libGLU.a |
| 868 |
/usr/X11R6/lib/libGLw.a |
| 869 |
</pre> |
| 870 |
and the associated OpenGL headers are installed as: |
| 871 |
<pre style="font-family: Courier New"> |
| 872 |
/usr/include/GL/gl.h |
| 873 |
/usr/include/GL/glu.h |
| 874 |
/usr/local/include/GL/GLwDrawA.h |
| 875 |
</pre> |
| 876 |
My Motif library is installed as: |
| 877 |
<pre style="font-family: Courier New"> |
| 878 |
/usr/X11R6/lib/libXm.a |
| 879 |
</pre> |
| 880 |
and the associated Motif headers are installed as: |
| 881 |
<pre style="font-family: Courier New"> |
| 882 |
/usr/X11R6/include/Xm/Xm.h |
| 883 |
</pre> |
| 884 |
</li> |
| 885 |
<li>Before running the configure script, preset the environment |
| 886 |
variables: |
| 887 |
<pre style="font-family: Courier New"> |
| 888 |
FETK_GL_LIBRARY, FETK_GL_INCLUDE, |
| 889 |
FETK_GLU_LIBRARY, FETK_GLU_INCLUDE, |
| 890 |
FETK_GLW_LIBRARY, FETK_GLW_INCLUDE, |
| 891 |
FETK_MOTIF_LIBRARY, FETK_MOTIF_INCLUDE, |
| 892 |
</pre> |
| 893 |
to point to the directories containing: |
| 894 |
<pre style="font-family: Courier New"> |
| 895 |
libGL.a, gl.h, |
| 896 |
libGLU.a, glu.h, |
| 897 |
libGLw.a, GLwDrawA.h, |
| 898 |
libXm.a, Xm.h, |
| 899 |
</pre> |
| 900 |
respectively. Under bash, using the results from the example |
| 901 |
above, I would do this as follows: |
| 902 |
<pre style="font-family: Courier New"> |
| 903 |
export FETK_GL_LIBRARY=/usr/lib |
| 904 |
export FETK_GL_INCLUDE=/usr/include |
| 905 |
export FETK_GLU_LIBRARY=/usr/lib |
| 906 |
export FETK_GLU_INCLUDE=/usr/include |
| 907 |
export FETK_GLW_LIBRARY=/usr/local/lib |
| 908 |
export FETK_GLW_INCLUDE=/usr/local/include |
| 909 |
export FETK_MOTIF_LIBRARY=/usr/X11R6/lib |
| 910 |
export FETK_MOTIF_INCLUDE=/usr/X11R6/include |
| 911 |
./configure |
| 912 |
</pre> |
| 913 |
The configure script should now report that it successfully |
| 914 |
found the libraries and headers, and then SG should compile |
| 915 |
without error. |
| 916 |
</li> |
| 917 |
</ol> |
| 918 |
</li> |
| 919 |
</ul> |
| 920 |
|
| 921 |
<br /> |
| 922 |
<!-- ===================================================================== --> |
| 923 |
<hr /> |
| 924 |
<br /> |
| 925 |
|
| 926 |
<b><a name="author">Author Information</a></b> |
| 927 |
|
| 928 |
<br /> |
| 929 |
<br /> |
| 930 |
SG (Socket Graphics) was conceived, |
| 931 |
designed, and implemented over several years by |
| 932 |
<a href="http://ccom.ucsd.edu/~mholst/">Michael Holst</a>, |
| 933 |
beginning with an initial implementation in 1994. |
| 934 |
Various colleagues have contributed ideas and/or code to SG |
| 935 |
(see the credits list below). |
| 936 |
<pre style="font-family: Courier New"> |
| 937 |
SG (Socket Graphics) |
| 938 |
Copyright (C) 1994-- |
| 939 |
|
| 940 |
Michael Holst TELE: (858) 534-4899 |
| 941 |
Department of Mathematics FAX: (858) 534-5273 |
| 942 |
UC San Diego, AP&M 5739 EMAIL: [email protected] |
| 943 |
La Jolla, CA 92093 USA WEB: http://ccom.ucsd.edu/~mholst |
| 944 |
</pre> |
| 945 |
SG was designed to be a portable networked visualization tool for use in the |
| 946 |
development of MC (Manifold Code), an adaptive multilevel finite element |
| 947 |
package also developed by |
| 948 |
<a href="http://ccom.ucsd.edu/~mholst/">Michael Holst</a>. |
| 949 |
It is also used by Randy Bank as |
| 950 |
the primary visualization tool for PLTMG. Both SG and MC are written on top |
| 951 |
of a low-level abstraction layer called MALOC (Minimal Abstraction |
| 952 |
Layer for Object-oriented C), also developed by |
| 953 |
<a href="http://ccom.ucsd.edu/~mholst/">Michael Holst</a>. |
| 954 |
SG was developed almost |
| 955 |
entirely on a home-grown 90Mhz Pentium PC running various flavors of |
| 956 |
Linux and [Free|Net|Open]BSD, using primarily GNU, BSD, and other free |
| 957 |
software development tools. Most of the development occurred during the |
| 958 |
hours of 10pm to 2am on a daily basis for several years, under heavy |
| 959 |
influence of Starbuck's coffee, with helpful advice provided by Mac and |
| 960 |
Mochi (two cats knowledgable in socket programming and numerical analysis). |
| 961 |
|
| 962 |
<br /> |
| 963 |
<br /> |
| 964 |
SG was released under the GNU GPL (GNU General Public License) beginning |
| 965 |
with the initial implementation in 1994, and continues to be released under |
| 966 |
this license. What this means is that like all |
| 967 |
GNU software, SG is freely redistributable in source code form following |
| 968 |
the rules outlined in the text of the GNU GPL. You should have received a |
| 969 |
copy of the GNU GPL with this distribution of SG; a copy can be found |
| 970 |
<a href="#gpl">here</a>. |
| 971 |
If you did not receive a copy of the GNU GPL, please write to me and also |
| 972 |
write to: |
| 973 |
The Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 974 |
|
| 975 |
<br /> |
| 976 |
<br /> |
| 977 |
<b> |
| 978 |
Software included in the SG source code package |
| 979 |
</b> |
| 980 |
|
| 981 |
<br /> |
| 982 |
<br /> |
| 983 |
A complete roadmap to the source code forming the SG package can be |
| 984 |
found above. |
| 985 |
While the core SG classes were developed primarily by |
| 986 |
<a href="http://ccom.ucsd.edu/~mholst/">Michael Holst</a>, |
| 987 |
some additional software is currently included with SG: |
| 988 |
<pre style="font-family: Courier New"> |
| 989 |
sg/src/vgl/vglm.c - Motif Variant of vgl (joint Bank/Holst effort) |
| 990 |
sg/src/vgl/oglps.c - Perfect PS generation (joint Bank/Holst effort) |
| 991 |
sg/src/gl/* - B. Paul's MesaGL (the GL library) |
| 992 |
sg/src/glu/* - B. Paul's MesaGLU (the GLU library) |
| 993 |
sg/src/glw/* - SGI's OpenGL widgets (the GLw library) |
| 994 |
</pre> |
| 995 |
The extra conditionally-build libraries provide the complete OpenGL |
| 996 |
capability that SG requires in order to function, if these libraries |
| 997 |
are not available on the particular platform. Under normal circumstances, |
| 998 |
these three libraries will not have to be built; the OpenGL API they |
| 999 |
provide is completely software-based, and will be slower than native |
| 1000 |
hardware-accelerated OpenGL which is normally available on modern |
| 1001 |
PCs, Macs, and SGI platforms. |
| 1002 |
|
| 1003 |
<br /> |
| 1004 |
<br /> |
| 1005 |
<b> |
| 1006 |
Credits |
| 1007 |
</b> |
| 1008 |
|
| 1009 |
<br /> |
| 1010 |
<br /> |
| 1011 |
Below is a credits list for the people that have |
| 1012 |
contributed to SG in one way or another. |
| 1013 |
The fields below follow the credits file format used in the |
| 1014 |
Linux kernel CREDITS file to allow for easy manipulation via shell scripts. |
| 1015 |
The fields are as follows: |
| 1016 |
<br /> |
| 1017 |
<pre style="font-family: Courier New"> |
| 1018 |
N: name of contributor |
| 1019 |
E: email address |
| 1020 |
W: web address |
| 1021 |
P: PGP key ID and fingerprint |
| 1022 |
D: description of primary contributions |
| 1023 |
S: snail-mail address |
| 1024 |
</pre> |
| 1025 |
<br /> |
| 1026 |
<pre style="font-family: Courier New"> |
| 1027 |
N: Michael Holst |
| 1028 |
E: [email protected] |
| 1029 |
W: http://ccom.ucsd.edu/~mholst |
| 1030 |
P: 1024/0xB5212DCD |
| 1031 |
D: sg/* -- The package structure |
| 1032 |
D: sg/acconfig.h -- The platform abstraction information |
| 1033 |
D: sg/configure.in -- The GNU autoconf/automake structure |
| 1034 |
D: sg/config/* -- The GNU autoconf/automake shell scripts |
| 1035 |
D: sg/doc/* -- The package documentation |
| 1036 |
D: sg/examples/* -- The package examples |
| 1037 |
D: sg/src/aaa_inc/* -- Library header build structure |
| 1038 |
D: sg/src/aaa_lib/* -- Static and shared library build structure |
| 1039 |
D: sg/src/base/* -- M. Holst's SG Foundation headers |
| 1040 |
D: sg/src/ogl/* -- M. Holst's OpenGL-based trackball rotator |
| 1041 |
D: sg/src/vgl/* -- M. Holst's window system abstraction layer |
| 1042 |
D: sg/src/gl/* -- The libGL wrapper |
| 1043 |
D: sg/src/glu/* -- The libGLU wrapper |
| 1044 |
D: sg/src/glw/* -- The libGLw wrapper |
| 1045 |
D: sg/tools/* -- Tools built on the libraries |
| 1046 |
S: Department of Mathematics |
| 1047 |
S: UC San Diego, AP&M 5739 |
| 1048 |
S: La Jolla, CA 92093 USA |
| 1049 |
|
| 1050 |
N: Randolph E. Bank |
| 1051 |
E: [email protected] |
| 1052 |
D: sg/src/vgl/vglm.c -- Vglm Class (Motif variant; joint w/ Holst) |
| 1053 |
D: sg/src/ogl/oglps.c -- OglPS Class (Perfect PS; joint w/ Holst) |
| 1054 |
S: Department of Mathematics |
| 1055 |
S: UC San Diego |
| 1056 |
S: La Jolla, CA 92093 USA |
| 1057 |
|
| 1058 |
N: Steve Bond |
| 1059 |
E: [email protected] |
| 1060 |
D: sg/sg.spec -- RPM support (for building src/binary RPMs) |
| 1061 |
S: Department of Mathematics |
| 1062 |
S: UC San Diego |
| 1063 |
S: La Jolla, CA 92093 USA |
| 1064 |
</pre> |
| 1065 |
|
| 1066 |
<br /> |
| 1067 |
<br /> |
| 1068 |
<b> |
| 1069 |
Contacting the Author |
| 1070 |
</b> |
| 1071 |
|
| 1072 |
<br /> |
| 1073 |
<br /> |
| 1074 |
If you have questions or comments about SG, please feel free to contact |
| 1075 |
me at <a href="mailto:[email protected]">[email protected]</a>. |
| 1076 |
|
| 1077 |
<br /> |
| 1078 |
<br /> |
| 1079 |
<!-- ===================================================================== --> |
| 1080 |
<hr /> |
| 1081 |
<br /> |
| 1082 |
|
| 1083 |
<b><a name="license">Copyright and Terms of Use</a></b> |
| 1084 |
|
| 1085 |
<i>Please acknowledge your use of SG and |
| 1086 |
FETK |
| 1087 |
</i> by citing: |
| 1088 |
<ul> |
| 1089 |
<li> M. Holst, Adaptive numerical treatment of elliptic systems on manifolds. |
| 1090 |
<i>Advances in Computational Mathematics</i>, |
| 1091 |
<b>15</b> (2001), pp. 139-191. |
| 1092 |
</li> |
| 1093 |
</ul> |
| 1094 |
|
| 1095 |
<br /> |
| 1096 |
<br /> |
| 1097 |
This version of SG is distributed under the following guidelines: |
| 1098 |
|
| 1099 |
<ul> |
| 1100 |
<li> |
| 1101 |
SG (Socket Graphics) |
| 1102 |
<br /> |
| 1103 |
Copyright (C) 1994-2010 Michael Holst |
| 1104 |
|
| 1105 |
<br /> |
| 1106 |
<br /> |
| 1107 |
This program is free software; you can redistribute it and/or modify it |
| 1108 |
under the terms of the GNU General Public License as published by the |
| 1109 |
Free Software Foundation; either version 2 of the License, or (at your |
| 1110 |
option) any later version. |
| 1111 |
|
| 1112 |
<br /> |
| 1113 |
<br /> |
| 1114 |
This program is distributed in the hope that it will be useful, |
| 1115 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1116 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 1117 |
See the GNU General Public License for more details. |
| 1118 |
|
| 1119 |
<br /> |
| 1120 |
<br /> |
| 1121 |
You should have received a copy of the GNU General Public License along |
| 1122 |
with this program; if not, write to the Free Software Foundation, Inc., |
| 1123 |
675 Mass Ave, Cambridge, MA 02139, USA. |
| 1124 |
</li> |
| 1125 |
</ul> |
| 1126 |
|
| 1127 |
<br /> |
| 1128 |
<!-- ===================================================================== --> |
| 1129 |
<hr /> |
| 1130 |
<br /> |
| 1131 |
|
| 1132 |
<b><a name="gpl">GNU GPL</a></b> |
| 1133 |
|
| 1134 |
<br /> |
| 1135 |
<br /> |
| 1136 |
The GPL (GNU General Public License) below is copyrighted by the |
| 1137 |
Free Software Foundation. However, the instance of software that |
| 1138 |
it refers to, my package in this case, is copyrighted by myself as |
| 1139 |
the author of the package. Any additional software that I distribute |
| 1140 |
with my software is copyrighted by the authors of those pieces of |
| 1141 |
software (see the individual source files for author information). |
| 1142 |
---Michael Holst |
| 1143 |
|
| 1144 |
<!-- ===================================================================== --> |
| 1145 |
|
| 1146 |
<pre style="font-family: Courier New"> |
| 1147 |
GNU GENERAL PUBLIC LICENSE |
| 1148 |
Version 2, June 1991 |
| 1149 |
|
| 1150 |
Copyright (C) 1989, 1991 Free Software Foundation, Inc. |
| 1151 |
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 1152 |
Everyone is permitted to copy and distribute verbatim copies |
| 1153 |
of this license document, but changing it is not allowed. |
| 1154 |
|
| 1155 |
Preamble |
| 1156 |
|
| 1157 |
The licenses for most software are designed to take away your |
| 1158 |
freedom to share and change it. By contrast, the GNU General Public |
| 1159 |
License is intended to guarantee your freedom to share and change free |
| 1160 |
software--to make sure the software is free for all its users. This |
| 1161 |
General Public License applies to most of the Free Software |
| 1162 |
Foundation's software and to any other program whose authors commit to |
| 1163 |
using it. (Some other Free Software Foundation software is covered by |
| 1164 |
the GNU Library General Public License instead.) You can apply it to |
| 1165 |
your programs, too. |
| 1166 |
|
| 1167 |
When we speak of free software, we are referring to freedom, not |
| 1168 |
price. Our General Public Licenses are designed to make sure that you |
| 1169 |
have the freedom to distribute copies of free software (and charge for |
| 1170 |
this service if you wish), that you receive source code or can get it |
| 1171 |
if you want it, that you can change the software or use pieces of it |
| 1172 |
in new free programs; and that you know you can do these things. |
| 1173 |
|
| 1174 |
To protect your rights, we need to make restrictions that forbid |
| 1175 |
anyone to deny you these rights or to ask you to surrender the rights. |
| 1176 |
These restrictions translate to certain responsibilities for you if you |
| 1177 |
distribute copies of the software, or if you modify it. |
| 1178 |
|
| 1179 |
For example, if you distribute copies of such a program, whether |
| 1180 |
gratis or for a fee, you must give the recipients all the rights that |
| 1181 |
you have. You must make sure that they, too, receive or can get the |
| 1182 |
source code. And you must show them these terms so they know their |
| 1183 |
rights. |
| 1184 |
|
| 1185 |
We protect your rights with two steps: (1) copyright the software, and |
| 1186 |
(2) offer you this license which gives you legal permission to copy, |
| 1187 |
distribute and/or modify the software. |
| 1188 |
|
| 1189 |
Also, for each author's protection and ours, we want to make certain |
| 1190 |
that everyone understands that there is no warranty for this free |
| 1191 |
software. If the software is modified by someone else and passed on, we |
| 1192 |
want its recipients to know that what they have is not the original, so |
| 1193 |
that any problems introduced by others will not reflect on the original |
| 1194 |
authors' reputations. |
| 1195 |
|
| 1196 |
Finally, any free program is threatened constantly by software |
| 1197 |
patents. We wish to avoid the danger that redistributors of a free |
| 1198 |
program will individually obtain patent licenses, in effect making the |
| 1199 |
program proprietary. To prevent this, we have made it clear that any |
| 1200 |
patent must be licensed for everyone's free use or not licensed at all. |
| 1201 |
|
| 1202 |
The precise terms and conditions for copying, distribution and |
| 1203 |
modification follow. |
| 1204 |
|
| 1205 |
GNU GENERAL PUBLIC LICENSE |
| 1206 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
| 1207 |
|
| 1208 |
0. This License applies to any program or other work which contains |
| 1209 |
a notice placed by the copyright holder saying it may be distributed |
| 1210 |
under the terms of this General Public License. The "Program", below, |
| 1211 |
refers to any such program or work, and a "work based on the Program" |
| 1212 |
means either the Program or any derivative work under copyright law: |
| 1213 |
that is to say, a work containing the Program or a portion of it, |
| 1214 |
either verbatim or with modifications and/or translated into another |
| 1215 |
language. (Hereinafter, translation is included without limitation in |
| 1216 |
the term "modification".) Each licensee is addressed as "you". |
| 1217 |
|
| 1218 |
Activities other than copying, distribution and modification are not |
| 1219 |
covered by this License; they are outside its scope. The act of |
| 1220 |
running the Program is not restricted, and the output from the Program |
| 1221 |
is covered only if its contents constitute a work based on the |
| 1222 |
Program (independent of having been made by running the Program). |
| 1223 |
Whether that is true depends on what the Program does. |
| 1224 |
|
| 1225 |
1. You may copy and distribute verbatim copies of the Program's |
| 1226 |
source code as you receive it, in any medium, provided that you |
| 1227 |
conspicuously and appropriately publish on each copy an appropriate |
| 1228 |
copyright notice and disclaimer of warranty; keep intact all the |
| 1229 |
notices that refer to this License and to the absence of any warranty; |
| 1230 |
and give any other recipients of the Program a copy of this License |
| 1231 |
along with the Program. |
| 1232 |
|
| 1233 |
You may charge a fee for the physical act of transferring a copy, and |
| 1234 |
you may at your option offer warranty protection in exchange for a fee. |
| 1235 |
|
| 1236 |
2. You may modify your copy or copies of the Program or any portion |
| 1237 |
of it, thus forming a work based on the Program, and copy and |
| 1238 |
distribute such modifications or work under the terms of Section 1 |
| 1239 |
above, provided that you also meet all of these conditions: |
| 1240 |
|
| 1241 |
a) You must cause the modified files to carry prominent notices |
| 1242 |
stating that you changed the files and the date of any change. |
| 1243 |
|
| 1244 |
b) You must cause any work that you distribute or publish, that in |
| 1245 |
whole or in part contains or is derived from the Program or any |
| 1246 |
part thereof, to be licensed as a whole at no charge to all third |
| 1247 |
parties under the terms of this License. |
| 1248 |
|
| 1249 |
c) If the modified program normally reads commands interactively |
| 1250 |
when run, you must cause it, when started running for such |
| 1251 |
interactive use in the most ordinary way, to print or display an |
| 1252 |
announcement including an appropriate copyright notice and a |
| 1253 |
notice that there is no warranty (or else, saying that you provide |
| 1254 |
a warranty) and that users may redistribute the program under |
| 1255 |
these conditions, and telling the user how to view a copy of this |
| 1256 |
License. (Exception: if the Program itself is interactive but |
| 1257 |
does not normally print such an announcement, your work based on |
| 1258 |
the Program is not required to print an announcement.) |
| 1259 |
|
| 1260 |
These requirements apply to the modified work as a whole. If |
| 1261 |
identifiable sections of that work are not derived from the Program, |
| 1262 |
and can be reasonably considered independent and separate works in |
| 1263 |
themselves, then this License, and its terms, do not apply to those |
| 1264 |
sections when you distribute them as separate works. But when you |
| 1265 |
distribute the same sections as part of a whole which is a work based |
| 1266 |
on the Program, the distribution of the whole must be on the terms of |
| 1267 |
this License, whose permissions for other licensees extend to the |
| 1268 |
entire whole, and thus to each and every part regardless of who wrote it. |
| 1269 |
|
| 1270 |
Thus, it is not the intent of this section to claim rights or contest |
| 1271 |
your rights to work written entirely by you; rather, the intent is to |
| 1272 |
exercise the right to control the distribution of derivative or |
| 1273 |
collective works based on the Program. |
| 1274 |
|
| 1275 |
In addition, mere aggregation of another work not based on the Program |
| 1276 |
with the Program (or with a work based on the Program) on a volume of |
| 1277 |
a storage or distribution medium does not bring the other work under |
| 1278 |
the scope of this License. |
| 1279 |
|
| 1280 |
3. You may copy and distribute the Program (or a work based on it, |
| 1281 |
under Section 2) in object code or executable form under the terms of |
| 1282 |
Sections 1 and 2 above provided that you also do one of the following: |
| 1283 |
|
| 1284 |
a) Accompany it with the complete corresponding machine-readable |
| 1285 |
source code, which must be distributed under the terms of Sections |
| 1286 |
1 and 2 above on a medium customarily used for software interchange; or, |
| 1287 |
|
| 1288 |
b) Accompany it with a written offer, valid for at least three |
| 1289 |
years, to give any third party, for a charge no more than your |
| 1290 |
cost of physically performing source distribution, a complete |
| 1291 |
machine-readable copy of the corresponding source code, to be |
| 1292 |
distributed under the terms of Sections 1 and 2 above on a medium |
| 1293 |
customarily used for software interchange; or, |
| 1294 |
|
| 1295 |
c) Accompany it with the information you received as to the offer |
| 1296 |
to distribute corresponding source code. (This alternative is |
| 1297 |
allowed only for noncommercial distribution and only if you |
| 1298 |
received the program in object code or executable form with such |
| 1299 |
an offer, in accord with Subsection b above.) |
| 1300 |
|
| 1301 |
The source code for a work means the preferred form of the work for |
| 1302 |
making modifications to it. For an executable work, complete source |
| 1303 |
code means all the source code for all modules it contains, plus any |
| 1304 |
associated interface definition files, plus the scripts used to |
| 1305 |
control compilation and installation of the executable. However, as a |
| 1306 |
special exception, the source code distributed need not include |
| 1307 |
anything that is normally distributed (in either source or binary |
| 1308 |
form) with the major components (compiler, kernel, and so on) of the |
| 1309 |
operating system on which the executable runs, unless that component |
| 1310 |
itself accompanies the executable. |
| 1311 |
|
| 1312 |
If distribution of executable or object code is made by offering |
| 1313 |
access to copy from a designated place, then offering equivalent |
| 1314 |
access to copy the source code from the same place counts as |
| 1315 |
distribution of the source code, even though third parties are not |
| 1316 |
compelled to copy the source along with the object code. |
| 1317 |
|
| 1318 |
4. You may not copy, modify, sublicense, or distribute the Program |
| 1319 |
except as expressly provided under this License. Any attempt |
| 1320 |
otherwise to copy, modify, sublicense or distribute the Program is |
| 1321 |
void, and will automatically terminate your rights under this License. |
| 1322 |
However, parties who have received copies, or rights, from you under |
| 1323 |
this License will not have their licenses terminated so long as such |
| 1324 |
parties remain in full compliance. |
| 1325 |
|
| 1326 |
5. You are not required to accept this License, since you have not |
| 1327 |
signed it. However, nothing else grants you permission to modify or |
| 1328 |
distribute the Program or its derivative works. These actions are |
| 1329 |
prohibited by law if you do not accept this License. Therefore, by |
| 1330 |
modifying or distributing the Program (or any work based on the |
| 1331 |
Program), you indicate your acceptance of this License to do so, and |
| 1332 |
all its terms and conditions for copying, distributing or modifying |
| 1333 |
the Program or works based on it. |
| 1334 |
|
| 1335 |
6. Each time you redistribute the Program (or any work based on the |
| 1336 |
Program), the recipient automatically receives a license from the |
| 1337 |
original licensor to copy, distribute or modify the Program subject to |
| 1338 |
these terms and conditions. You may not impose any further |
| 1339 |
restrictions on the recipients' exercise of the rights granted herein. |
| 1340 |
You are not responsible for enforcing compliance by third parties to |
| 1341 |
this License. |
| 1342 |
|
| 1343 |
7. If, as a consequence of a court judgment or allegation of patent |
| 1344 |
infringement or for any other reason (not limited to patent issues), |
| 1345 |
conditions are imposed on you (whether by court order, agreement or |
| 1346 |
otherwise) that contradict the conditions of this License, they do not |
| 1347 |
excuse you from the conditions of this License. If you cannot |
| 1348 |
distribute so as to satisfy simultaneously your obligations under this |
| 1349 |
License and any other pertinent obligations, then as a consequence you |
| 1350 |
may not distribute the Program at all. For example, if a patent |
| 1351 |
license would not permit royalty-free redistribution of the Program by |
| 1352 |
all those who receive copies directly or indirectly through you, then |
| 1353 |
the only way you could satisfy both it and this License would be to |
| 1354 |
refrain entirely from distribution of the Program. |
| 1355 |
|
| 1356 |
If any portion of this section is held invalid or unenforceable under |
| 1357 |
any particular circumstance, the balance of the section is intended to |
| 1358 |
apply and the section as a whole is intended to apply in other |
| 1359 |
circumstances. |
| 1360 |
|
| 1361 |
It is not the purpose of this section to induce you to infringe any |
| 1362 |
patents or other property right claims or to contest validity of any |
| 1363 |
such claims; this section has the sole purpose of protecting the |
| 1364 |
integrity of the free software distribution system, which is |
| 1365 |
implemented by public license practices. Many people have made |
| 1366 |
generous contributions to the wide range of software distributed |
| 1367 |
through that system in reliance on consistent application of that |
| 1368 |
system; it is up to the author/donor to decide if he or she is willing |
| 1369 |
to distribute software through any other system and a licensee cannot |
| 1370 |
impose that choice. |
| 1371 |
|
| 1372 |
This section is intended to make thoroughly clear what is believed to |
| 1373 |
be a consequence of the rest of this License. |
| 1374 |
|
| 1375 |
8. If the distribution and/or use of the Program is restricted in |
| 1376 |
certain countries either by patents or by copyrighted interfaces, the |
| 1377 |
original copyright holder who places the Program under this License |
| 1378 |
may add an explicit geographical distribution limitation excluding |
| 1379 |
those countries, so that distribution is permitted only in or among |
| 1380 |
countries not thus excluded. In such case, this License incorporates |
| 1381 |
the limitation as if written in the body of this License. |
| 1382 |
|
| 1383 |
9. The Free Software Foundation may publish revised and/or new versions |
| 1384 |
of the General Public License from time to time. Such new versions will |
| 1385 |
be similar in spirit to the present version, but may differ in detail to |
| 1386 |
address new problems or concerns. |
| 1387 |
|
| 1388 |
Each version is given a distinguishing version number. If the Program |
| 1389 |
specifies a version number of this License which applies to it and "any |
| 1390 |
later version", you have the option of following the terms and conditions |
| 1391 |
either of that version or of any later version published by the Free |
| 1392 |
Software Foundation. If the Program does not specify a version number of |
| 1393 |
this License, you may choose any version ever published by the Free Software |
| 1394 |
Foundation. |
| 1395 |
|
| 1396 |
10. If you wish to incorporate parts of the Program into other free |
| 1397 |
programs whose distribution conditions are different, write to the author |
| 1398 |
to ask for permission. For software which is copyrighted by the Free |
| 1399 |
Software Foundation, write to the Free Software Foundation; we sometimes |
| 1400 |
make exceptions for this. Our decision will be guided by the two goals |
| 1401 |
of preserving the free status of all derivatives of our free software and |
| 1402 |
of promoting the sharing and reuse of software generally. |
| 1403 |
|
| 1404 |
NO WARRANTY |
| 1405 |
|
| 1406 |
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
| 1407 |
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
| 1408 |
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
| 1409 |
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
| 1410 |
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 1411 |
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
| 1412 |
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
| 1413 |
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
| 1414 |
REPAIR OR CORRECTION. |
| 1415 |
|
| 1416 |
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
| 1417 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
| 1418 |
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
| 1419 |
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
| 1420 |
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
| 1421 |
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
| 1422 |
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
| 1423 |
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
| 1424 |
POSSIBILITY OF SUCH DAMAGES. |
| 1425 |
|
| 1426 |
END OF TERMS AND CONDITIONS |
| 1427 |
|
| 1428 |
How to Apply These Terms to Your New Programs |
| 1429 |
|
| 1430 |
If you develop a new program, and you want it to be of the greatest |
| 1431 |
possible use to the public, the best way to achieve this is to make it |
| 1432 |
free software which everyone can redistribute and change under these terms. |
| 1433 |
|
| 1434 |
To do so, attach the following notices to the program. It is safest |
| 1435 |
to attach them to the start of each source file to most effectively |
| 1436 |
convey the exclusion of warranty; and each file should have at least |
| 1437 |
the "copyright" line and a pointer to where the full notice is found. |
| 1438 |
|
| 1439 |
(one line to give the program's name and a brief idea of what it does.) |
| 1440 |
Copyright (C) 19yy < name of author > |
| 1441 |
|
| 1442 |
This program is free software; you can redistribute it and/or modify |
| 1443 |
it under the terms of the GNU General Public License as published by |
| 1444 |
the Free Software Foundation; either version 2 of the License, or |
| 1445 |
(at your option) any later version. |
| 1446 |
|
| 1447 |
This program is distributed in the hope that it will be useful, |
| 1448 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1449 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 1450 |
GNU General Public License for more details. |
| 1451 |
|
| 1452 |
You should have received a copy of the GNU General Public License |
| 1453 |
along with this program; if not, write to the Free Software |
| 1454 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 1455 |
|
| 1456 |
|
| 1457 |
Also add information on how to contact you by electronic and paper mail. |
| 1458 |
|
| 1459 |
If the program is interactive, make it output a short notice like this |
| 1460 |
when it starts in an interactive mode: |
| 1461 |
|
| 1462 |
Gnomovision version 69, Copyright (C) 19yy name of author |
| 1463 |
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
| 1464 |
This is free software, and you are welcome to redistribute it |
| 1465 |
under certain conditions; type `show c' for details. |
| 1466 |
|
| 1467 |
The hypothetical commands `show w' and `show c' should show the appropriate |
| 1468 |
parts of the General Public License. Of course, the commands you use may |
| 1469 |
be called something other than `show w' and `show c'; they could even be |
| 1470 |
mouse-clicks or menu items--whatever suits your program. |
| 1471 |
|
| 1472 |
You should also get your employer (if you work as a programmer) or your |
| 1473 |
school, if any, to sign a "copyright disclaimer" for the program, if |
| 1474 |
necessary. Here is a sample; alter the names: |
| 1475 |
|
| 1476 |
Yoyodyne, Inc., hereby disclaims all copyright interest in the program |
| 1477 |
`Gnomovision' (which makes passes at compilers) written by James Hacker. |
| 1478 |
|
| 1479 |
< signature of Ty Coon >, 1 April 1989 |
| 1480 |
Ty Coon, President of Vice |
| 1481 |
|
| 1482 |
This General Public License does not permit incorporating your program into |
| 1483 |
proprietary programs. If your program is a subroutine library, you may |
| 1484 |
consider it more useful to permit linking proprietary applications with the |
| 1485 |
library. If this is what you want to do, use the GNU Library General |
| 1486 |
Public License instead of this License. |
| 1487 |
</pre> |
| 1488 |
|
| 1489 |
<!-- ===================================================================== --> |
| 1490 |
<!--#include virtual="../../include/tail.html"--> |
| 1491 |
<!-- ===================================================================== --> |