diff options
Diffstat (limited to 'Build/source/utils/asymptote/picture.cc')
-rw-r--r-- | Build/source/utils/asymptote/picture.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Build/source/utils/asymptote/picture.cc b/Build/source/utils/asymptote/picture.cc index cade08cceca..26023157229 100644 --- a/Build/source/utils/asymptote/picture.cc +++ b/Build/source/utils/asymptote/picture.cc @@ -708,6 +708,7 @@ struct Communicate : public gc { triple m; triple M; double *t; + double *background; size_t nlights; triple *lights; double *diffuse; @@ -723,8 +724,8 @@ void glrenderWrapper() { #ifdef HAVE_LIBGL glrender(com.prefix,com.pic,com.format,com.width,com.height,com.angle, - com.m,com.M,com.t,com.nlights,com.lights,com.diffuse,com.ambient, - com.specular,com.viewportlighting,com.view); + com.m,com.M,com.t,com.background,com.nlights,com.lights,com.diffuse, + com.ambient,com.specular,com.viewportlighting,com.view); #endif } @@ -733,9 +734,9 @@ extern bool glinitialize; bool picture::shipout3(const string& prefix, const string& format, double width, double height, double angle, const triple& m, const triple& M, - double *t, size_t nlights, triple *lights, - double *diffuse, double *ambient, double *specular, - bool viewportlighting, bool view) + double *t, double *background, size_t nlights, + triple *lights, double *diffuse, double *ambient, + double *specular, bool viewportlighting, bool view) { #ifdef HAVE_LIBGL bounds3(); @@ -763,6 +764,7 @@ bool picture::shipout3(const string& prefix, const string& format, com.m=m; com.M=M; com.t=t; + com.background=background; com.nlights=nlights; com.lights=lights; com.diffuse=diffuse; @@ -796,7 +798,7 @@ bool picture::shipout3(const string& prefix, const string& format, if(glthread && !interact::interactive) pthread_mutex_lock(&quitLock); #endif - glrender(prefix,this,outputformat,width,height,angle,m,M,t, + glrender(prefix,this,outputformat,width,height,angle,m,M,t,background, nlights,lights,diffuse,ambient,specular,viewportlighting,View, oldpid); #ifdef HAVE_LIBPTHREAD |