Qt branch, mac side
Posted: 23 Mar 2010, 18:35
Hello All:
Just a note about how the Qt stuff seems from the Mac side, but first off I'm attaching a patch for the keymapping stuff... I've tried a few ways to get the behavior I'd expect from the API docs, but no go. It still refers to the Cntrl key as # and the alt key as %#. Maybe the font needs the right characters? But it does work otherwise.
Anyway other then that the game is playable, but I think there is some deeper OpenGL issues. The menu screens don't draw with the correct background, and sooner or later the "MAIN MENU" text will get scrambled (but not if I turn off the rotation, strange). Usually after traveling to the single player page.
Its tough to figure if this is some kind of program issue triggering this, or simply OpenGL not working right, but stumbling along for a bit. It still seems like we need to disable the CULL_FACE for text, although like I said it doesn't "always" work.
Also I got some improvement in drawing the menu backgrounds by adding this line:
--- lib/ivis_opengl/pieblitfunc.c (revision 10350)
+++ lib/ivis_opengl/pieblitfunc.c (working copy)
@@ -192,10 +192,11 @@
dest.w = Image->Width;
dest.h = Image->Height;
pie_DrawImage(&pieImage, &dest);
+ pie_SetRendMode(REND_OPAQUE);
}
though I'm not sure why. It looks like the title graphic and background draw fine, but then something messes up the lower section of the menus...
Anyway since I understand WIndows has bigger problems, I'm hoping the WIn people fix our OpenGL problems while they are cleaning up their code... Its probably just one or two misconfigured switches. I'm not sure its worth it from the Mac side to keep looking at these cosmetic problems until the Win side is cleaned up ( and hopefully has the problems too, or fixes them). That is unless we get some OpenGL expert in here, but it doesn't seem like anyone wants that title at them moment!
Sorry to ramble, just the FYI. I'm still interested in contributing but I think I've hit the point where I'm just guessing at stuff.....
steve
Just a note about how the Qt stuff seems from the Mac side, but first off I'm attaching a patch for the keymapping stuff... I've tried a few ways to get the behavior I'd expect from the API docs, but no go. It still refers to the Cntrl key as # and the alt key as %#. Maybe the font needs the right characters? But it does work otherwise.
Anyway other then that the game is playable, but I think there is some deeper OpenGL issues. The menu screens don't draw with the correct background, and sooner or later the "MAIN MENU" text will get scrambled (but not if I turn off the rotation, strange). Usually after traveling to the single player page.
Its tough to figure if this is some kind of program issue triggering this, or simply OpenGL not working right, but stumbling along for a bit. It still seems like we need to disable the CULL_FACE for text, although like I said it doesn't "always" work.
Also I got some improvement in drawing the menu backgrounds by adding this line:
--- lib/ivis_opengl/pieblitfunc.c (revision 10350)
+++ lib/ivis_opengl/pieblitfunc.c (working copy)
@@ -192,10 +192,11 @@
dest.w = Image->Width;
dest.h = Image->Height;
pie_DrawImage(&pieImage, &dest);
+ pie_SetRendMode(REND_OPAQUE);
}
though I'm not sure why. It looks like the title graphic and background draw fine, but then something messes up the lower section of the menus...
Anyway since I understand WIndows has bigger problems, I'm hoping the WIn people fix our OpenGL problems while they are cleaning up their code... Its probably just one or two misconfigured switches. I'm not sure its worth it from the Mac side to keep looking at these cosmetic problems until the Win side is cleaned up ( and hopefully has the problems too, or fixes them). That is unless we get some OpenGL expert in here, but it doesn't seem like anyone wants that title at them moment!
Sorry to ramble, just the FYI. I'm still interested in contributing but I think I've hit the point where I'm just guessing at stuff.....
steve