fltk/test
Albrecht Schlosser eb70e46d2a Fixed gray scale w/alpha image drawing for Mac OS with Quartz (FLTK 1.1
with Quickdraw worked) in src/Fl_Images.cxx.

Changed test/unittest_images.cxx to use Fl_RGB_Image::draw() to draw images
with alpha channel, because  the current version of fl_draw_image()
supports alpha channels only on Mac. Tested on Windows[1], Linux, and Mac.

[1] Windows with GDI drawing doesn't work yet for gray+alpha (STR 2105).

To do: Check, if fl_draw_image() should support alpha channel images
on all platforms or not at all. The current documentation mentions only
RGB and gray scale images. IMHO the behavior is undefined for values of
abs(d) == 2 and abs(d) > 3. See also fl_draw_image_mono().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-21 09:25:22 +00:00
..
blocks.app/Contents Do some rearranging of image and desktop support files. 2006-08-25 06:58:33 +00:00
checkers.app/Contents
desktop Added missing semicolons in desktop file 2008-03-16 12:20:30 +00:00
pixmaps Removed DOS style ^M's; they were preventing SGI compiles (partial STR#2174) 2009-03-13 22:58:31 +00:00
sudoku.app/Contents
adjuster.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
arc.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
ask.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
bitmap.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
blocks.cxx Fixed some typos and some funny language (my own) in the documentation of the test applications. ADded a hidden [+] key support for 'Blocks' so that I can increase the level to my prefered one (6) and not have to play through 1-5 ;-) 2007-11-19 14:14:13 +00:00
boxtype.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
browser.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
button.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
buttons.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
cairo_test.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
checkers.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
clock.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
CMakeLists.txt
colbrowser.cxx + Fixed font set to const string was potentially free in 2009-01-04 16:21:42 +00:00
color_chooser.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
connect.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
cube.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
CubeMain.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
CubeView.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
CubeView.h Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
CubeViewUI.fl New context_changed() function for OpenGL windows allowing efficient texture loading (str #1372) 2006-08-17 09:49:43 +00:00
cursor.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
curve.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
demo.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
demo.menu Remove mcast and dnd test programs. I do like them and they should be back eventually, however right now they ae not in the scope of the UTF8 port. 2008-09-11 10:38:40 +00:00
doublebuffer.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
editor.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
fast_slow.fl
file_chooser.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
fl_jpeg_image.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
fonts.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
forms.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
fractals.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
fracviewer.cxx Fix <FL/glu.h> includes. 2006-08-25 16:12:13 +00:00
fracviewer.h
fromdos.c
fullscreen.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
gl_overlay.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
glpuzzle.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
hello.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
help.cxx Help demo: now loads the non framed version main.html instead of index.html 2009-01-20 08:53:11 +00:00
iconize.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
image.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
inactive.fl
input_choice.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
input.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
keyboard_ui.fl
keyboard.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
keyboard.h Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
label.cxx STR#2035 fix : Changed all 1998-200[0-8] dates to 1998-2009 for supported fltk files (this excludes i.e the png subdir). 2009-01-12 14:52:45 +00:00
line_style.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
list_visuals.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
makedepend Update dependencies. 2007-02-10 14:31:12 +00:00
Makefile Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
makefile.wat
mandelbrot_ui.fl Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
mandelbrot.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
mandelbrot.h Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
menubar.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
message.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
minimum.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
navigation.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
output.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
overlay.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
pack.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
pixmap_browser.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
pixmap.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
preferences.fl Fixed uninitialized data in OS X and WIN32 timout functions (STR #1374). 2006-08-21 15:03:02 +00:00
radio.fl Sorted buttons order as they appear in fluid, changed the 'same shortcuts A1 and A2 as it is more confusing than helping in finding bugs for this test case. 2008-12-16 20:11:04 +00:00
README
resize.fl made the window its own resizable() for better resize testing 2008-09-02 21:42:36 +00:00
resizebox.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
rgb.txt
scroll.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
shape.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
subwindow.cxx Cahngad copyrights in 'test' 2009-01-01 16:35:13 +00:00
sudoku.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
sudoku.ico
sudoku.rc
sudokurc.h Fixed shortcut and default focus for message dialogs (STR #1298). 2006-05-30 09:38:19 +00:00
symbols.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
tabs.fl STR #1652: allowing shortcuts in tabs 2007-05-01 20:20:21 +00:00
threads.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
threads.h STR#2035 fix : Changed all 1998-200[0-8] dates to 1998-2009 for supported fltk files (this excludes i.e the png subdir). 2009-01-12 14:52:45 +00:00
tile.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
tiled_image.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
trackball.c
trackball.h
unittest_about.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_circles.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_images.cxx Fixed gray scale w/alpha image drawing for Mac OS with Quartz (FLTK 1.1 2009-04-21 09:25:22 +00:00
unittest_lines.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_points.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_rects.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_text.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittest_viewport.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
unittests.cxx Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD 2009-04-12 13:48:03 +00:00
utf8.cxx Most test demos converted to use Fl_Double_Window 2009-04-21 09:09:37 +00:00
valuators.fl Fixed modified .fl file. 2007-01-18 10:41:27 +00:00

test/README - 20 Oct 1998
-------------------------

This directory contains tests and demos of FL.  In most cases you can
learn a lot about how to program FL by looking at the source code.

Type "make" to compile them all.

The program "demo" is a graphical interface to run all the demos. (you
may recognize this as a rewrite of an XForms program).

Some of the more interesting programs:

fractals:	A GLUT program with FL controls added to it

glpuzzle:	A GLUT program with no modifications

fullscreen:	Demo of how to make your window toggle to fill screen

list_visuals:	necessary to debug X visual stuff

mandelbrot:	A true application, using panels built in Fluid

menubar:	Demo of how FL's menus work

shiny:		Demo of drawing FL's controls using OpenGL

forms:		An XForms program to demonstrate emulation

colbrowser:	Another XForms program that is actually useful