mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 03:32:02 +08:00
32 lines
820 B
C++
32 lines
820 B
C++
///|/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966, Pavel Mikuš @Godrak
|
|
///|/
|
|
///|/ libvgcode is released under the terms of the AGPLv3 or higher
|
|
///|/
|
|
#ifndef VGCODE_SEGMENTTEMPLATE_HPP
|
|
#define VGCODE_SEGMENTTEMPLATE_HPP
|
|
|
|
#include <cstddef>
|
|
|
|
namespace libvgcode {
|
|
|
|
class SegmentTemplate
|
|
{
|
|
public:
|
|
SegmentTemplate() = default;
|
|
~SegmentTemplate();
|
|
SegmentTemplate(const SegmentTemplate& other) = delete;
|
|
SegmentTemplate(SegmentTemplate&& other) = delete;
|
|
SegmentTemplate& operator = (const SegmentTemplate& other) = delete;
|
|
SegmentTemplate& operator = (SegmentTemplate&& other) = delete;
|
|
|
|
void init();
|
|
void render(size_t count);
|
|
|
|
private:
|
|
unsigned int m_vao_id{ 0 };
|
|
unsigned int m_vbo_id{ 0 };
|
|
};
|
|
|
|
} // namespace libvgcode
|
|
|
|
#endif // VGCODE_SEGMENTTEMPLATE_HPP
|