Cumulia Illustrator Rendering Engine v1.0.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
vertices.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-05-01
15// Version V1.0.0
16//##################################################################################################
17
18#pragma once
19
20#include "../variant/typedarray.h"
21#include "../object/object.h"
22
23#include <memory>
24
25namespace cil
26{
28 class Vertices : public Object
29 {
30 public:
31 std::shared_ptr<ArrayBuffer> buffer;
32 int offset;
33 unsigned int stride;
34 unsigned int divisor;
35
36 Vertices(std::shared_ptr<ArrayBuffer> buffer,
37 int offset = 0,
38 unsigned int stride = 0,
39 unsigned int divisor = 0);
40 };
41}
Definition object.h:23
The Vertices class represents a vertex buffer, which is a block of memory on the GPU that stores vert...
Definition vertices.h:29
unsigned int divisor
This member stores an integer value used for instanced rendering. In instanced rendering,...
Definition vertices.h:34
int offset
This memeber stores an integer value representing an offset(in bytes) from the beginning of the buffe...
Definition vertices.h:32
unsigned int stride
This member stores an integer value representing the gap(in bytes) between consecutive vertices in th...
Definition vertices.h:33
std::shared_ptr< ArrayBuffer > buffer
This member holds a shared pointer to a ArrayBuffer class. It represents an array of 32-bit floating ...
Definition vertices.h:31
Vertices(std::shared_ptr< ArrayBuffer > buffer, int offset=0, unsigned int stride=0, unsigned int divisor=0)
Definition decal.h:23