public void SetTechnique(ScreenshotTechniqueEnum technique) { switch (technique) { case ScreenshotTechniqueEnum.Default: m_D3DEffect.Technique = m_defaultTechnique; break; case ScreenshotTechniqueEnum.Color: m_D3DEffect.Technique = m_colorTechnique; break; case ScreenshotTechniqueEnum.HDR: m_D3DEffect.Technique = m_hdrTechnique; break; case ScreenshotTechniqueEnum.Alpha: m_D3DEffect.Technique = m_alphaTechnique; break; case ScreenshotTechniqueEnum.DepthToAlpha: m_D3DEffect.Technique = m_depthToAlpha; break; case ScreenshotTechniqueEnum.LinearScale: m_D3DEffect.Technique = m_linearTechnique; break; default: throw new MyMwcExceptionApplicationShouldNotGetHere(); } }
public void SetTechnique(ScreenshotTechniqueEnum technique) { switch (technique) { case ScreenshotTechniqueEnum.Default: m_D3DEffect.Technique = m_defaultTechnique; break; case ScreenshotTechniqueEnum.Color: m_D3DEffect.Technique = m_colorTechnique; break; case ScreenshotTechniqueEnum.HDR: m_D3DEffect.Technique = m_hdrTechnique; break; case ScreenshotTechniqueEnum.Alpha: m_D3DEffect.Technique = m_alphaTechnique; break; case ScreenshotTechniqueEnum.DepthToAlpha: m_D3DEffect.Technique = m_depthToAlpha; break; case ScreenshotTechniqueEnum.LinearScale: m_D3DEffect.Technique = m_linearTechnique; break; case ScreenshotTechniqueEnum.ColorizeTexture: m_D3DEffect.Technique = m_colorizeTextureTechnique; break; default: throw new InvalidBranchException(); } }