home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4904 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: Norway.EU.net!usenet
  2. From: patrick.hanevold@login.eunet.no (Patrick Hanevold)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: What th..??
  5. Date: 6 Mar 1996 15:35:59 GMT
  6. Organization: EUnet Norway
  7. Message-ID: <785.6639T987T1442@login.eunet.no>
  8. NNTP-Posting-Host: pc6.asker-pm2-1.eunet.no
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  10.  
  11.  
  12.    if(!(Sprite1=AllocMem(sizeof(struct SimpleSprite),MEMF_PUBLIC|MEMF_CLEAR)))
  13.        return(NULL);
  14.    if(!(GetSprite(Sprite1,-1)))
  15.        return(NULL);
  16.    if(!(SprImage=AllocMem(Height*2*4+8,MEMF_CHIP|MEMF_CLEAR)))
  17.        return(NULL);
  18.    SprImage[4]=0x12;
  19.    Sprite1->x=100;
  20.    Sprite1->y=100;
  21.    Sprite1->height=Height*2;
  22.    ChangeSprite(VP,Sprite1,SprImage);
  23.  
  24. Now I give up. Why doesnt this piece of code show the damn sprite?
  25. Is there any way to allocate sprites in one viewport only?
  26. I want to use some/all of the sprites on one intuition screen without
  27. stealing sprites from all the other screens.
  28.  
  29. Need *FAST* reply! Please reply in EMail also!
  30.  
  31. Thanks.
  32.  
  33. <sb>Patrick Hanevold - Virtual Reality developer
  34. <sb>patrick.hanevold@login.eunet.no
  35. <sb>Amiga and official Be developer
  36.  
  37.