Skip to content

Commit

Permalink
Merge pull request #5 from coin3d/bgcolorrgba
Browse files Browse the repository at this point in the history
Add handling for background color RGBA
  • Loading branch information
VolkerEnderlein authored Mar 26, 2023
2 parents b547569 + 1d0c7fc commit 1fc92f6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 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
2 changes: 1 addition & 1 deletion data
Submodule data updated 1 files
+4 −4 CMakeLists.txt
2 changes: 1 addition & 1 deletion src/Inventor/Gtk/common
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 1fc92f6

Please sign in to comment.