fltk/test/CubeMain.cxx
Albrecht Schlosser 12ea6a0288 Enable building the CubeView demo w/o requiring '<config.h>'
This allows to build the CubeView demo from the unmodified FLTK sources
w/o having to provide a 'config.h' file by defining HAVE_GL=1 on the
compiler commandline. See also comment in test/CubeView.h.

test/CubeMain.cxx: don't include <config.h> at all (not needed)

test/CubeView.h: #include <config.h> only if HAVE_GL is not defined
2024-11-29 16:19:22 +01:00

33 lines
679 B
C++

//
// CubeView class .
//
// Copyright 1998-2024 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
// https://www.fltk.org/COPYING.php
//
// Please see the following page on how to report bugs and issues:
//
// https://www.fltk.org/bugs.php
//
#include <FL/Fl.H>
#include "CubeViewUI.h"
int
main(int argc, char **argv) {
CubeViewUI *cvui=new CubeViewUI;
//Initial global objects.
Fl::visual(FL_DOUBLE|FL_INDEX);
cvui->show(argc, argv);
return Fl::run();
}