CVS snapshot update 6/13

New! A very cool (slow) fireworks demo by David Ashley

Fix: Fixed dropped Win32 system events (thanks to Cliff Matthews)

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Tried downloading stuff from the cvs today - perhaps you should specify
that people use the -z3 option when downloading - it speeds it up
considerably!

Also, fire demo wanted libSDLggi.so - where did it get this idea from?!

njh

Also, fire demo wanted libSDLggi.so - where did it get this idea from?!

Got 11 fps on a 200MHz 604e, running in 15bpp.

njhOn Mon, 15 Jun 1998, Nathan Hurst wrote:

Also, fire demo wanted libSDLggi.so - where did it get this idea from?!

Had a quick look at fire demo, found a way to get more fps, replace the
fire function with(only works with normal, but modifications for bright
are obvious) the following. It should win as it removes most of the
memory accesses, it might not be as good on CISC architectures with only
a few registers - tough:

fire(unsigned char *p1,unsigned char *p2,int pitch,char *map)
{
int x,y,s;
unsigned char *p3, *p4;
unsigned char *row1, *row2;
p3 = p1;
row2 = p2;
for(y=2;y<YSIZE;y++)
{
int last, now, next;
int lastm1, nowm1, nextm1;
int lastm2, nowm2, nextm2;
p4 = row2;

	nowm2 = p3[-XSIZE-XSIZE];
	lastm2 = p3[-XSIZE-XSIZE-1];
	nowm1 = p3[-XSIZE];
	lastm1 = p3[-XSIZE-1];
	now = *p3;
	last = p3[-1];
	for(x=0;x<XSIZE;x++)
	{
		int o;
		nextm2 = p3[-XSIZE-XSIZE+1];
		nextm1 = p3[-XSIZE+1];
		next = p3[1];
		o=(lastm1+nowm1+nextm1+last+next+lastm2+nowm2+nextm2) >> 3;
		o --;
		*p4 = o & (~(o >> 31));
		p3++; p4++;
		now = next;
		last = now;
		nowm1 = nextm1;
		lastm1 = nowm1;
		nowm2 = nextm2;
		lastm2 = nowm2;
	}
	row2 += pitch;
}

}On Mon, 15 Jun 1998, Nathan Hurst wrote:

Do we have a sprite library? What’s the status of SDL_FrameBuf? I
basically want a set-sprite-position-and-frame level sprite renderer for a
quick project.

njh

Do we have a sprite library? What’s the status of SDL_FrameBuf? I
basically want a set-sprite-position-and-frame level sprite renderer for a
quick project.

SDL_FrameBuf is pretty stable.

Check out examples/draw/sprite.h
It’s GPL’d code, so feel free to use it in free projects (with appropriate
caveats, of course)

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Do we have a sprite library? What’s the status of SDL_FrameBuf? I
basically want a set-sprite-position-and-frame level sprite renderer for a
quick project.

SDL_FrameBuf is pretty stable.

Check out examples/draw/sprite.h
[njh at crayfish draw]$ ./draw
Warning: Couldn’t load resources from Maelstrom Fonts
Warning: Couldn’t open resource file ‘Maelstrom Sounds’

Is this an endianness problem?

It’s GPL’d code, so feel free to use it in free projects (with appropriate
caveats, of course)

Yeah, my brother is making a GPLd version of “Escape Velocity”(a popular
mac game of galactic conquest) which he wants to extend to have large
network games.

Another thing, we can’t seem to get two keys down at once - is this a know
bug, an unknown bug, or my bug?

njhOn Mon, 15 Jun 1998, Sam Lantinga wrote:

[njh at crayfish draw]$ ./draw
Warning: Couldn’t load resources from Maelstrom Fonts
Warning: Couldn’t open resource file ‘Maelstrom Sounds’

Is this an endianness problem?

Nope. It’s due to the optional files from Maelstrom not being there.
It’s not a problem – you just won’t be able to test sound and keyboard
with that example.

Yeah, my brother is making a GPLd version of “Escape Velocity”(a popular
mac game of galactic conquest) which he wants to extend to have large
network games.

Cool!

Another thing, we can’t seem to get two keys down at once - is this a know
bug, an unknown bug, or my bug?

It’s either unknown or your bug. I’ll check it out when I get back from
N’Orleans. (Which rocks, BTW. :slight_smile:

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/