src/shpgc.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: shpgc.c,v 1.2 2006/08/17 19:28:17 mhender Exp $";
00018 
00019 #include <shInternal.h>
00020 
00023 int sh_rd[4]={0,0,0,0};
00024 int sh_gd[4]={0,0,0,0};
00025 int sh_bd[4]={0,0,0,0};
00026 int sh_ram[4]={0,0,0,0};
00027 int sh_gam[4]={0,0,0,0};
00028 int sh_bam[4]={0,0,0,0};
00029 
00039 void shpgc(int *r,int *g,int *b)
00040  {
00041   sh_rd[0] =*r;
00042   sh_gd[0] =*g;
00043   sh_bd[0] =*b;
00044   sh_ram[0]=*r;
00045   sh_gam[0]=*g;
00046   sh_bam[0]=*b;
00047   return;
00048  }
00049 
00057 void shpec(int *r,int *g,int *b)
00058  {
00059   sh_rd[1] =*r;
00060   sh_gd[1] =*g;
00061   sh_bd[1] =*b;
00062   sh_ram[1]=*r;
00063   sh_gam[1]=*g;
00064   sh_bam[1]=*b;
00065   return;
00066  }
00067 
00075 void shbgc(int *r,int *g,int *b)
00076  {
00077   sh_rd[2] =*r;
00078   sh_gd[2] =*g;
00079   sh_bd[2] =*b;
00080   sh_ram[2]=*r;
00081   sh_gam[2]=*g;
00082   sh_bam[2]=*b;
00083   return;
00084  }
00085 
00093 void shbec(int *r,int *g,int *b)
00094  {
00095   sh_rd[3] =*r;
00096   sh_gd[3] =*g;
00097   sh_bd[3] =*b;
00098   sh_ram[3]=*r;
00099   sh_gam[3]=*g;
00100   sh_bam[3]=*b;
00101   return;
00102  }
00103 
00111 void shqpgc(int *r,int *g,int *b)
00112  {
00113   *r=sh_rd[0];
00114   *g=sh_gd[0];
00115   *b=sh_bd[0];
00116   return;
00117  }
00118 
00126 void shqpec(int *r,int *g,int *b)
00127  {
00128   *r=sh_rd[1];
00129   *g=sh_gd[1];
00130   *b=sh_bd[1];
00131   return;
00132  }
00133 
00141 void shqbgc(int *r,int *g,int *b)
00142  {
00143   *r=sh_rd[2];
00144   *g=sh_gd[2];
00145   *b=sh_bd[2];
00146   return;
00147  }
00148 
00156 void shqbec(int *r,int *g,int *b)
00157  {
00158   *r=sh_rd[3];
00159   *g=sh_gd[3];
00160   *b=sh_bd[3];
00161   return;
00162  }

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