Murga-Projects Forums
Rotate Fl_Box - Printable Version

+- Murga-Projects Forums (
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Rotate Fl_Box (/showthread.php?tid=31)

Rotate Fl_Box - chrimo - 05-30-2007 07:06 AM

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

RE: Rotate Fl_Box - iGame3D - 06-05-2007 01:51 PM

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.

RE: Rotate Fl_Box - mikshaw - 06-06-2007 01:50 AM

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.