David Olofson | 1 Oct 01:33 2003
Picon

Re: refresh rate

On Tuesday 30 September 2003 19.07,  wrote:
> > >I don't know why people seem to believe there's no way to set
> > > the OpenGL refresh rate from an application in Windows.  There
> > > is, and it's not even obscure; it's a trivial and documented
> > > parameter change to ChangeDisplaySettings.
>
> This is a Windows specific solution and I know it.
> If I use it , why we use SDL?

For all the other stuff it makes nice and portable...? SDL is use in 
plenty of applications that do various things in platform specific 
ways.

Kodo Deluxe (of course! As if I'd ever miss a chance to mention it! 
;-) is one of them - and it still runs on some 20 different OS/CPU 
combinations. No big deal - just a few #ifdefs, and some weird 
features that no one will miss, that work only on Linux. (Especially 
true if some of the platform specific code is contributed by others, 
so you don't have to hack it yourself! ;-)

> Personally I use SDL because it is cross-platfrom

Sure, and I think the majority of us do. However, I don't see what's 
wrong with giving some users some bonus features - especially if it's 
stuff that could later be implemented on some other platforms as 
well. Platforms are not identical. Some just don't provide certain 
features at all. Does that mean you shouldn't use those features at 
all, on any platform...?

//David Olofson - Programmer, Composer, Open Source Advocate
(Continue reading)

Jason Clark | 1 Oct 02:01 2003

A couple of questions...

Before I go running off re-inventing the wheel (my version would undoubtedly
look remarkably like a square), I wanted to see if any of you have already
developed solutions for them:

1) I need to be able to read a source Rect from a bmp and rotate it 90
degrees.
2) Copy one SDL_Surface to another.
3) take a Rect and apply different levels of alpha, i.e., make one color
fully transparent and then apply a % to the remainder of the image.

I can go about these using brute force techniques but wanted to see if
anyone out there had a more graceful solution.
Thanks,
Jason
Andrew Balmos | 1 Oct 02:54 2003
Picon
Picon

Child Windows

Hi,
 
This might be hard or easy and it may or may not be possible. I need SDL to make one main window with just a menu system and some buttons on top... Than I need to make SDL make 4 windows all with OpenGL Viewpoints...
 
I would like to be able to have SDL do all this so it can be run on many different OS...
 
Any help please!
 
Thanks in advance!
 
Andrew
Church Punks! Truth Rebellion! Audio A!
Andrew Balmos | 1 Oct 03:23 2003
Picon
Picon

Making a Cross-Compatible

Hi,
I am trying to figer this out... In WIN32 is can do Error() (or something I cant remember right now) but that wont work on all OS... What do I use for all OS? For anything?
 
Thanks,
Andrew

Church Punks! Truth Rebellion! Audio A!

Andrew Balmos | 1 Oct 04:00 2003
Picon
Picon

Re: Making a Cross-Compatible

I mean MessageBox() I dont know what I was thinking... I made my own function called error (I think that is what it was)
 
Thanks,
Andrew
Church Punks! Truth Rebellion! Audio A!
----- Original Message -----
Sent: Tuesday, September 30, 2003 6:23 PM
Subject: [SDL] Making a Cross-Compatible

Hi,
I am trying to figer this out... In WIN32 is can do Error() (or something I cant remember right now) but that wont work on all OS... What do I use for all OS? For anything?
 
Thanks,
Andrew

Church Punks! Truth Rebellion! Audio A!

Sam Lantinga | 1 Oct 05:35 2003

Re: Zen And The Art Of Cross-Compiling DLLs

> On Tuesday 30 September 2003 11:22 am, Sam Lantinga wrote:
> > I have custom libtool scripts which do "The Right Thing (TM)". :)
> >
> > See ya,
> > 	-Sam Lantinga, Software Engineer, Blizzard Entertainment
> >
> Assuming you're referring to something not in the distribution, would you 
> care to share those scripts with us?

It's just the libtool section of acinclude.m4 and ltconfig and ltmain.sh
in the SDL source archive.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment
Vivi Orunitia | 1 Oct 02:22 2003

Re: SDL on Borland C++ IDE

Dominique Louis <Dominique <at> SavageSoftware.com.au> wrote in
news:3F79BF4F.2010801 <at> SavageSoftware.com.au: 

> Hi Prathmesh,
>    The latest release of SDL contains several Borland .MAK files and
>    the 
> necessary Borland compatible .lib files which you should be able to
> use in the 5.0 IDE. Look for the Borland.zip file in the SDL release.
> 

I'm not sure if you recall but remember I emailed you about this problem 
with getting Borland 5.02 to work with SDL? The problem with the current 
make file is, I think, that it's created with Borland C++Builder 6 so 
it's unlikely that 5.02 will recognize the files.

You mention that it might be possible to convert it into a format 5.02 
will recognize. Perhaps revising and appending a walkthrough or a 
tutorial to the current existing documentation is a good idea I think.
Milan Babuskov | 1 Oct 09:08 2003
Picon

Re: Re: Plz review this new add to SDL_net

Goul_duKat wrote:
> Milan Babuskov wrote:
> 
>> I'm using Windows98, so it's possible that Microsoft has changed the 
>> API for function IcmpCloseHandle in IPHLPAPI.DLL.
>>
>> IPHLPAPI.DLL file I have on my system is version 5.00.1717.2
>>
>> Which Windows version are you using?
> 
> 
> win xp ... read on msn how to obtain the new version of iphlpapi.dll, or 
> i rebuild the library to link the icmp.dll for old windows95-98 ...
> 
>> I'm also interested what ICMP_Open, ICMP_Close and other two functions 
>> return. It's an "int" but what it means. Does the non-zero value mean 
>> it's ok?

I can update my system, but I don't like that idea. It would mean that 
all users of my game would have to upgrade their systems. If you rebuild 
the library to work with icmp.dll, would it work on newer Windows 
versions? As far as I read on the net, it probably will not. Or, perhaps 
to detect windows version and do The Right Thing(TM)?

There is an alternative to these techniques, that should work on all 
Windows platforms, take a look at this article and code:

http://www.tangentsoft.net/wskfaq/examples/rawping.html

However, I'm not an expert on this subject, but it would probably mean 
something to you.

> fast route ping don't need the open-close ... but not try to use the 
> ECHO witeout open close blok ...

Ok. I was only going to use fast route ping anyway. I want to use it 
upon initial connection, to check wheter the other side is "there". It 
seem a lot more simple that using UDP for the same thing.

In fact, all would be good if we could have a function to reduce the 
timeout of TCP's Connect() function. I also found an article about this, 
but I'm not sure whether the other platforms have a similar thing:

http://www.tangentsoft.net/wskfaq/newbie.html#timeout

If would be great addition to SDL_net to have a function like:
SDLNet_SetTimeout(int seconds);

--

-- 
Milan Babuskov
http://njam.sourceforge.net
Santi Ontañón | 1 Oct 09:20 2003
Picon

Re: SDL_Mixer doesn't like SOME oggs

I've experienced the same problem. Just solved it by encoding the OGG 
files with the parameters that SDL_mixer accepts...
Milan Babuskov | 1 Oct 09:16 2003
Picon

Re: A couple of questions...

Jason Clark wrote:
> Before I go running off re-inventing the wheel (my version would undoubtedly
> look remarkably like a square), I wanted to see if any of you have already
> developed solutions for them:
> 
> 1) I need to be able to read a source Rect from a bmp and rotate it 90
> degrees.

This can be done in less than 10 lines of code. Just write two nested 
for loops to copy the pixels to the right place on destination ;)

> 2) Copy one SDL_Surface to another.

This is even easier, one liner.

> 3) take a Rect and apply different levels of alpha, i.e., make one color
> fully transparent and then apply a % to the remainder of the image.

Hm, don't know about this one... what exactly do you want to do?

--

-- 
Milan Babuskov
http://njam.sourceforge.net

Gmane