Skip to content

Commit

Permalink
Add handling for background color RGBA
Browse files Browse the repository at this point in the history
  • Loading branch information
VolkerEnderlein committed Mar 26, 2023
1 parent 4567da4 commit 8a4e2d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,15 @@ check_cxx_source_compiles("
#include <Inventor/VRMLnodes/SoVRMLViewpoint.h>
int main() { SoVRMLViewpoint * p = new SoVRMLViewpoint; return 0; }
" HAVE_SOVRMLVIEWPOINT)
check_cxx_source_compiles("
#include <Inventor/SbColorRGBA.h>
int main() { SbColorRGBA c; return 0; }
" HAVE_SBCOLORRGBA_H)
check_cxx_source_compiles("
#include <Inventor/SbColorRGBA.h>
#include <Inventor/SoSceneManager.h>
int main() { SoSceneManager * p = new SoSceneManager; SbColorRGBA c = p->getBackgroundColorRGBA(); return 0; }
" HAVE_SOSCENEMANAGER_GETBACKGROUNDCOLORRGBA)

unset(CMAKE_REQUIRED_LIBRARIES)

Expand Down
6 changes: 6 additions & 0 deletions src/config.h.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#cmakedefine HAVE_INTTYPES_H 1

/* Define to 1 if you have the <Inventor/SbColorRGBA.h> header file. */
#cmakedefine HAVE_SBCOLORRGBA_H 1

/* Define to 1 if you have the <memory.h> header file. */
#cmakedefine HAVE_MEMORY_H 1

Expand All @@ -62,6 +65,9 @@
/* define if pthread's struct timespec uses nsecs and not usecs */
#cmakedefine HAVE_PTHREAD_TIMESPEC_NSEC 1

/* Define to enable use of Inventor feature */
#cmakedefine HAVE_SOSCENEMANAGER_GETBACKGROUNDCOLORRGBA 1

/* Define to enable use of Inventor feature */
#cmakedefine HAVE_SBIMAGE_ADDREADIMAGECB 1

Expand Down

0 comments on commit 8a4e2d3

Please sign in to comment.