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