Clanlib

Hi Sam,

Found another lib similar to SDL.
Thought you might want to take a look at it sometime:

http://www.clanlib.org/

Kent Mein
@Kent_Mein

Hi Sam,

Found another lib similar to SDL.
Thought you might want to take a look at it sometime:

http://www.clanlib.org/

Yup, it’s interesting. :slight_smile:

Thanks for the link!

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Sam Lantinga wrote:

Hi Sam,

Found another lib similar to SDL.
Thought you might want to take a look at it sometime:

http://www.clanlib.org/

Yup, it’s interesting. :slight_smile:

SDL is imho much simpler ==> much easier to learn ==> much better :slight_smile:

Vasek

Hey team,
I see the term Direct Graphics Access (DGA) thrown around here
sometimes. As I understand it, my X server (ATI Rage) doesn’t have it.
What capabilities does DGA offer, exactly? I’ve already gathered that it’s
how you gain hardware blitting capability. When you go fullscreen, with
the DGA, can you actually change the resolution? For example, when I go
"full screen" on my ATI card, the screen stays at 1024x768 and the
graphics are centered in the middle of the screen. If DGA was enabled,
would the screen change to, say, 320x200 or 640x480 or whatever the app
requests?
Also, if I had DGA, would my card report more than zero kilobytes
or video RAM?..:slight_smile:
Thanks…
-The Mighty Mike Master
http://tmmm.simplenet.com

Hey team,
I see the term Direct Graphics Access (DGA) thrown around here
sometimes. As I understand it, my X server (ATI Rage) doesn’t have it.
What capabilities does DGA offer, exactly? I’ve already gathered that it’s
how you gain hardware blitting capability. When you go fullscreen, with
the DGA, can you actually change the resolution? For example, when I go
"full screen" on my ATI card, the screen stays at 1024x768 and the
graphics are centered in the middle of the screen. If DGA was enabled,
would the screen change to, say, 320x200 or 640x480 or whatever the app
requests?

Yup. It doesn’t give you access to a hardware blitter yet though.
That’s coming with XFree86 2.0 and possibly a fullscreen port.
I’m working on throwing together an SVVGAlib port, since the latest
version (1.40 pre-release) actually works on my card with the vesa
driver. :slight_smile:

Also, if I had DGA, would my card report more than zero kilobytes
or video RAM?..:slight_smile:

Yup, but don’t put too much stock in that number. :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Yup. It doesn’t give you access to a hardware blitter yet though.
That’s coming with XFree86 2.0 and possibly a fullscreen port.
^^^

Do you mean 4.0? They’re already on 3.3.3.1 or something like that.

The Mighty Mike Master wrote:

Hey team,
I see the term Direct Graphics Access (DGA) thrown around here
sometimes. As I understand it, my X server (ATI Rage) doesn’t have it.
What capabilities does DGA offer, exactly? I’ve already gathered that it’s
how you gain hardware blitting capability. When you go fullscreen, with
the DGA, can you actually change the resolution? For example, when I go
"full screen" on my ATI card, the screen stays at 1024x768 and the
graphics are centered in the middle of the screen. If DGA was enabled,
would the screen change to, say, 320x200 or 640x480 or whatever the app
requests?
Also, if I had DGA, would my card report more than zero kilobytes
or video RAM?..:slight_smile:
Thanks…
-The Mighty Mike Master
http://tmmm.simplenet.com

Exactly which X-Server are you using. I have anATI Rage Pro and am using the
Mach64 X-Server. DGA works fine with that one. On my old computer I was
using a SVGA server I think. I had the same problems you are experiencing. (
Same resolution, image centered in screen). I wondered what DGA was too,
didn’t understand the purpose of FullScreen but the same tiny size. Maybe
you should try Mach64?

The Mighty Mike Master wrote:

“full screen” on my ATI card, the screen stays at 1024x768 and the
graphics are centered in the middle of the screen. If DGA was enabled,
would the screen change to, say, 320x200 or 640x480 or whatever the app
requests?
With DGA & SDL you can switch to any of the modes defined in your
/etc/X11/XF86Config

BTW, I’ve seen a couple of programs that are able to run in fullscreen - or at
least in something that looks like fullscreen (but it is probably not as fast as
DGA is) - e.g. GTKSee. There is also a program that allows you to switch
resolution in non-root mode called Xvidmode (same behaviour as pressing Ctrl -
Alt - +). You can find both these programs at Freshmeat.

I don’t know how GTKSee does it - maybe it just creates huge decorationless
window.

BTW2, I noticed that SDL in DGA mode runs slower than in windowed mode on my S3
Trio64V+. I suppose the reason was that I used blit’n’updaterect to show an
image instead of directly rendering into frame buffer…

V.

BTW, I’ve seen a couple of programs that are able to run in fullscreen - or at
least in something that looks like fullscreen (but it is probably not as fast as
DGA is) - e.g. GTKSee. There is also a program that allows you to switch
resolution in non-root mode called Xvidmode (same behaviour as pressing Ctrl -
Alt - +). You can find both these programs at Freshmeat.

I don’t know how GTKSee does it - maybe it just creates huge decorationless
window.

Yep, most likely.

BTW2, I noticed that SDL in DGA mode runs slower than in windowed mode on my S3
Trio64V+. I suppose the reason was that I used blit’n’updaterect to show an
image instead of directly rendering into frame buffer…

That’s exactly right.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Hey team,
I see the term Direct Graphics Access (DGA) thrown around here
sometimes. As I understand it, my X server (ATI Rage) doesn’t have it.
What capabilities does DGA offer, exactly? I’ve already gathered that it’s
how you gain hardware blitting capability. When you go fullscreen, with
the DGA, can you actually change the resolution? For example, when I go
"full screen" on my ATI card, the screen stays at 1024x768 and the
graphics are centered in the middle of the screen. If DGA was enabled,
would the screen change to, say, 320x200 or 640x480 or whatever the app
requests?

Well, DGA is sort of similar to some aspects of DirectX (Inasmuch as it
lets you have more direct access to the hardware while still
maintaining some sort of card independence. I’m not sure if the ATI
Rage is lacking DGA or not, but if you’re using the latest XFree86
server for the ATI Mach64 (Oddly enough, called MACH64) you should have
DGA. I’ve got a true Mach64 card and on that server, I get my three
favorite resolutions (haven’t configured the rest). Yes, DGA can
change resolutions, but not color-depth (e.g. if you’re in 16-bit
color, you can’t jump to 8-bit for some neat-o special affects).

As for why your X stays in 1024x768, I couldn’t say for sure. It
depends on the X server you’re running as well as the configured video
modes for your current color depth. (e.g. if you only have 800x600 and
1024x768 configured for 16-bit color and you’re in that color, a
program that wants 320x240 is going to get a tiny window in an 800x600
screen). One thing I like about SDL is the fact that it will pick the
next-higher video mode and render in a centered block (Makes MpegTV
look good without having a bunch of funky resolutions setup).

Also, if I had DGA, would my card report more than zero kilobytes
or video RAM?..:slight_smile:

Eh, not to my knowledge. That’s setup in the /etc/X11/XF86Config file
(On all of my machines anyway).

-KWOn 7 Jul, The Mighty Mike Master wrote:

Sam Lantinga wrote:

I don’t know how GTKSee does it - maybe it just creates huge decorationless
window.

Yep, most likely.

So what about adding SDL_FAKED_FULLSCREEN that would create decorationless
window that behaves like if it were running fullscreen but w/o need to be root
(and of course slower :frowning: ? It should be possible to make a window
decorationless using MWM hints, wouldn’t it?
I may try something (but it won’t be one day hack as I know almost nothing about
programming pure X …)

Vasek

Vaclav Slavik wrote:

Sam Lantinga wrote:

I don’t know how GTKSee does it - maybe it just creates huge decorationless
window.

Yep, most likely.

So what about adding SDL_FAKED_FULLSCREEN that would create decorationless
window that behaves like if it were running fullscreen but w/o need to be root
(and of course slower :frowning: ? It should be possible to make a window
decorationless using MWM hints, wouldn’t it?
I may try something (but it won’t be one day hack as I know almost nothing about
programming pure X …)

Vasek

You could also make the window “override-redirect,” effectively
bypassing the window manager. This is how the GNOME panel previously
worked. (Before the advent of the GNOME window manager hints.) This has
the advantage of working with window managers that do not respect MWM
hints.

Max Watson <@Max_Watson>