GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GL_TRIGETCOLORLOOKUP (3)

NAME

gl_trisetcolorlookup, gl_trigetcolorlookup - manages a color lookup table for shadowing

CONTENTS

Synopsis
Description
See Also
Author

SYNOPSIS

#include <triangle.h>

void gl_trisetcolorlookup(int i, long color);
long gl_trigetcolorlookup(int i);

DESCRIPTION

gl_trisetcolorlookup sets the color of an index i in the table used in more than 256 color modes to interpolate tables.

Note that it is your responsibility to set all the intermediate color values.

You can use this function to create the index table, but remember not to let i go over 4096.

gl_trigetcolorlookup retrieves a previously set value from the table.

Beware, these functions are not a direct part of the svgalib library. Instead their source is part of svgalib and can be found in the threeDkit/ subdirectory of the original svgalib distribution. However, it is not installed in the system by default, s.t. it is unclear where you can find it if your svgalib was installed by some linux distribution.

In case of any such problem, simply get an svgalib distribution from the net. Yo don’t need to install it. Just make in the threeDkit/ subdirectory. As of this writing, svgalib-1.2.12.tar.gz is the latest version and can be retrieved by ftp from sunsite.unc.edu at /pub/Linux/libs/graphics and tsx-11.mit.edu at /pub/linux/sources/libs which will most probably be mirrored by a site close to you.

The functions are defined in the tri.o and triangl.o files (or their resp. sources) which you must link to your program.

SEE ALSO

vgagl(7), svgalib(7), threedkit(7), gl_striangle(3), gl_swtriangle(3), gl_triangle(3), gl_trisetdrawpoint(3), gl_wtriangle(3), plane(6), wrapdemo(6).

AUTHOR

This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The demos, the initial documentation and the whole threedkit stuff was done by Paul Sheer <psheer@icon.co.za>.

Paper mail:

Paul Sheer
P O BOX 890507
Lyndhurst
Johannesburg 2106
South Africa

Donations (by check or postal order) will be appreciated and will encourage further development of this software. However this is strictly on a voluntary basis where this software falls under the GNU LIBRARY GENERAL PUBLIC LICENSE.

Search for    or go to Top of page |  Section 3 |  Main Index


Svgalib (>= 1.2.11) GL_TRISETCOLORLOOKUP (3) 2 Aug 1997

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.