iridescence
Loading...
Searching...
No Matches
include
glk
splatting.hpp
Go to the documentation of this file.
1
#ifndef GLK_SPLATTING_HPP
2
#define GLK_SPLATTING_HPP
3
4
#include <
glk/drawable.hpp
>
5
6
namespace
glk
{
7
8
class
Texture
;
9
class
PointCloudBuffer
;
10
11
std::shared_ptr<glk::GLSLShader>
create_splatting_shader
();
12
13
class
Splatting
:
public
glk::Drawable
{
14
public
:
15
Splatting
(
const
std::shared_ptr<glk::GLSLShader>& shader =
nullptr
);
16
virtual
~Splatting
();
17
18
void
enable_vertex_radius
();
19
void
disable_vertex_radius
();
20
void
set_point_radius
(
float
r);
21
void
set_texture
(
const
std::shared_ptr<glk::Texture>& texture);
22
void
set_cloud_buffer
(
const
std::shared_ptr<glk::PointCloudBuffer>& cloud_buffer);
23
24
virtual
void
draw
(
glk::GLSLShader
& shader)
const override
;
25
26
private
:
27
int
vert_radius_enabled;
28
float
point_radius;
29
30
std::shared_ptr<glk::GLSLShader> shader;
31
std::shared_ptr<glk::Texture> texture;
32
std::shared_ptr<glk::PointCloudBuffer> cloud_buffer;
33
};
34
35
}
// namespace glk
36
37
#endif
glk::Drawable
Definition
drawable.hpp:12
glk::GLSLShader
GLSLShader is a wrapper for OpenGL shader programs.
Definition
glsl_shader.hpp:49
glk::PointCloudBuffer
Definition
pointcloud_buffer.hpp:22
glk::Splatting::set_texture
void set_texture(const std::shared_ptr< glk::Texture > &texture)
glk::Splatting::set_point_radius
void set_point_radius(float r)
glk::Splatting::disable_vertex_radius
void disable_vertex_radius()
glk::Splatting::~Splatting
virtual ~Splatting()
glk::Splatting::set_cloud_buffer
void set_cloud_buffer(const std::shared_ptr< glk::PointCloudBuffer > &cloud_buffer)
glk::Splatting::Splatting
Splatting(const std::shared_ptr< glk::GLSLShader > &shader=nullptr)
glk::Splatting::enable_vertex_radius
void enable_vertex_radius()
glk::Splatting::draw
virtual void draw(glk::GLSLShader &shader) const override
glk::Texture
Texture class to wrap OpenGL texture object.
Definition
texture.hpp:11
drawable.hpp
glk
Definition
async_buffer_copy.hpp:6
glk::create_splatting_shader
std::shared_ptr< glk::GLSLShader > create_splatting_shader()
Generated by
1.15.0