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;
110 return !(*
this == other);
115 UsdImagingGLRenderParams::UsdImagingGLRenderParams() :
118 drawMode(UsdImagingGLDrawMode::DRAW_SHADED_SMOOTH),
123 flipFrontFacing(false),
124 cullStyle(UsdImagingGLCullStyle::CULL_STYLE_NOTHING),
125 enableIdRender(false),
126 enableLighting(true),
127 enableSampleAlphaToCoverage(false),
128 applyRenderState(true),
129 gammaCorrectColors(true),
131 overrideColor(.0f, .0f, .0f, .0f),
132 wireframeColor(.0f, .0f, .0f, .0f),
135 enableSceneMaterials(true),
136 enableSceneLights(true),
137 enableUsdDrawModes(true),
147 return frame == other.frame
148 && complexity == other.complexity
149 && drawMode == other.drawMode
150 && showGuides == other.showGuides
151 && showProxy == other.showProxy
152 && showRender == other.showRender
153 && forceRefresh == other.forceRefresh
154 && flipFrontFacing == other.flipFrontFacing
155 && cullStyle == other.cullStyle
156 && enableIdRender == other.enableIdRender
157 && enableLighting == other.enableLighting
158 && enableSampleAlphaToCoverage == other.enableSampleAlphaToCoverage
159 && applyRenderState == other.applyRenderState
160 && gammaCorrectColors == other.gammaCorrectColors
161 && highlight == other.highlight
162 && overrideColor == other.overrideColor
163 && wireframeColor == other.wireframeColor
164 && alphaThreshold == other.alphaThreshold
165 && clipPlanes == other.clipPlanes
166 && enableSceneMaterials == other.enableSceneMaterials
167 && enableSceneLights == other.enableSceneLights
168 && enableUsdDrawModes == other.enableUsdDrawModes
169 && clearColor == other.clearColor
170 && colorCorrectionMode == other.colorCorrectionMode
171 && lut3dSizeOCIO == other.lut3dSizeOCIO;
174 PXR_NAMESPACE_CLOSE_SCOPE
176 #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...