src/shsetp.c

00001 
00006 /*
00007  *  PROGRAM NAME:  sh
00008  *
00009  *  (c) COPYRIGHT INTERNATIONAL BUSINESS MACHINES
00010  *  CORPORATION 12/1/2001.  ALL RIGHTS RESERVED.
00011  *
00012  *  Please refer to the LICENSE file in the top directory
00013  *
00014  *      author: Mike Henderson mhender@watson.ibm.com
00015  */
00016 
00017 static char *id="@(#) $Id: shsetp.c,v 1.2 2006/08/17 19:28:17 mhender Exp $";
00018 
00019 #include <shInternal.h>
00020 #include <stdio.h>
00021 
00033 void shsetp(int *ipix,int *jpix,int *ired,int *igrn,int *iblu, float *zz)
00034  {
00035 /*
00036     Set the pixel color and z-buffer.
00037 */
00038   int index;
00039 
00040 /*printf("shsetp %d %d %d %d %d %f\n",*ipix,*jpix,*ired,*igrn,*iblu,*zz);fflush(stdout);
00041   printf("shsetp, shZBuffer=0x%8.8x\n",shZBuffer);fflush(stdout);*/
00042   if(*ipix<0||*jpix<0)return;
00043   if(*ipix>=shIMax||*jpix>=shJMax)return;
00044 
00045   index=*ipix+shIMax*(*jpix);
00046   shRedBuffer[index]=*ired;
00047   shGreenBuffer[index]=*igrn;
00048   shBlueBuffer[index]=*iblu;
00049   shZBuffer[index]=*zz;
00050 
00051   return;
00052  }

Generated on Thu Aug 17 15:29:43 2006 for sh by  doxygen 1.4.6