1. rle sprites in neil

I was wondering if anyone could tell me what does "run-length encoded" mean when
applied to sprites, as in Pete Eberlein's "neil" library?

new topic     » topic index » view message » categorize

2. Re: rle sprites in neil

Stephen Kodat asked:
> I was wondering if anyone could tell me what does "run-length encoded"
> mean when applied to sprites, as in Pete Eberlein's "neil" library?

Hey good question.  I'll put it on the faq in progress...

short answer: it compresses opaque pixels into strips and remembers the
length and position of each... then each strip can be rendered with just
the equivalent of mem_copy.  Fast because it doesn't have to check for
zero pixels each time.

Laters,
 _______  ______  _______  ______
[    _  \[    _ ][ _   _ ][    _ ]
[/| [_] |[/| [_\][/ | | \][/| [_\]
  |  ___/  |  _]    | |     |  _]
[\| [/]  [\| [_/] [\| |/] [\| [_/]
[_____]  [______] [_____] [______]
xseal at harborside.com  ICQ:13466657
http://www.harborside.com/home/x/xseal/euphoria/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu