mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-17 14:56:02 +08:00
Sync changes from upstream repository
Co-authored-by: Andrew Le Bihan <andy@mcneel.com> Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Lear <dalelear@mcneel.com> Co-authored-by: David Eränen <david.eranen@mcneel.com> Co-authored-by: Giulio Piacentino <giulio@mcneel.com> Co-authored-by: Greg Arden <greg@mcneel.com> Co-authored-by: Jussi Aaltonen <jussi@mcneel.com> Co-authored-by: kike-garbo <kike@mcneel.com> Co-authored-by: Mikko Oksanen <mikko@mcneel.com> Co-authored-by: Pierre Cuvilliers <pierre@mcneel.com> Co-authored-by: sodermax <max.soderstrom@mcneel.com> Co-authored-by: steve <steve@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com> Co-authored-by: Will Pearson <will@mcneel.com>
This commit is contained in:
@@ -22,12 +22,6 @@
|
||||
#error ON_COMPILING_OPENNURBS must be defined when compiling opennurbs
|
||||
#endif
|
||||
|
||||
// These settings are inside the ON_RDK_RENDERING section.
|
||||
|
||||
#define ON_RDK_GAMMA L"gamma"
|
||||
#define ON_RDK_USE_POST_PROCESS_GAMMA L"use-post-process-gamma"
|
||||
#define ON_RDK_USE_LINEAR_WORKFLOW L"use-linear-workflow"
|
||||
|
||||
class ON_LinearWorkflow::CImpl : public ON_InternalXMLImpl
|
||||
{
|
||||
public:
|
||||
@@ -134,6 +128,16 @@ void ON_LinearWorkflow::SetPostProcessGammaOn(bool on)
|
||||
m_impl->SetParameter(XMLPath(), ON_RDK_USE_POST_PROCESS_GAMMA, on);
|
||||
}
|
||||
|
||||
bool ON_LinearWorkflow::PostProcessFrameBuffer(void) const
|
||||
{
|
||||
return true; // Always on. For possible future use.
|
||||
}
|
||||
|
||||
void ON_LinearWorkflow::SetPostProcessFrameBuffer(bool)
|
||||
{
|
||||
// Always on. Ignore the call.
|
||||
}
|
||||
|
||||
float ON_LinearWorkflow::PostProcessGamma(void) const
|
||||
{
|
||||
return PreProcessGamma();
|
||||
|
||||
Reference in New Issue
Block a user