2025.6.1
This commit is contained in:
33
exchange/exchangesource/MeshViewer/application/render/ebo.h
Normal file
33
exchange/exchangesource/MeshViewer/application/render/ebo.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/***********************************************************************************************************************
|
||||
*
|
||||
* Copyright (c) 2010 - 2025 by Tech Soft 3D, Inc.
|
||||
* The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., and considered a trade secret
|
||||
* as defined under civil and criminal statutes. Tech Soft 3D shall pursue its civil and criminal remedies in the event
|
||||
* of unauthorized use or misappropriation of its trade secrets. Use of this information by anyone other than authorized
|
||||
* employees of Tech Soft 3D, Inc. is granted only under a written non-disclosure agreement, expressly prescribing the
|
||||
* scope and manner of such use.
|
||||
*
|
||||
***********************************************************************************************************************/
|
||||
|
||||
#ifndef EBO_H
|
||||
#define EBO_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <glad/glad.h>
|
||||
|
||||
using array_of_indices = std::vector<unsigned int>;
|
||||
class EBO
|
||||
{
|
||||
public:
|
||||
GLuint id;
|
||||
// Mesh mono color or with vertex color
|
||||
EBO(const array_of_indices& indices);
|
||||
// Mesh sort by faces
|
||||
EBO(const std::vector<array_of_indices>& array_of_indices);
|
||||
|
||||
void Bind();
|
||||
void Unbind();
|
||||
void Delete();
|
||||
};
|
||||
#endif // EBO_H
|
||||
Reference in New Issue
Block a user