Announcing SDL 1.2.0

Announcing SDL 1.2.0, the first stable release of the new SDL API.

It’s finally here! :slight_smile:
http://www.libsdl.org/download-1.2.html

Here are some of the highlights in SDL 1.2 since 1.0:

  • Added OpenGL support as a native 3D API
  • Added YUV video display with hardware acceleration
  • More complete thread synchronization primitives
  • Added support for gamma ramp manipulation
  • Much improved alpha blending blit semantics
  • Added official support for the following operating systems:
    MacOS Classic, MacOS X, Solaris, IRIX, FreeBSD

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Announcing SDL 1.2.0, the first stable release of the new SDL API.

It’s finally here! :slight_smile:
http://www.libsdl.org/download-1.2.html

i’ve updated my prebuilt win32 binaries to include SDL 1.2
and many of the SDL daughter libraries compiled against it.
this package comes with the following list of SDL libraries
for windows MSVC.

included are all .H, .LIB, and .DLL files you need to
compile and release your own SDL programs.

SDL - 1.2.0
SDL_ttf - 1.2.2
freetype - 1.3.1
SDL_image - 1.0.10
libjpeg - 6b
libpng - 1.0.9
zlib - 1.1.3
SDL_mixer - 1.1.0
SMPEG - 0.4.2
SDLmain.lib
(each library also has its included README file)

http://pygame.seul.org/ftp/win32-dependencies.zip

woohoo!On Mon, 26 Mar 2001, you wrote:

Announcing SDL 1.2.0, the first stable release of the new SDL API.

–
Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Advogato: < http://advogato.org/person/criswell/ >

Pete Shinners wrote:

i’ve updated my prebuilt win32 binaries to include
SDL 1.2 and many of the SDL daughter libraries
compiled against it.

SDL_image - 1.0.10

That was quick :slight_smile: Any reason not to use SDL_image 1.1.0?

  • Randi

Regimental Command
Generic Armored Combat System
http://regcom.sourceforge.net

i’ve updated my prebuilt win32 binaries to include
SDL 1.2 and many of the SDL daughter libraries
compiled against it.

SDL_image - 1.0.10

That was quick :slight_smile: Any reason not to use SDL_image 1.1.0?

doh, a bug in the readme file. i just doublechecked, and
it is definitely using SDL_image-1.1.0

— Sam Lantinga wrote:

It’s finally here! :slight_smile:
http://www.libsdl.org/download-1.2.html

According to the download page for 1.0.8, 1.0.8 is
also stable – I imagine this might be confusing to
some folks. (Got me for a few minutes, at least I
didn’t download it thinking it was 1.2 :)=====
-Roger Ostrander
webmaster, "Denor’s Realm"
http://www.geocities.com/~denor


Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text

Sam Lantinga wrote:

Announcing SDL 1.2.0, the first stable release of the new SDL API.

It’s finally here! :slight_smile:
http://www.libsdl.org/download-1.2.html

Here are some of the highlights in SDL 1.2 since 1.0:

  • Added YUV video display with hardware acceleration

Sorry if this question is already answered, but how do I write my program so
that it takes advantage of the hardware acceleration?

I searched for the string “hardware acceleration” in SDL-1.2.0/docs

[derek at oak docs]$ grep -ri “hardware acceleration” *
html/sdlsurface.html:>Surface blit uses hardware acceleration</TD
man3/SDL_Surface.3:Surface blit uses hardware acceleration

Which was exactly the same result as in SDL-1.1.8/docs

SDL_HWSURFACE might provide hardware acceleration, but the docs do not suggest this.

Stepping throught SDL_DisplayYUVOverlay does not suggest hardware acceleration.
The software converts the YUV data to colour with mathematical operations, and
does not let the video board do this tedious work.

PLEASE, can the docs be expanded to describe how to obtain hardware acceleration?

Many thanks for any input.

Derek.–
Derek Smithies Ph.D.
IndraNet Technologies Ltd.
Email: @Derek_Smithies
ph +64 3 343 6172
Web: http://www.indranet-technologies.com/

Here’s the function to check if it would be HW accel.

SDL_GetVideoInfo
Name
SDL_GetVideoInfo ? returns a pointer to information about the video hardware

#include "SDL.h"
SDL_VideoInfo *SDL_GetVideoInfo(void);

Description
This function returns a read-only pointer to information about the video
hardware. If this is called before SDL_SetVideoMode, the vfmt member of the
returned structure will contain the pixel format of the “best” video mode.

SDL_VideoInfo
Name
SDL_VideoInfo ? Video Target information
Structure Definition
typedef struct{
Uint32 hw_available:1;
Uint32 wm_available:1;
Uint32 blit_hw:1;
Uint32 blit_hw_CC:1;
Uint32 blit_hw_A:1;
Uint32 blit_sw:1;
Uint32 blit_sw_CC:1;
Uint32 blit_sw_A:1;
Uint32 blit_fill;
Uint32 video_mem;
SDL_PixelFormat *vfmt;
} SDL_VideoInfo;
Structure Data

Uint32 :1 hw_available Is it possible to create hardware surfaces?
Uint32 :1 wm_available Is there a window manager available
Uint32 :1 blit_hw Are hardware to hardware blits accelerated?
Uint32 :1 blit_hw_CC Are hardware to hardware colorkey blits accelerated?
Uint32 :1 blit_hw_A Are hardware to hardware alpha blits accelerated?
Uint32 :1 blit_sw Are software to hardware blits accelerated?
Uint32 :1 blit_sw_CC Are software to hardware colorkey blits accelerated?
Uint32 :1 blit_sw_A Are software to hardware alpha blits accelerated?
Uint32 :1 blit_fill Are color fills accelerated?
Uint32 video_mem Total amount of video memory in Kilobytes
SDL_PixelFormat * vfmt Pixel format of the video device--------------------------
“It’s kind of fun to do the impossible.”
– Walt Disney

Joe Tennies wrote:

Here’s the function to check if it would be HW accel.

SDL_GetVideoInfo

which returns
{
hw_available = 0,
wm_available = 1,
UnusedBits1 = 0,
UnusedBits2 = 0,
blit_hw = 0,
blit_hw_CC = 0,
blit_hw_A = 0,
blit_sw = 0,
blit_sw_CC = 0,
blit_sw_A = 0,
blit_fill = 0,
UnusedBits3 = 0,
video_mem = 0,
vfmt = 0x804d988
}
Which suggests that there is no hardware available on my machine to take advantage of the
new feature in SDL-1.2.0:"Added YUV video display with hardware acceleration"
But,
I have a matrox millenium g200 agp video card, with 8 (possibly 16mb) ram.

Thus, hardware acceleration should be possible - the card supports it.
Is it a XConfig problem - or a driver issue.
I have Rh6.2 here, and rh7.0. Both machines have the same video card, and
give the same result. (oops, rh7 reports 804dd20 for vfmt)

Do I need to get Xf86Config 4 installed on these machines?

Thanks for any help,
Derek.–
Derek Smithies Ph.D.
IndraNet Technologies Ltd.
Email: @Derek_Smithies
ph +64 3 343 6172
Web: http://www.indranet-technologies.com/

Hello,
I am using SDL 1.2 and try to test running SDL over ggi/fbcon/dga/aalib.
According to the manual page this should be fairly easy…?
I have configured and compiled SDL with
"configure --enable-video-ggi --enable-video-dga --enable-video-fbcon
–enable-video-aalib; make ; make install"
I have also installed GGI and the SDL configure says
…
checking for XFree86 VidMode 1.0 support… yes
checking for XFree86 VidMode gamma support… no
checking for XFree86 DGA 1.0 support… yes
checking for XFree86 XvImage support… no
checking for XFree86 DGA 2.0 support… no
checking for framebuffer console support… yes
checking for GGI support… yes
checking for AAlib support… yes
checking for OpenGL (GLX) support… yes
…
and it compiles nicely.

However, when I set environment variable SDL_VIDEODRIVER=ggi (or
fbcon/dga/aalib) and try to run any program the result is:
"Couldn’t initialize SDL: No available video device"
Am I missing something important? (another environment variable or
something?)

Regards,
-Mikko

Mikko Laakso wrote:

However, when I set environment variable SDL_VIDEODRIVER=ggi (or
fbcon/dga/aalib) and try to run any program the result is:
"Couldn’t initialize SDL: No available video device"
Am I missing something important? (another environment variable or
something?)

Hi,

maybe a silly question, but do you have an installed kernel with
ggi-support? If you set SDL_VIDEODRIVER to dga or fbcon your program
usually needs root permissions. You can set write permissions to
/dev/fbcon, then you don’t need root permission with the fbcon driver.

Regards, Sven

Which suggests that there is no hardware available on my machine to take advantage of the
new feature in SDL-1.2.0:"Added YUV video display with hardware acceleration"
But,
I have a matrox millenium g200 agp video card, with 8 (possibly 16mb) ram.

Hardware acceleration of YUV video is not represented in that structure.
It works automatically.

The current version of SDL doesn’t use other X server hardware acceleration,
because of the need for direct pixel access. Alternate methods of pixel
access will be in SDL 1.3 which will allow SDL to take advantage of X server
hardware acceleration.

Do I need to get Xf86Config 4 installed on these machines?

Oh right, video acceleration only works with XFree86 4.0.2 or newer.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Mikko Laakso wrote:

However, when I set environment variable SDL_VIDEODRIVER=ggi (or
fbcon/dga/aalib) and try to run any program the result is:
"Couldn’t initialize SDL: No available video device"
Am I missing something important? (another environment variable or
something?)

Hi,

maybe a silly question, but do you have an installed kernel with
ggi-support? If you set SDL_VIDEODRIVER to dga or fbcon your program
usually needs root permissions. You can set write permissions to
/dev/fbcon, then you don’t need root permission with the fbcon driver.

I am not sure if I understand what you mean with that “kernel with
ggi-support”? But at least the ggi’s own demo programs
(libggi-2.0b3/programs/demos/) work just fine.

And I am running these tests as root. Very strange…?

Regards,
-MikkoOn Thu, 29 Mar 2001, Sven Garbade wrote:

Wouldn’t that be KGI…? (GGI is just a library that works on lots of
different targets, pretty much like SDL.)

Anyway, the error messages looks very familiar. I get that with “raw” GGI
when I try to start GGI programs from within Midnight Commander on some Linux
systems. Seems like the console “integration” of MC makes it impossible for
GGI to find the actual target by looking at the console the application was
started from, causing GGI to give up, rather than looking any further.

//David

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------> http://www.linuxaudiodev.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Thursday 29 March 2001 17:17, Sven Garbade wrote:

Mikko Laakso wrote:

However, when I set environment variable SDL_VIDEODRIVER=ggi (or
fbcon/dga/aalib) and try to run any program the result is:
"Couldn’t initialize SDL: No available video device"
Am I missing something important? (another environment variable or
something?)

Hi,

maybe a silly question, but do you have an installed kernel with
ggi-support?