27 #ifndef PXR_USD_IMAGING_USD_IMAGING_GL_RENDER_PARAMS_H 28 #define PXR_USD_IMAGING_USD_IMAGING_GL_RENDER_PARAMS_H 31 #include "pxr/usdImaging/usdImagingGL/api.h" 33 #include "pxr/usd/usd/timeCode.h" 40 PXR_NAMESPACE_OPEN_SCOPE
42 enum class UsdImagingGLDrawMode
46 DRAW_WIREFRAME_ON_SURFACE,
56 enum class UsdImagingGLCullStyle
58 CULL_STYLE_NO_OPINION,
62 CULL_STYLE_BACK_UNLESS_DOUBLE_SIDED,
76 typedef std::vector<GfVec4d> ClipPlanesVector;
80 UsdImagingGLDrawMode drawMode;
86 UsdImagingGLCullStyle cullStyle;
89 bool enableSampleAlphaToCoverage;
90 bool applyRenderState;
91 bool gammaCorrectColors;
96 ClipPlanesVector clipPlanes;
97 bool enableSceneMaterials;
98 bool enableSceneLights;
100 bool enableUsdDrawModes;
115 return !(*
this == other);
120 UsdImagingGLRenderParams::UsdImagingGLRenderParams() :
123 drawMode(UsdImagingGLDrawMode::DRAW_SHADED_SMOOTH),
128 flipFrontFacing(false),
129 cullStyle(UsdImagingGLCullStyle::CULL_STYLE_NOTHING),
130 enableIdRender(false),
131 enableLighting(true),
132 enableSampleAlphaToCoverage(false),
133 applyRenderState(true),
134 gammaCorrectColors(true),
136 overrideColor(.0f, .0f, .0f, .0f),
137 wireframeColor(.0f, .0f, .0f, .0f),
140 enableSceneMaterials(true),
141 enableSceneLights(true),
142 enableUsdDrawModes(true),
152 return frame == other.frame
153 && complexity == other.complexity
154 && drawMode == other.drawMode
155 && showGuides == other.showGuides
156 && showProxy == other.showProxy
157 && showRender == other.showRender
158 && forceRefresh == other.forceRefresh
159 && flipFrontFacing == other.flipFrontFacing
160 && cullStyle == other.cullStyle
161 && enableIdRender == other.enableIdRender
162 && enableLighting == other.enableLighting
163 && enableSampleAlphaToCoverage == other.enableSampleAlphaToCoverage
164 && applyRenderState == other.applyRenderState
165 && gammaCorrectColors == other.gammaCorrectColors
166 && highlight == other.highlight
167 && overrideColor == other.overrideColor
168 && wireframeColor == other.wireframeColor
169 && alphaThreshold == other.alphaThreshold
170 && clipPlanes == other.clipPlanes
171 && enableSceneMaterials == other.enableSceneMaterials
172 && enableSceneLights == other.enableSceneLights
173 && enableUsdDrawModes == other.enableUsdDrawModes
174 && clearColor == other.clearColor
175 && colorCorrectionMode == other.colorCorrectionMode
176 && ocioDisplay == other.ocioDisplay
177 && ocioView == other.ocioView
178 && ocioColorSpace == other.ocioColorSpace
179 && ocioLook == other.ocioLook
180 && lut3dSizeOCIO == other.lut3dSizeOCIO;
183 PXR_NAMESPACE_CLOSE_SCOPE
185 #endif // PXR_USD_IMAGING_USD_IMAGING_GL_RENDER_PARAMS_H
Token for efficient comparison, assignment, and hashing of known strings.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
Basic type for a vector of 4 float components.
Used as an arguments class for various methods in UsdImagingGLEngine.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...