mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-17 07:41:40 +00:00
30 lines
539 B
C++
30 lines
539 B
C++
|
#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 */
|
||
|
const GreenMagenta& GreenMagenta::getInstance(float ipd)
|
||
|
{
|
||
|
static GreenMagenta instance(ipd);
|
||
|
return instance;
|
||
|
}
|
||
|
|
||
|
|
||
|
/* static */
|
||
|
const RedCyan& RedCyan::getInstance(float ipd)
|
||
|
{
|
||
|
static RedCyan instance(ipd);
|
||
|
return instance;
|
||
|
}
|
||
|
|
||
|
|
||
|
} /* namespace s3d */
|