Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
On 04/30/2011 11:07 PM, Benoît Minisini wrote: >> >> Does SDL even have a rotate function? I did some quick research and >> found mixed results. Looks like there's something called SDL_gfx that >> might do it (rotozoomer). If SDL flat-out isn't designed to do it, then >> I perfectly understand the

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Benoît Minisini
> On 04/30/2011 10:31 PM, Benoît Minisini wrote: > > I'm not talking about making a 3D game engine. I'm just talking about > > using a few OpenGL commands to: > > > > - blend images on the screen. > > - rotate the game screen as you want. > > > > As far as I understood, while the player moves, yo

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
On 04/30/2011 10:31 PM, Benoît Minisini wrote: > > I'm not talking about making a 3D game engine. I'm just talking about using a > few OpenGL commands to: > > - blend images on the screen. > - rotate the game screen as you want. > > As far as I understood, while the player moves, you have to build

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Benoît Minisini
> > > Before learning C, look at OpenGL to see how you can have a fast rotate > > and blit function. (But for DrawAlpha, I don't know if it possible to do > > it with OpenGL, I have no idea.) > > When I do learn C it will be applied directly to GAMBAS. I have no > reason to believe that programmi

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
On 04/30/2011 09:55 PM, Benoît Minisini wrote: >> On 04/30/2011 09:19 PM, Kevin Fishburne wrote: >> >> Something like: >> >> If TargetWidth = SourceWidth And TargetHeight = SourceHeight Then >> Do_Not_Use_Scaling_Blit_Algorithm >> Else >> Use_Scaling_Blit_Algorithm >> EndIf >> >> But in C. :) S

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Benoît Minisini
> On 04/30/2011 09:19 PM, Kevin Fishburne wrote: > > On 04/30/2011 09:05 PM, Benoît Minisini wrote: > >> I fixed Image.PaintImage() in gb.image.imlib, so your code should work > >> again. > >> > >> Now let's try to fix gb.image... > > > > Compiling now on a quad-core 3.5 GHz CPU overclocked to 4.

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
On 04/30/2011 09:19 PM, Kevin Fishburne wrote: > On 04/30/2011 09:05 PM, Benoît Minisini wrote: >> >> I fixed Image.PaintImage() in gb.image.imlib, so your code should work again. >> >> Now let's try to fix gb.image... > > Compiling now on a quad-core 3.5 GHz CPU overclocked to 4.1 GHz. > Muwahahaa

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
On 04/30/2011 09:05 PM, Benoît Minisini wrote: > > I fixed Image.PaintImage() in gb.image.imlib, so your code should work again. > > Now let's try to fix gb.image... Compiling now on a quad-core 3.5 GHz CPU overclocked to 4.1 GHz. Muwahaha! Will report results shortly. -- Kevin Fishburne Ei

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Benoît Minisini
> On 04/30/2011 08:46 PM, Benoît Minisini wrote: > >> It seems the destination width/height parameters have been removed from > >> these two methods in a recent gb3 revision. Is there an alternate way to > >> scale a subset of the source image to the target image? 90% of my code > >> doesn't scale

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Benoît Minisini
> It seems the destination width/height parameters have been removed from > these two methods in a recent gb3 revision. Is there an alternate way to > scale a subset of the source image to the target image? 90% of my code > doesn't scale it at all but scaling is still necessary for some operations.

[Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
It seems the destination width/height parameters have been removed from these two methods in a recent gb3 revision. Is there an alternate way to scale a subset of the source image to the target image? 90% of my code doesn't scale it at all but scaling is still necessary for some operations. --