Murga-Projects Forums

Full Version: Rotate Fl_Box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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";

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
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.
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.
Reference URL's