From a1919e6db4e20f1ab16646d3cbb273f569af23e1 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Fri, 11 Mar 2005 20:16:14 +0000 Subject: Gernot Ziegler's patch to add OpenEXR support to blender. To enable it you will need to download OpenEXR and install it. For the Makefiles you will need to set WITH_OPENEXR=true and set NAN_OPENEXR to point to where OpenEXR is installed. For scons you'll need to remove config.opts to get the new options so you can enable OpenEXR, I was not able to get blender to link with scons so the scons stuff may need to be tweaked a little but I think it should work. For other platform managers The OpenEXR stuff is similar to QUICKTIME you need to define WITH_OPENEXR and setup the library stuff and as you'll notice in this commit there are two extra files. Kent --- source/blender/src/buttons_scene.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'source/blender/src/buttons_scene.c') diff --git a/source/blender/src/buttons_scene.c b/source/blender/src/buttons_scene.c index 522fa23b7a7..8702f320c6c 100644 --- a/source/blender/src/buttons_scene.c +++ b/source/blender/src/buttons_scene.c @@ -35,10 +35,6 @@ #include #include -#ifdef HAVE_CONFIG_H -#include -#endif - #ifdef WIN32 #include "BLI_winstuff.h" #endif @@ -958,6 +954,9 @@ static char *imagetype_pup(void) #endif strcat(formatstring, "|%s %%x%d"); // add space for PNG +#ifdef WITH_OPENEXR + strcat(formatstring, "|%s %%x%d"); // add space for OpenEXR +#endif strcat(formatstring, "|%s %%x%d"); // add space for BMP #ifdef _WIN32 @@ -982,6 +981,9 @@ static char *imagetype_pup(void) "Targa", R_TARGA, "Targa Raw", R_RAWTGA, "PNG", R_PNG, +#ifdef WITH_OPENEXR + "OpenEXR", R_OPENEXR, +#endif "BMP", R_BMP, "Jpeg", R_JPEG90, "HamX", R_HAMX, @@ -1000,6 +1002,9 @@ static char *imagetype_pup(void) "Targa", R_TARGA, "Targa Raw", R_RAWTGA, "PNG", R_PNG, +#ifdef WITH_OPENEXR + "OpenEXR", R_OPENEXR, +#endif "BMP", R_BMP, "Jpeg", R_JPEG90, "HamX", R_HAMX, -- cgit v1.2.3