Where do I find the test programs?

I often hear people talking about a set of SDL test programs to make sure things are working right. Not the GSOC thing, but some programs that have been around for a while. Where do I find them?

I’ve got a very simple case that I can’t seem to make work:

Create a new SDL_Window.
Load an SDL_Surface from an 8-bit PNG file.
Create a texture from the surface.
SDL_RenderCopy the texture to the window.
SDL_RenderPresent.
Nothing shows up.

It would sure be nice if I had some way to figure out what was going on…

They are in /test in the SDL source code. Which you can get with svn using:

svn checkout http://svn.libsdl.org/trunk/SDL

I can’t guarantee that you’ll find what you need, but I have found the
test directory to be very very useful.

Bob PendletonOn Tue, Jul 7, 2009 at 10:31 AM, Mason Wheeler wrote:

I often hear people talking about a set of SDL test programs to make sure
things are working right.? Not the GSOC thing, but some programs that have
been around for a while.? Where do I find them?

I’ve got a very simple case that I can’t seem to make work:

Create a new SDL_Window.
Load an SDL_Surface from an 8-bit PNG file.
Create a texture from the surface.
SDL_RenderCopy the texture to the window.
SDL_RenderPresent.
Nothing shows up.

It would sure be nice if I had some way to figure out what was going on…


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


±----------------------------------------------------------

Nevermind, I found the problem. Turns out SDL_UpperBlit allows you to leave
the width and height of your dest rect undefined without trouble, but
SDL_RenderCopy doesn’t, and I wasn’t accounting for that when I updated
my framework to work with 1.3.> I often hear people talking about a set of SDL test programs to make sure

things are working right. Not the GSOC thing, but some programs that have
been around for a while. Where do I find them?

I’ve got a very simple case that I can’t seem to make work:

Create a new SDL_Window.
Load an SDL_Surface from an 8-bit PNG file.
Create a texture from the surface.
SDL_RenderCopy the texture to the window.
SDL_RenderPresent.
Nothing shows up.

It would sure be nice if I had some way to figure out what was going on…