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/CMakeLists.txt | |
| 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/CMakeLists.txt')
| -rw-r--r-- | test/CMakeLists.txt | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9197ebaac..f52af5cba 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -139,9 +139,28 @@ CREATE_EXAMPLE (tile tile.cxx fltk) CREATE_EXAMPLE (tiled_image tiled_image.cxx fltk) CREATE_EXAMPLE (tree tree.fl fltk) CREATE_EXAMPLE (twowin twowin.cxx fltk) +SET (UNITTEST_SRCS + unittests.cxx + unittest_about.cxx + unittest_points.cxx + unittest_complex_shapes.cxx + unittest_fast_shapes.cxx + unittest_circles.cxx + unittest_text.cxx + unittest_symbol.cxx + unittest_images.cxx + unittest_viewport.cxx + unittest_scrollbarsize.cxx + unittest_schemes.cxx + unittest_simple_terminal.cxx +) +if (OPENGL_FOUND) + CREATE_EXAMPLE (unittests "${UNITTEST_SRCS}" "fltk_gl;fltk;${OPENGL_LIBRARIES}") # opt. Fl_Gl_Window +else() + CREATE_EXAMPLE (unittests "${UNITTEST_SRCS}" fltk) # w/o Fl_Gl_Window +endif() CREATE_EXAMPLE (utf8 utf8.cxx fltk) CREATE_EXAMPLE (valuators valuators.fl fltk) -CREATE_EXAMPLE (unittests unittests.cxx fltk) CREATE_EXAMPLE (windowfocus windowfocus.cxx fltk) CREATE_EXAMPLE (wizard wizard.cxx fltk) |
