diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-02-06 15:22:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-06 15:22:24 +0100 |
| commit | db0a1f4baeb928b54d328d5dfbd0ec37b0b58bd3 (patch) | |
| tree | ed53495f5dd435d7c23cd4267fb785e5ebca679c /test/unittest_images.cxx | |
| parent | af4954aee3483f03ff69e990e80f4e4a18e8b7f6 (diff) | |
OpenGL implementation of all `fl_` "Drawing Fast Shapes" graphics calls (#385)
* Fix build system for unites,
* Updated unittest to check OpenGL drawing.
Making sure that OpenGL drawing is exactly the same
as native drawing to make FLTK widget rendering
look the same in GL windows.
* Make OpenGL optional.
* Implemented clipping in OpenGL
* unites drawing fast shapes
* Fixed CMake
* Updating unittest.
Added tests for fl_pi and fl_arc (int)
Renamed tab to render complex shapes.
* Improved OpenGL FLTK drawing emulation.
* Fixed GTK ROUND DOWN BOX
* Fixing Makefile for unittest
* Correctly aligning OpenGL text.
* Fixed text alignment in GL windows.
Explained the "FLTK over GL " example in Cube.
* Overlapping test.
* Better GL graphics alignment.
* Drawing the focus rect.
* Adding Alpha Channel support for GL.
* Added FLTK-on-GL documentation.
Diffstat (limited to 'test/unittest_images.cxx')
| -rw-r--r-- | test/unittest_images.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unittest_images.cxx b/test/unittest_images.cxx index 210af96dc..dcc720f1b 100644 --- a/test/unittest_images.cxx +++ b/test/unittest_images.cxx @@ -14,12 +14,16 @@ // https://www.fltk.org/bugs.php // +#include "unittests.h" + #include <FL/Fl_Group.H> #include <FL/Fl_Button.H> #include <FL/Fl_Radio_Button.H> #include <FL/Fl_Check_Button.H> #include <FL/fl_draw.H> +#include <stdlib.h> + // Note: currently (March 2010) fl_draw_image() supports transparency with // alpha channel only on Apple (Mac OS X), but Fl_RGB_Image->draw() // supports transparency on all platforms ! @@ -291,4 +295,4 @@ Fl_RGB_Image *ImageTest::i_ga = 0; Fl_RGB_Image *ImageTest::i_rgb = 0; Fl_RGB_Image *ImageTest::i_rgba = 0; -UnitTest images("drawing images", ImageTest::create); +UnitTest images(kTestImages, "Drawing Images", ImageTest::create); |
