1. Another NEIL Query
- Posted by Ck Lester <cklester at YAHOO.COM> Nov 26, 2000
- 430 views
- Last edited Nov 27, 2000
There's no rotate_bitmap() function, it seems. How do I ROTATE a graphic?! Thanks!! ck
2. Re: Another NEIL Query
- Posted by Ck Lester <cklester at YAHOO.COM> Nov 28, 2000
- 437 views
I apologize if this is a duplicate, but my Win2K PC crashed as I was sending this the first time, and I don't see it on the listserv archive yet... I'm still desperately needing help with the following: Using NEIL.E, 1. How do I load a bitmap then extract individual bitmaps from it? (For instance, I have 15 64x64 tiles in the one bitmap file, and I want to extract all of them to a tiles[] sequence.) 2. There's no rotate_bitmap() function, it seems. How do I ROTATE a graphic?! Even if I could just get the 2-d sequence using the handle, then I could rotate that and replace it... 3. When I try to display an rle_sprite, my machine crashes with a CAUSEWAY error! Yipes! Any known issues? I'm using a Diamond Viper 770. I've searched the neil.e docs but remain clueless on these issues. Please help if you can! Thanks! -ck
3. Re: Another NEIL Query
- Posted by Mike Hurley <mike_hurley_2 at YAHOO.COM> Nov 28, 2000
- 408 views
> Using NEIL.E, > > 1. How do I load a bitmap then extract individual > bitmaps from it? (For > instance, I have 15 64x64 tiles in the one bitmap > file, and I want to > extract all of them to a tiles[] sequence.) look up information on sub-screens > 2. There's no rotate_bitmap() function, it seems. > How do I ROTATE a > graphic?! Even if I could just get the 2-d sequence > using the handle, then > I could rotate that and replace it... couldn't tell you, sorry you could always hack it out of another library that has it, I'm sure there's one. > 3. When I try to display an rle_sprite, my machine > crashes with a CAUSEWAY > error! Yipes! Any known issues? I'm using a Diamond > Viper 770. make sure you do it correctly. it should look something like this: do_command(rle_blit,rle_handle,{vs,x,y}) you could also use new_command() Hope this helps, Mike Hurley ===== It compiled. The first screen came up. Ship it. --Bill Gates __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
4. Re: Another NEIL Query
- Posted by Ck Lester <cklester at YAHOO.COM> Nov 28, 2000
- 407 views
- Last edited Nov 29, 2000
Mike Hurley <mike_hurley_2 at YAHOO.COM> wrote: >> 1. How do I load a bitmap then extract individual >> bitmaps from it? (For > >look up information on sub-screens I wouldn't have thought sub-screens was relevant, but I guess that makes sense, if by "sub-screen" you can mean a portion of a virtual screen/bitmap stored in memory. Thanks for the clue. >> 2. There's no rotate_bitmap() function, it seems. >> How do I ROTATE a >> graphic?! Even if I could just get the 2-d sequence >> using the handle, then >> I could rotate that and replace it... > >couldn't tell you, sorry >you could always hack it out of another library that >has it, I'm sure there's one. Yeah, I figure bitmap.e has a bm_rotate() function, but the problem is you have to feed it a 2-d sequence, and I don't know how to retrieve the 2-d graphic sequence stored by neil. >it should look something like this: > >do_command(rle_blit,rle_handle,{vs,x,y}) >you could also use new_command() The "rle_handle" is an atom, as far as I can tell... right? I guess since his "blur.ex" runs on my home PC fine, then I should be able to use rle_sprites... I'll investigate further. Thanks!! ck
5. Re: Another NEIL Query
- Posted by Mike Hurley <mike_hurley_2 at YAHOO.COM> Nov 29, 2000
- 456 views
- Last edited Nov 30, 2000
> >> 1. How do I load a bitmap then extract individual > >> bitmaps from it? (For > > > >look up information on sub-screens > > I wouldn't have thought sub-screens was relevant, > but I guess that makes > sense, if by "sub-screen" you can mean a portion of > a virtual screen/bitmap > stored in memory. Thanks for the clue. NEIL has an actual object called a sub-screen. look it up in the docs. > >> 2. There's no rotate_bitmap() function, it seems. > >> How do I ROTATE a > >> graphic?! Even if I could just get the 2-d > sequence > >> using the handle, then > >> I could rotate that and replace it... > > > >couldn't tell you, sorry > >you could always hack it out of another library > that > >has it, I'm sure there's one. > > Yeah, I figure bitmap.e has a bm_rotate() function, > but the problem is you > have to feed it a 2-d sequence, and I don't know how > to retrieve the 2-d > graphic sequence stored by neil. i think that you have 2 options: 1) figure out how the info is stored in the screen structure and do it with ASM OR 2) this is rather slow... use get_pixel() (NEIL's) and read from the screen it is stored in and then do what you want with the new image > The "rle_handle" is an atom, as far as I can tell... > right? yes...it is a memory address > I guess since his "blur.ex" runs on my home PC fine, > then I should be able > to use rle_sprites... I'll investigate further. that's probably a good sign > Thanks!! > ck welcome. Mike Hurley ===== It compiled. The first screen came up. Ship it. --Bill Gates __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/