// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trademarks. This License does not grant permission to use the trade // names, trademarks, service marks, or product names of the Licensor // and its affiliates, except as required to comply with Section 4(c) of // the License and to reproduce the content of the NOTICE file. // // You may obtain a copy of the Apache License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the Apache License with the above modification is // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the Apache License for the specific // language governing permissions and limitations under the Apache License. // #include #include #include #include #include #include "pxr/usdImaging/usdImagingGL/renderParams.h" using namespace boost::python; PXR_NAMESPACE_USING_DIRECTIVE void wrapRenderParams() { // Wrap the DrawMode enum. Accessible as UsdImagingGL.DrawMode enum_("DrawMode") .value("DRAW_POINTS", UsdImagingGLDrawMode::DRAW_POINTS) .value("DRAW_WIREFRAME", UsdImagingGLDrawMode::DRAW_WIREFRAME) .value("DRAW_WIREFRAME_ON_SURFACE", UsdImagingGLDrawMode::DRAW_WIREFRAME_ON_SURFACE) .value("DRAW_SHADED_FLAT", UsdImagingGLDrawMode::DRAW_SHADED_FLAT) .value("DRAW_SHADED_SMOOTH", UsdImagingGLDrawMode::DRAW_SHADED_SMOOTH) .value("DRAW_GEOM_ONLY", UsdImagingGLDrawMode::DRAW_GEOM_ONLY) .value("DRAW_GEOM_FLAT", UsdImagingGLDrawMode::DRAW_GEOM_FLAT) .value("DRAW_GEOM_SMOOTH", UsdImagingGLDrawMode::DRAW_GEOM_SMOOTH) ; // Wrap the CullStyle enum. Accessible as UsdImagingGL.CullStyle enum_("CullStyle") .value("CULL_STYLE_NOTHING", UsdImagingGLCullStyle::CULL_STYLE_NOTHING) .value("CULL_STYLE_BACK", UsdImagingGLCullStyle::CULL_STYLE_BACK) .value("CULL_STYLE_FRONT", UsdImagingGLCullStyle::CULL_STYLE_FRONT) .value("CULL_STYLE_BACK_UNLESS_DOUBLE_SIDED", UsdImagingGLCullStyle::CULL_STYLE_BACK_UNLESS_DOUBLE_SIDED) ; // Wrap the UsdImagingGLRenderParams struct. Accessible as // UsdImagingGL.RenderParams using Params = UsdImagingGLRenderParams; class_("RenderParams", "Render parameters") .def_readwrite("frame", &Params::frame) .def_readwrite("complexity", &Params::complexity) .def_readwrite("drawMode", &Params::drawMode) .def_readwrite("showGuides", &Params::showGuides) .def_readwrite("showRender", &Params::showRender) .def_readwrite("showProxy", &Params::showProxy) .def_readwrite("forceRefresh", &Params::forceRefresh) .def_readwrite("cullStyle", &Params::cullStyle) .def_readwrite("enableIdRender", &Params::enableIdRender) .def_readwrite("enableLighting", &Params::enableLighting) .def_readwrite("enableSampleAlphaToCoverage", &Params::enableSampleAlphaToCoverage) .def_readwrite("applyRenderState", &Params::applyRenderState) .def_readwrite("gammaCorrectColors", &Params::gammaCorrectColors) .def_readwrite("overrideColor", &Params::overrideColor) .def_readwrite("wireframeColor", &Params::wireframeColor) .def_readwrite("clipPlanes", &Params::clipPlanes) .def_readwrite("highlight", &Params::highlight) .def_readwrite("enableSceneMaterials", &Params::enableSceneMaterials) .def_readwrite("enableUsdDrawModes", &Params::enableUsdDrawModes) .def_readwrite("colorCorrectionMode", &Params::colorCorrectionMode) .def_readwrite("clearColor", &Params::clearColor) .def_readwrite("lut3dSizeOCIO", &Params::lut3dSizeOCIO) ; }