Cumulia Illustrator Rendering Engine v2.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
pass.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 2025-08-05
15// Version V2.1.0
16//##################################################################################################
17
18#pragma once
19
20#include "../object/object.h"
21#include "../variant/types.h"
22#include "../primitive/types.h"
23#include "types.h"
24
25#include <string>
26
27namespace cil
28{
31 class Pass : public Object
32 {
33 public:
34 std::string name;
35 bool enabled;
40
44
45 enum class UpdateMode
46 {
47 None = 0,
48 Asset = 1,
49 Batch = 2,
50 Trans = 4,
51 All = Asset | Batch | Trans
52 };
53
55
60 };
61
63}
Definition object.h:23
The Pass class represents a rendering pass within a graphics pipeline.
Definition pass.h:32
CameraPtr camera
This member holds a shared pointer to a Camera object which the current pass uses for rendering.
Definition pass.h:37
int transVersion
Definition pass.h:43
UpdateMode
Definition pass.h:46
BackgroundPtr background
This member holds a shared pointer to a Background object which defines the scene background.
Definition pass.h:36
void updateTrans()
void updateBatch()
NodePtr node
This member holds a shared pointer to a Node object which represents the rendering objects of the cur...
Definition pass.h:38
void update(UpdateMode mode=UpdateMode::All)
TargetPtr target
This member holds a shared pointer to a Target object which stores the rendering results,...
Definition pass.h:39
std::string name
This memeber stores the name of the pass.
Definition pass.h:34
int assetVersion
Definition pass.h:41
void updateAsset()
int batchVersion
Definition pass.h:42
bool enabled
This member indicates whether the pass is currently enabled. Disabled passes are skipped during rende...
Definition pass.h:35
Definition decal.h:23
std::shared_ptr< BoundingBox > BoundingBoxPtr
Definition types.h:36
BoundingBoxPtr getBoundingBox(const GeometryPtr &geometry, const std::string &attribName="positions")
std::shared_ptr< Node > NodePtr
Definition types.h:36
std::shared_ptr< Pass > PassPtr
Definition types.h:40
std::shared_ptr< Camera > CameraPtr
Definition types.h:28
std::shared_ptr< Background > BackgroundPtr
Definition types.h:28
std::shared_ptr< Target > TargetPtr
Definition types.h:90