Re: [Gambas-user] angle interpolation algorithm troubles

2012-02-16 Thread Kevin Fishburne
On 02/17/2012 02:23 AM, Randall Morgan wrote: > My Game programming days go back to DOS and WinG and the last thing I > worked on was using DirectX 6 and it was brand new then. Much has changed > since then. Even C and C++ and the coding styles used now are completely > different. So I am glad this

Re: [Gambas-user] angle interpolation algorithm troubles

2012-02-16 Thread Randall Morgan
My Game programming days go back to DOS and WinG and the last thing I worked on was using DirectX 6 and it was brand new then. Much has changed since then. Even C and C++ and the coding styles used now are completely different. So I am glad this old man could help! On Thu, Feb 16, 2012 at 10:52

Re: [Gambas-user] angle interpolation algorithm troubles

2012-02-16 Thread Kevin Fishburne
On 02/17/2012 01:11 AM, Randall Morgan wrote: > Try a little conditional: > > if abs(a1 - a2)> 180 then rotate counter clockwise > else rotate clockwise > > I think this will work try it and see... Thou art a genius. :) I used your suggestion along with this site: http://www.kirupa.com/forum/sho

Re: [Gambas-user] angle interpolation algorithm troubles

2012-02-16 Thread Randall Morgan
Try a little conditional: if abs(a1 - a2) > 180 then rotate counter clockwise else rotate clockwise I think this will work try it and see... On Thu, Feb 16, 2012 at 9:08 PM, Kevin Fishburne < kevinfishbu...@eightvirtues.com> wrote: > Apparently I'm too much of a dummy to figure this out. I ha

[Gambas-user] angle interpolation algorithm troubles

2012-02-16 Thread Kevin Fishburne
Apparently I'm too much of a dummy to figure this out. I have two singles representing orientation in degrees, let's say Angle1 and Angle2. I need to continually increment one (let's say Angle1) until it's close to the value of the other (Angle2), but in the direction of the shortest distance b

Re: [Gambas-user] Archlinux package creation

2012-02-16 Thread Алексей Беспалов
For Archlinux, I think it may simply take the source tar.gz file and write the most pkbuild. 2012/2/17 Sebastian Kulesz > Hi. I'm having trouble creating an Archlinux installation package. It > seems to create it successfully, but when i check the destination > folder it's empty and there is no

[Gambas-user] Expander control - two questions

2012-02-16 Thread Bruce Bruen
Hi folks, 1) Is it possible to change the height of the header of the expander, i.e. the bit that remains visible when it is collapsed? At the moment, it is too high for one line and too short for two. 2) Is it possible to change the height of the expanded view depending on the size of its' conte

[Gambas-user] When to use GB.NewArray or GB.Array.New

2012-02-16 Thread Randall Morgan
Hi, I am experimenting with arrays in C components. I have looked at the documentation on arrays and see that there are two types of arrays. It looks like GB.NewArray simply reserves memory and GB.Array.New creates a new GAMBAS array object. My question is: When is it appropriate to use each of t

[Gambas-user] Archlinux package creation

2012-02-16 Thread Sebastian Kulesz
Hi. I'm having trouble creating an Archlinux installation package. It seems to create it successfully, but when i check the destination folder it's empty and there is no PKGBUILD file. Can somebody reproduce this? Thanks! ---