Am 30.04.2009 0:34 Uhr schrieb "jason" unter <[email protected]>:
> Step 2: Figure out how to make it draggable without a title bar at the top

Override your handle(int) method, return "1" for FL_PUSH and you will get
FL_DRAG events. Use the event global coordinates to reposition your window.

> Step 3: Figure out how to animate the "scrolling" of the text

Use Fl::add_timout() and repeat_timeout() to generate areoccuring timer. All
the time does is call "redraw()" for your scrolling text window and
increment some integer. Now override the draw() method and draw you text
with the offset given by the previously mentioned integer.

> Step 4: Consider making the scrollwindow "transparent" some how so that the
> text can appear to float on the vdeo. I don't think it's possible but it would
> be nice though :)

Transparency is not supported by 1.1 or 1.3. 2.x supports transparent
windows, but will likely fail when you try to animate that transparency.

Some cards use a video overlay (a hardware generated video image ove your
regular screen) and can only do very simple "cutouts" - no true
transparencies. This is great to keep the load on the CPU to a minimum, but
your decoded video never gets into RAM, making it close to impossible to do
smooth (or any) text effects.

Agaian, OpenGL can be very helpful here: some video cards support decoding a
video stream into an OpenGL texture buffer. You can then do with the live
video stream anything that you can do with an OpenGL screen context (zoom,
distort, overlay, underlay, change colors, etc.)


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to