Cumulia Illustrator Rendering Engine v1.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
background.h
1//##################################################################################################
2//
3// Copyright (c) 2024 Beijing Qiongqi Tech Co.,Ltd. All rights reserved.
4
5// This source code is confidential and proprietary to Beijing Qiongqi Tech Co.,Ltd(The Holder).
6// Any unauthorized use, copying, modification, or distribution of the code is strictly prohibited.
7// Any user shall obtain authorizaition from the Holder before modifying the source code. And the user shall not
8// sublicense, sell, distribute, or transfer the source code, whether in original or modified form, to any third party
9// without the prior written consent of the Holder.
10
11// This copyright notice and permission grant shall be included in all copies or substantial portions of the source code.
12
13// Author Cumulia Illustrator
14// Date 2024-10-31
15// Version V1.1.0
16//##################################################################################################
17
18#pragma once
19
20#include "../variant/vector.h"
21#include "../variant/color.h"
22#include "../variant/integer.h"
23#include "../variant/real.h"
24#include "../object/object.h"
25
26#include <memory>
27
28namespace cil
29{
31 class Background : public Object
32 {
33 private:
34 Background() = delete;
35
36 public:
37 std::shared_ptr<Vector2i> size;
38 std::shared_ptr<Color4f> colorMask;
39 std::shared_ptr<Real> depthMask;
40 std::shared_ptr<Integer> stencilMask;
41 std::shared_ptr<Vector2i> coordinate;
42
43 Background(const std::shared_ptr<Vector2i>& size,
44 const std::shared_ptr<Color4f>& colorMask = nullptr,
45 const std::shared_ptr<Real>& depthMask = nullptr,
46 const std::shared_ptr<Integer>& stencilMask = nullptr,
47 const std::shared_ptr<Vector2i>& coordinate = nullptr);
48 };
49}
The Background class represents the configuration for a background element used in a rendering Pass.
Definition background.h:32
Background(const std::shared_ptr< Vector2i > &size, const std::shared_ptr< Color4f > &colorMask=nullptr, const std::shared_ptr< Real > &depthMask=nullptr, const std::shared_ptr< Integer > &stencilMask=nullptr, const std::shared_ptr< Vector2i > &coordinate=nullptr)
std::shared_ptr< Vector2i > size
This memeber is a shared pointer to a 2D integer vector specifying the size(width and height) of the ...
Definition background.h:37
std::shared_ptr< Color4f > colorMask
This memeber is a shared pointer to the color value with four floats(RGBA) defining the base color of...
Definition background.h:38
std::shared_ptr< Real > depthMask
This memeber is a shared pointer to a Real value used for controlling the depth contributes of the ba...
Definition background.h:39
std::shared_ptr< Integer > stencilMask
This memeber is a shared pointer to a Integer value used for stencil buffer operation in the renderin...
Definition background.h:40
std::shared_ptr< Vector2i > coordinate
This memeber is a shared pointer to a 2D integer vector specifying the screen-space coordinates where...
Definition background.h:41
Definition object.h:23
Definition decal.h:23