Function
Operate on a scene background color.
Syntax
#include <dx/dx.h>
Camera DXSetBackgroundColor(Camera c, RGBColor *background)
Camera DXGetBackgroundColor(Camera c, RGBColor background)
Functional Details
DXSetBackgroundColor sets a scene background color for use at render time. DXRender applies background to all pixels at the start of rendering so that unobscured pixels will have this color in the final image. The unset default background color is black, {0,0,0}.
DXGetBackgroundColor returns the value of the camera background color in *background. DXRender initializes the output image to this color when using camera c.
Return Value
Return c or return NULL and set an error code.
See Also
[Data Explorer Home Page | Contact Data Explorer | Same document on Data Explorer Home Page ]