home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / languages / c / oslib / Examples / p1-834 < prev    next >
Text File  |  1994-03-24  |  463b  |  20 lines

  1. #include "colourtrans.h"
  2. #include "os.h"
  3. #include "osspriteop.h"
  4.  
  5. extern osspriteop_area *Ram;
  6. extern osspriteop_trans_tab *Pix_Trans;
  7.  
  8. void ex (void)
  9.  
  10.    /*ColourTrans can do this itself.*/
  11.  
  12. {  osspriteop_header *sptr;
  13.  
  14.    sptr = (osspriteop_header *) ((char *) Ram + Ram->first);
  15.  
  16.    colourtrans_select_table_for_sprite (Ram, (osspriteop_id) sptr,
  17.          colourtrans_CURRENT_MODE, colourtrans_CURRENT_PALETTE,
  18.          Pix_Trans, colourtrans_GIVEN_SPRITE);
  19. }
  20.