iridescence
Loading...
Searching...
No Matches
indexed_pointcloud_buffer.hpp
Go to the documentation of this file.
1#ifndef GLK_INDEXED_POINTCLOUD_BUFFER_HPP
2#define GLK_INDEXED_POINTCLOUD_BUFFER_HPP
3
5
6namespace glk {
7
11public:
16 IndexedPointCloudBuffer(const std::shared_ptr<const glk::PointCloudBuffer>& cloud_buffer, const unsigned int* indices, int num_indices);
17
21 IndexedPointCloudBuffer(const std::shared_ptr<const glk::PointCloudBuffer>& cloud_buffer, const std::vector<unsigned int>& indices);
22
23 template <typename Integral>
24 IndexedPointCloudBuffer(const std::shared_ptr<const glk::PointCloudBuffer>& cloud_buffer, const Integral* indices, int num_indices);
25
26 template <typename Integral>
27 IndexedPointCloudBuffer(const std::shared_ptr<const glk::PointCloudBuffer>& cloud_buffer, const std::vector<Integral>& indices);
28
29 virtual ~IndexedPointCloudBuffer() override;
30
31 virtual void draw(glk::GLSLShader& shader) const override;
32
33 GLuint ebo_id() const;
34
35 int size() const { return num_indices; }
36
37private:
38 std::shared_ptr<const glk::PointCloudBuffer> cloud_buffer;
39
40 int num_indices;
41 GLuint ebo;
42};
43} // namespace glk
44
45#endif
Definition drawable.hpp:12
GLSLShader is a wrapper for OpenGL shader programs.
Definition glsl_shader.hpp:49
IndexedPointCloudBuffer(const std::shared_ptr< const glk::PointCloudBuffer > &cloud_buffer, const unsigned int *indices, int num_indices)
Constructor.
IndexedPointCloudBuffer(const std::shared_ptr< const glk::PointCloudBuffer > &cloud_buffer, const Integral *indices, int num_indices)
IndexedPointCloudBuffer(const std::shared_ptr< const glk::PointCloudBuffer > &cloud_buffer, const std::vector< unsigned int > &indices)
Constructor.
int size() const
Definition indexed_pointcloud_buffer.hpp:35
virtual ~IndexedPointCloudBuffer() override
IndexedPointCloudBuffer(const std::shared_ptr< const glk::PointCloudBuffer > &cloud_buffer, const std::vector< Integral > &indices)
virtual void draw(glk::GLSLShader &shader) const override
Definition async_buffer_copy.hpp:6