News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Rotate Fl_Box
Author Message
chrimo
Member
***


Posts: 94
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
Rotate Fl_Box

Hi GUI-Gurus,

just another rookie question:
I try to rotate a simple Fl_Box, I'd like to use it as a sprite animation

NXTSprite = fltk:Fl_Box(currX, currY,AreaSize,AreaSize);
image_nxt2 = "./nxt2.jpg";
nxtdata=Fl_Shared_Image.get(image_nxt2);
NXTSprite:align(fltk.FL_ALIGN_BOTTOM+fltk.FL_ALIGN_INSIDE);
NXTSprite:image(nxtdata);
NXTSprite:redraw();

What is the method to rotate NXTSprite +-90 degrees ?
Is this possible with a FL-Box or do I need to use four different jpg's, one picture for each direction ?
I'm not familar with the FLTK docs and searching (google) for answers ;-(

Thanks in advance
Bye
Christian

This post was last modified: 05-30-2007 08:35 PM by chrimo.

05-30-2007 07:06 AM
Find all posts by this user Quote this message in a reply
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #2
RE: Rotate Fl_Box

ok I have no idea how to do this.
But i found some information with FLTK commands sort of explained.

see fl_rotate

FLTK docs on this

I think we need to start writing our own manual from the ground up.

06-05-2007 01:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #3
RE: Rotate Fl_Box

Unfortunately that set of documents is for the 2.0 version of FLTK, which is currently under development separately from 1.1.x.
MurgaLua uses FLTK 1.1.7, which is the latest stable release.

06-06-2007 01:50 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: