gtsam_points
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
9public:
10 IndexedPointCloudBuffer(const std::shared_ptr<const glk::PointCloudBuffer>& cloud_buffer, const unsigned int* indices, int num_indices);
11 IndexedPointCloudBuffer(const std::shared_ptr<const glk::PointCloudBuffer>& cloud_buffer, const std::vector<unsigned int>& indices);
12
13 template <typename Integral>
14 IndexedPointCloudBuffer(const std::shared_ptr<const glk::PointCloudBuffer>& cloud_buffer, const Integral* indices, int num_indices);
15 template <typename Integral>
16 IndexedPointCloudBuffer(const std::shared_ptr<const glk::PointCloudBuffer>& cloud_buffer, const std::vector<Integral>& indices);
17
18 virtual ~IndexedPointCloudBuffer() override;
19
20 virtual void draw(glk::GLSLShader& shader) const override;
21
22 GLuint ebo_id() const;
23
24 int size() const { return num_indices; }
25
26private:
27 std::shared_ptr<const glk::PointCloudBuffer> cloud_buffer;
28
29 int num_indices;
30 GLuint ebo;
31};
32} // namespace glk
33
34#endif
Definition drawable.hpp:12
Definition glsl_shader.hpp:20
Definition indexed_pointcloud_buffer.hpp:8
IndexedPointCloudBuffer(const std::shared_ptr< const glk::PointCloudBuffer > &cloud_buffer, const unsigned int *indices, int num_indices)
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)
int size() const
Definition indexed_pointcloud_buffer.hpp:24
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
std::enable_if_t< needs_aligned_allocator< T >::value, std::shared_ptr< T > > make_shared(Args &&... args)
Definition make_shared.hpp:20