Cumulia Illustrator Rendering Engine v2.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
indices.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
23#include <string>
24
25namespace cil
26{
28 class Indices : public Object
29 {
30 protected:
31 std::string m_className;
32
33 public:
35 enum class Mode
36 {
40 LINES,
43 POINTS
44 };
45
47 int count;
49
51 int count,
52 int primCount);
53
54 const std::string& className() const;
55 };
56
57 class ArrayIndices : public Indices
58 {
59 public:
60 int first;
61
63 int count,
64 int first = 0,
65 int primCount = 0);
66 };
67
69 class ElementIndices : public Indices
70 {
71 public:
73 int offset;
74
77 int count,
78 int offset = 0,
79 int primCount = 0);
80 };
81}
Definition indices.h:58
ArrayIndices(Indices::Mode mode, int count, int first=0, int primCount=0)
int first
Definition indices.h:60
The ElementIndices class represents a indices buffer, which is a block of memory that stores the inde...
Definition indices.h:70
ArrayBufferPtr buffer
Definition indices.h:72
int offset
Definition indices.h:73
ElementIndices(Indices::Mode mode, const ArrayBufferPtr &buffer, int count, int offset=0, int primCount=0)
The Indices class represents the connecting relationship between vertices.
Definition indices.h:29
std::string m_className
Definition indices.h:31
Mode
The Mode enumeration defines identifiers corresponding to different ways of rendering geometric primi...
Definition indices.h:36
int primCount
Definition indices.h:48
const std::string & className() const
Mode mode
This member stores the primitive mode of this Indices object.
Definition indices.h:46
Indices(Indices::Mode mode, int count, int primCount)
int count
This member stores the count of the primitive in this Indices object.
Definition indices.h:47
Definition object.h:23
Definition decal.h:23
std::shared_ptr< ArrayBuffer > ArrayBufferPtr
Definition types.h:102