You are not logged in.

#1 2009-04-29 09:40:05

Jonesy
Member

[RESOLVED] Make clarity on GRRLIB 4.0.0 - GX VERSION

Hi!
Yaaaawn! (I would back to sleep.. -_- )

I have an easy question:
Inside "kidspaint" (good application!), i found the GRRLib 4.0.0 "GX VERSION"...
What is the difference between the "normal" version and the "GX Version"?



The Original Problem:

I had troubles with the "rotation" variable, calling "GRRLIB_DrawImg" :
in the DEMO1 of GRRLIB i see the "png" texture (a kind of purple triangle), rotating...
in this case the rotation use the center of the texture. Wonderful.

So I'm trying to rotate something, but my texture rotation use the "0, 0" point, to rotate.

I'm using the GRRLib 4.0.0 "GX VERSION": my "rotation problem" is inside this library?




Thanks for all.

Jonesy -Leo-

Offline

 

#2 2009-04-29 16:27:30

Crayon
Bad Mother Fucker

Re: [RESOLVED] Make clarity on GRRLIB 4.0.0 - GX VERSION

Just a quick post, all version since 3.0 are "GX version".

If someone is using a different version it might be the one from subversion: http://code.google.com/p/grrlib/source/browse/

Offline

 

#3 2009-04-29 22:19:49

Jonesy
Member

Re: [RESOLVED] Make clarity on GRRLIB 4.0.0 - GX VERSION

For the moment, thankyou for the precisation!

But what is the difference between the GRRlib distribuited at the link http://grrlib.santo.fr/release/GRRLib4.0.0.rar and those that you call "subversion", linked at Google Code?

there's some explication for the trouble of the rotation point?
I really don't understand where I mistake.

'night.

-J-

Offline

 

#4 2009-04-29 22:26:22

Crayon
Bad Mother Fucker

Re: [RESOLVED] Make clarity on GRRLIB 4.0.0 - GX VERSION

The files at http://code.google.com/p/grrlib/source/checkout are used for development. So they are the most recent one, but since it's development they might have errors, so it's to use at your own risk.

If you want to change the rotation point use GRRLIB_SetHandle:

Code:

 * Set a texture's X and Y handles. e.g. for rotation.
 * @param tex The texture to set the handle on.
 * @param x The x-coordinate of the handle.
 * @param y The y-coordinate of the handle.

GRRLIB_SetMidHandle could be used to center a texture's handles.

Offline

 

#5 2009-04-30 08:42:03

Jonesy
Member

Re: [RESOLVED] Make clarity on GRRLIB 4.0.0 - GX VERSION

Great Crayon!
Great!

Thank you so much.

-J-

Offline

 

Board footer

Powered by FluxBB