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
Post Reply  Post Thread 

Messages In This Thread
Rotate Fl_Box - chrimo - 05-30-2007 07:06 AM
RE: Rotate Fl_Box - iGame3D - 06-05-2007, 01:51 PM
RE: Rotate Fl_Box - mikshaw - 06-06-2007, 01:50 AM

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

Forum Jump: