10#ifndef PXR_USD_IMAGING_USD_IMAGING_GL_RENDER_PARAMS_H
11#define PXR_USD_IMAGING_USD_IMAGING_GL_RENDER_PARAMS_H
14#include "pxr/usdImaging/usdImagingGL/api.h"
16#include "pxr/usd/usd/timeCode.h"
24PXR_NAMESPACE_OPEN_SCOPE
26enum class UsdImagingGLDrawMode
30 DRAW_WIREFRAME_ON_SURFACE,
40enum class UsdImagingGLCullStyle
42 CULL_STYLE_NO_OPINION,
46 CULL_STYLE_BACK_UNLESS_DOUBLE_SIDED,
60 using ClipPlanesVector = std::vector<GfVec4d>;
61 using BBoxVector = std::vector<GfBBox3d>;
65 UsdImagingGLDrawMode drawMode;
71 UsdImagingGLCullStyle cullStyle;
73 bool enableSampleAlphaToCoverage;
74 bool applyRenderState;
75 bool gammaCorrectColors;
80 ClipPlanesVector clipPlanes;
81 bool enableSceneMaterials;
82 bool enableSceneLights;
84 bool enableUsdDrawModes;
96 float bboxLineDashSize;
103 return !(*
this == other);
108UsdImagingGLRenderParams::UsdImagingGLRenderParams() :
111 drawMode(UsdImagingGLDrawMode::DRAW_SHADED_SMOOTH),
116 flipFrontFacing(false),
117 cullStyle(UsdImagingGLCullStyle::CULL_STYLE_NOTHING),
118 enableLighting(true),
119 enableSampleAlphaToCoverage(false),
120 applyRenderState(true),
121 gammaCorrectColors(true),
123 overrideColor(.0f, .0f, .0f, .0f),
124 wireframeColor(.0f, .0f, .0f, .0f),
127 enableSceneMaterials(true),
128 enableSceneLights(true),
129 enableUsdDrawModes(true),
141 return frame == other.frame
142 && complexity == other.complexity
143 && drawMode == other.drawMode
144 && showGuides == other.showGuides
145 && showProxy == other.showProxy
146 && showRender == other.showRender
147 && forceRefresh == other.forceRefresh
148 && flipFrontFacing == other.flipFrontFacing
149 && cullStyle == other.cullStyle
150 && enableLighting == other.enableLighting
151 && enableSampleAlphaToCoverage == other.enableSampleAlphaToCoverage
152 && applyRenderState == other.applyRenderState
153 && gammaCorrectColors == other.gammaCorrectColors
154 && highlight == other.highlight
155 && overrideColor == other.overrideColor
156 && wireframeColor == other.wireframeColor
157 && alphaThreshold == other.alphaThreshold
158 && clipPlanes == other.clipPlanes
159 && enableSceneMaterials == other.enableSceneMaterials
160 && enableSceneLights == other.enableSceneLights
161 && enableUsdDrawModes == other.enableUsdDrawModes
162 && clearColor == other.clearColor
163 && colorCorrectionMode == other.colorCorrectionMode
164 && ocioDisplay == other.ocioDisplay
165 && ocioView == other.ocioView
166 && ocioColorSpace == other.ocioColorSpace
167 && ocioLook == other.ocioLook
168 && lut3dSizeOCIO == other.lut3dSizeOCIO
169 && bboxes == other.bboxes
170 && bboxLineColor == other.bboxLineColor
171 && bboxLineDashSize == other.bboxLineDashSize;
174PXR_NAMESPACE_CLOSE_SCOPE
Basic type for a vector of 4 float components.
Token for efficient comparison, assignment, and hashing of known strings.
Used as an arguments class for various methods in UsdImagingGLEngine.
Represent a time value, which may be either numeric, holding a double value, or a sentinel value UsdT...
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...