1 #ifndef DALI_INTERNAL_UPDATE_RENDERING_STENCIL_PARAMETERS_H
2 #define DALI_INTERNAL_UPDATE_RENDERING_STENCIL_PARAMETERS_H
4 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #include <dali/public-api/rendering/renderer.h>
29 * @brief Struct to encapsulate stencil parameters required for control of the stencil buffer.
31 struct StencilParameters
33 StencilParameters( RenderMode::Type renderMode, StencilFunction::Type stencilFunction, int stencilFunctionMask,
34 int stencilFunctionReference, int stencilMask, StencilOperation::Type stencilOperationOnFail,
35 StencilOperation::Type stencilOperationOnZFail, StencilOperation::Type stencilOperationOnZPass )
36 : stencilFunctionMask ( stencilFunctionMask ),
37 stencilFunctionReference ( stencilFunctionReference ),
38 stencilMask ( stencilMask ),
39 renderMode ( renderMode ),
40 stencilFunction ( stencilFunction ),
41 stencilOperationOnFail ( stencilOperationOnFail ),
42 stencilOperationOnZFail ( stencilOperationOnZFail ),
43 stencilOperationOnZPass ( stencilOperationOnZPass )
47 int stencilFunctionMask; ///< The stencil function mask
48 int stencilFunctionReference; ///< The stencil function reference
49 int stencilMask; ///< The stencil mask
50 RenderMode::Type renderMode:3; ///< The render mode
51 StencilFunction::Type stencilFunction:3; ///< The stencil function
52 StencilOperation::Type stencilOperationOnFail:3; ///< The stencil operation for stencil test fail
53 StencilOperation::Type stencilOperationOnZFail:3; ///< The stencil operation for depth test fail
54 StencilOperation::Type stencilOperationOnZPass:3; ///< The stencil operation for depth test pass
58 } // namespace SceneGraph
60 } // namespace Interanl
64 #endif //DALI_INTERNAL_UPDATE_RENDERING_STENCIL_PARAMETERS_H