5 More Discussions You Might Find Interesting
1. Programming
Hi All,
I was wondering if someone could clarify the best way to display mpeg video with SDL in MinGW.
After scouring the internet it seems there is not a lot of information regarding this subject (or at least not up to date) and libraries that are available for this purpose.
Any help/... (1 Reply)
Discussion started by: robfwauk
1 Replies
2. Programming
Solved thanks for info!! (8 Replies)
Discussion started by: aLHaNz
8 Replies
3. Programming
How do I play a sound file with SDL?
I've downloaded the library files but SDL/SDL_mixer.h (that most of the tutorials include) doesn't exist. So, how do I install it?
As I said mixer.h doesn't exist but, If it is helpful, the default code is this:
#include "stdlib.h"
#include "SDL/SDL.h"... (2 Replies)
Discussion started by: hakermania
2 Replies
4. UNIX for Dummies Questions & Answers
hi, i've just downloaded a test game to try compiling it with the gcc compiler in Solaris, the problem was that ./configure command return this error *** Could not run SDL test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker... (0 Replies)
Discussion started by: freeware
0 Replies
5. UNIX for Dummies Questions & Answers
I get a:
Requirements:
SDL
when I'm browsing (www.happypenguin.org) for games.
According to wikipedia SDL can be:
where some are more likely than others. However, which one is it? I got an error because of SDL last time I tried and want to make it right before I try... (0 Replies)
Discussion started by: riwa
0 Replies
LEARN ABOUT SUSE
sdl::color
SDL::Color(3) User Contributed Perl Documentation SDL::Color(3)
NAME
SDL::Color - a SDL perl extension
SYNOPSIS
$color = new SDL::Color ( -r => 0xde, -g => 0xad, -b =>c0 );
$color = new SDL::Color -surface => $app, -pixel => $app->pixel($x,$y);
$color = new SDL::Color -color => SDL::NewColor(0xff,0xaa,0xdd);
DESCRIPTION
"SDL::Color" is a wrapper for display format independent color representations, with the same interface as SDL::Color.
new ( -color => )
"SDL::Color::new" with a "-color" option will construct a new object referencing the passed SDL_Color*.
new (-r => , -g => , -b => )
"SDL::Color::new" with "-r,-g,-b" options will construct both a SDL_Color structure, and the associated object with the specified vales.
new (-pixel =>, -surface =>)
"SDL::Color::new" with "-pixel,-surface" options will generate a SDL_Color* with the r,g,b values associated with the integer value passed
by "-pixel" for the given "-surface"'s format.
r ( [ red ] ), g( [ green ] ), b( [ blue ] )
"SDL::Color::r, SDL::Color::g, SDL::Color::b" are accessor methods for the red, green, and blue components respectively. The color value
can be set by passing a byte value (0-255) to each function.
pixel ( surface )
"SDL::Color::pixel" takes a "SDL::Surface" object and r,g,b values, and returns the integer representation of the closest color for the
given surface.
AUTHOR
David J. Goehrig
SEE ALSO
perl SDL::Surface
perl v5.12.1 2010-07-05 SDL::Color(3)