This is color.h in view mode; [Download] [Up]
/* * color.h * * Copyright (C) 1989, 1991, Craig E. Kolb * All rights reserved. * * This software may be freely copied, modified, and redistributed * provided that this copyright notice is preserved on all copies. * * You may not distribute this software, in whole or in part, as part of * any commercial product without the express consent of the authors. * * There is no warranty or other guarantee of fitness of this software * for any purpose. It is provided solely "as is". * * $Id$ * * $Log$ */ #ifndef COLOR_H #define COLOR_H /* * Color */ typedef struct Color { Float r, g, b; /* Red, green, blue. */ } Color; #define ColorScale(s,c,a) (a)->r = (s)*(c).r, \ (a)->g = (s)*(c).g, \ (a)->b = (s)*(c).b #define ColorAddScaled(x, s, y, c) (c)->r = (x).r + (s)*(y).r, \ (c)->g = (x).g + (s)*(y).g, \ (c)->b = (x).b + (s)*(y).b #endif COLOR_H
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.