2015-10-26 13:08:18 +00:00
|
|
|
#include "gl_anaglyph.h"
|
|
|
|
|
|
|
|
namespace s3d {
|
|
|
|
|
|
|
|
MaskAnaglyph::MaskAnaglyph(const ColorMask& leftColorMask, double ipdMeters)
|
|
|
|
: leftEye(leftColorMask, ipdMeters), rightEye(leftColorMask.inverse(), ipdMeters)
|
|
|
|
{
|
|
|
|
eye_ptrs.push_back(&leftEye);
|
|
|
|
eye_ptrs.push_back(&rightEye);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* static */
|
2015-10-31 00:51:35 +00:00
|
|
|
const GreenMagenta& GreenMagenta::getInstance(FLOATTYPE ipd)
|
2015-10-26 13:08:18 +00:00
|
|
|
{
|
|
|
|
static GreenMagenta instance(ipd);
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* static */
|
2015-10-31 00:51:35 +00:00
|
|
|
const RedCyan& RedCyan::getInstance(FLOATTYPE ipd)
|
2015-10-26 13:08:18 +00:00
|
|
|
{
|
|
|
|
static RedCyan instance(ipd);
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} /* namespace s3d */
|