sdl and glx platform on linux
-
- Halfling
- Posts: 81
- Joined: Sat Mar 29, 2003 7:29 pm
- Location: Florida, USA
- Contact:
sdl and glx platform on linux
Does the GLX platform work on linux? If it does work, what is the reason for using SDL as the default? Can I use GLX instead of the SDL platform? Is there an easy way to replace SDL? Is there any reason I should stay away from GLX? Sorry for the many questions, I'm just curious.
- fog
- Greenskin
- Posts: 149
- Joined: Sun Sep 19, 2004 6:00 pm
- Location: Torino, ITALY
- Contact:
- :wumpus:
- OGRE Retired Team Member
- Posts: 3067
- Joined: Tue Feb 10, 2004 12:53 pm
- Location: The Netherlands
- x 1
The reason that SDL is the default is because it was there first
There's a couple of reasons to choose for GLX though:
- Hardware render-to-texture: this is currently only implemented for Win32 and GLX. This means you can have rtt's bigger than your framebuffer and in different pixel formats. Implementation for SDL is a bit troublesome for the release version of SDL, with the CVS version it's a breeze but we're still waiting for that to get released.
- A nice config panel (as fog says)
- Ctrl-alt-escape unlocks your mouse (so it can leave the window and is visible), clicking locks it in again
Use "--with-gl-support=GLX --with-platform=GLX" on configure to use the GLX system.
There's a couple of reasons to choose for GLX though:
- Hardware render-to-texture: this is currently only implemented for Win32 and GLX. This means you can have rtt's bigger than your framebuffer and in different pixel formats. Implementation for SDL is a bit troublesome for the release version of SDL, with the CVS version it's a breeze but we're still waiting for that to get released.
- A nice config panel (as fog says)
- Ctrl-alt-escape unlocks your mouse (so it can leave the window and is visible), clicking locks it in again
Use "--with-gl-support=GLX --with-platform=GLX" on configure to use the GLX system.
- fog
- Greenskin
- Posts: 149
- Joined: Sun Sep 19, 2004 6:00 pm
- Location: Torino, ITALY
- Contact:
- fog
- Greenskin
- Posts: 149
- Joined: Sun Sep 19, 2004 6:00 pm
- Location: Torino, ITALY
- Contact:
Embedding
And not to forget, if I understand it correctly only the GTK platform let you embed an ogre rendering window into a top-level window. SDL and GLX always create a top level. (That makes sense for SDL but not for GLX; wumpus: is that a real limitation or just was not implemented?)
-
- Halfling
- Posts: 81
- Joined: Sat Mar 29, 2003 7:29 pm
- Location: Florida, USA
- Contact:
-
- Halfling
- Posts: 81
- Joined: Sat Mar 29, 2003 7:29 pm
- Location: Florida, USA
- Contact:
- :wumpus:
- OGRE Retired Team Member
- Posts: 3067
- Joined: Tue Feb 10, 2004 12:53 pm
- Location: The Netherlands
- x 1
It's not on the official roadmap, but I need to change the interface/renderWindow parameter system anyway before I can implement FSAA for GLX.lgoss007 wrote:Great! Just what I was hoping for. Will the createRenderWindow interface change before the 1.0 release? That would be nice, but I know you all are busy.
- AnimalMachine
- Gnoblar
- Posts: 19
- Joined: Sun Jan 19, 2003 4:36 pm
- Location: Milwaukee, WI USA