Files
SDL/test
Sam Lantinga 875c4f0a4c Support indexed surfaces without palettes (thanks @sulix!)
Currently, all SDL_Surfaces with an indexed pixel format have an
associated SDL_Palette. This palette either consists of entirely the
colour black, or -- in the special case of 1-bit surfaces, black and
white.

When an indexed surface is blitted to another indexed surface, a 'map'
is generated from the source surface's palette to the destination
surfaces palette, in order to preserve the look of the image if the
palettes differ.

However, in most cases, applications will want to blit the raw index
values, rather than translate to make the colours as similar as
possible. For instance, the destination surface's palette may have been
modified to fade the screen out.

This change allows an indexed surface to have no associated palette. If
either the source or destination surface of a blit do not have a
palette, then the raw indices are copied (assuming both have an indexed
format).

This mimics better what happens with most other APIs (such as
DirectDraw), where most users do not set a palette on any surface but
the screen, whose palette is implicitly used for the whole application.
2024-07-11 08:31:32 -07:00
..
2022-10-10 08:50:59 -07:00
2023-08-12 17:37:52 +02:00
2023-08-02 15:02:32 -04:00
2024-07-11 08:11:29 -07:00
2023-08-02 15:02:32 -04:00
2022-12-15 08:01:01 -08:00
2023-08-02 15:02:32 -04:00
2024-01-01 13:15:26 -08:00
2023-08-02 15:02:32 -04:00
2023-08-02 15:02:32 -04:00
2023-08-02 15:02:32 -04:00
2024-06-21 22:06:08 -07:00
2024-06-21 22:06:08 -07:00
2024-07-10 00:48:18 -07:00
2024-07-10 00:48:18 -07:00
2024-07-10 00:48:18 -07:00
2024-07-08 10:58:48 -07:00
2024-01-01 13:15:26 -08:00
2024-07-10 00:48:18 -07:00
2024-07-01 13:56:49 -07:00
2024-07-10 00:48:18 -07:00
2024-06-21 22:06:08 -07:00
2024-06-27 18:35:12 -07:00
2024-06-21 22:06:08 -07:00
2024-07-01 13:56:49 -07:00
2024-07-01 13:56:49 -07:00
2024-07-01 13:56:49 -07:00
2023-07-28 07:35:04 +03:00
2024-01-01 13:15:26 -08:00
2024-07-10 00:48:18 -07:00
2024-06-27 18:35:12 -07:00
2024-06-21 22:06:08 -07:00
2024-06-21 22:06:08 -07:00
2024-07-10 00:48:18 -07:00
2024-07-10 00:48:18 -07:00
2024-06-21 22:06:08 -07:00
2024-06-21 22:06:08 -07:00
2024-05-27 07:57:33 -07:00
2024-01-01 13:15:26 -08:00
2024-07-10 00:48:18 -07:00
2024-01-01 13:15:26 -08:00
2024-07-10 00:48:18 -07:00
2024-07-01 13:56:49 -07:00
2024-07-10 00:48:18 -07:00
2023-08-02 15:02:32 -04:00

These are test programs for the SDL library:

	checkkeys	Watch the key events to check the keyboard
	loopwave	Audio test -- loop playing a WAV file
	testsurround	Audio test -- play test tone on each audio channel
	testaudioinfo	Lists audio device capabilities
	testerror	Tests multi-threaded error handling
	testfile	Tests SDL_IOStream layer
	testgl		A very simple example of using OpenGL with SDL
	testiconv	Tests international string conversion
	testkeys	List the available keyboard keys
	testloadso	Tests the loadable library layer
	testlocale  Test Locale API
	testlock	Hacked up test of multi-threading and locking
	testmouse	Tests mouse coordinates
	testmultiaudio	Tests using several audio devices
	testoverlay	Tests the overlay flickering/scaling during playback.
	testplatform	Tests types, endianness and cpu capabilities
	testsem		Tests SDL's semaphore implementation
	testshape	Tests shaped windows
	testsprite	Example of fast sprite movement on the screen
	testthread	Hacked up test of multi-threading
	testtimer	Test the timer facilities
	testver		Check the version and dynamic loading and endianness
	testwm		Test window manager -- title, icon, events
	torturethread	Simple test for thread creation/destruction
	gamepadmap   Useful to generate Game Controller API compatible maps



This directory contains sample.wav, which is a sample from Will Provost's
song, The Living Proof:

     From the album The Living Proof
     Publisher: 5 Guys Named Will
     Copyright 1996 Will Provost

You can get a copy of the full song (and album!) from iTunes...

    https://itunes.apple.com/us/album/the-living-proof/id4153978

or Amazon...

    http://www.amazon.com/The-Living-Proof-Will-Provost/dp/B00004R8RH

Thanks to Will for permitting us to distribute this sample with SDL!