#include <ShaderWrapper.h>
◆ ~ShaderWrapper()
virtual open3d::visualization::glsl::ShaderWrapper::~ShaderWrapper |
( |
| ) |
|
|
inlinevirtual |
◆ ShaderWrapper() [1/2]
open3d::visualization::glsl::ShaderWrapper::ShaderWrapper |
( |
const ShaderWrapper & |
| ) |
|
|
delete |
◆ ShaderWrapper() [2/2]
open3d::visualization::glsl::ShaderWrapper::ShaderWrapper |
( |
const std::string & |
name | ) |
|
|
inlineprotected |
◆ BindGeometry()
Implemented in open3d::visualization::glsl::RGBDImageShader, open3d::visualization::glsl::SimpleBlackShader, open3d::visualization::glsl::TexturePhongShader, open3d::visualization::glsl::TextureSimpleShader, open3d::visualization::glsl::ImageMaskShader, open3d::visualization::glsl::NormalShader, open3d::visualization::glsl::PhongShader, open3d::visualization::glsl::PickingShader, open3d::visualization::glsl::Simple2DShader, open3d::visualization::glsl::SimpleShader, and open3d::visualization::glsl::ImageShader.
◆ Compile()
virtual bool open3d::visualization::glsl::ShaderWrapper::Compile |
( |
| ) |
|
|
protectedpure virtual |
Function to compile shader In a derived class, this must be declared as final, and called from the constructor.
Implemented in open3d::visualization::glsl::RGBDImageShader, open3d::visualization::glsl::SimpleBlackShader, open3d::visualization::glsl::TexturePhongShader, open3d::visualization::glsl::TextureSimpleShader, open3d::visualization::glsl::ImageMaskShader, open3d::visualization::glsl::NormalShader, open3d::visualization::glsl::PhongShader, open3d::visualization::glsl::PickingShader, open3d::visualization::glsl::Simple2DShader, open3d::visualization::glsl::SimpleShader, and open3d::visualization::glsl::ImageShader.
◆ CompileShaders()
bool open3d::visualization::glsl::ShaderWrapper::CompileShaders |
( |
const char *const |
vertex_shader_code, |
|
|
const char *const |
geometry_shader_code, |
|
|
const char *const |
fragment_shader_code |
|
) |
| |
|
protected |
◆ GetShaderName()
const std::string& open3d::visualization::glsl::ShaderWrapper::GetShaderName |
( |
| ) |
const |
|
inline |
◆ InvalidateGeometry()
void open3d::visualization::glsl::ShaderWrapper::InvalidateGeometry |
( |
| ) |
|
Function to invalidate the geometry (set the dirty flag and release geometry resource)
◆ operator=()
◆ PrintShaderWarning()
void open3d::visualization::glsl::ShaderWrapper::PrintShaderWarning |
( |
const std::string & |
message | ) |
const |
◆ Release()
virtual void open3d::visualization::glsl::ShaderWrapper::Release |
( |
| ) |
|
|
protectedpure virtual |
Function to release resource In a derived class, this must be declared as final, and called from the destructor.
Implemented in open3d::visualization::glsl::RGBDImageShader, open3d::visualization::glsl::SimpleBlackShader, open3d::visualization::glsl::TexturePhongShader, open3d::visualization::glsl::TextureSimpleShader, open3d::visualization::glsl::ImageMaskShader, open3d::visualization::glsl::NormalShader, open3d::visualization::glsl::PhongShader, open3d::visualization::glsl::PickingShader, open3d::visualization::glsl::Simple2DShader, open3d::visualization::glsl::SimpleShader, and open3d::visualization::glsl::ImageShader.
◆ ReleaseProgram()
void open3d::visualization::glsl::ShaderWrapper::ReleaseProgram |
( |
| ) |
|
|
protected |
◆ Render()
Function to render geometry under condition of mode and view The geometry is updated in a passive manner (bind only when needed). Thus this function compiles shaders if not yet, binds geometry if not yet, then do the rendering.
◆ RenderGeometry()
Implemented in open3d::visualization::glsl::RGBDImageShader, open3d::visualization::glsl::SimpleBlackShader, open3d::visualization::glsl::TexturePhongShader, open3d::visualization::glsl::TextureSimpleShader, open3d::visualization::glsl::ImageMaskShader, open3d::visualization::glsl::NormalShader, open3d::visualization::glsl::PhongShader, open3d::visualization::glsl::PickingShader, open3d::visualization::glsl::Simple2DShader, open3d::visualization::glsl::SimpleShader, and open3d::visualization::glsl::ImageShader.
◆ SetShaderName()
void open3d::visualization::glsl::ShaderWrapper::SetShaderName |
( |
const std::string & |
shader_name | ) |
|
|
inlineprotected |
◆ UnbindGeometry()
virtual void open3d::visualization::glsl::ShaderWrapper::UnbindGeometry |
( |
| ) |
|
|
protectedpure virtual |
Implemented in open3d::visualization::glsl::RGBDImageShader, open3d::visualization::glsl::SimpleBlackShader, open3d::visualization::glsl::TexturePhongShader, open3d::visualization::glsl::TextureSimpleShader, open3d::visualization::glsl::ImageMaskShader, open3d::visualization::glsl::NormalShader, open3d::visualization::glsl::PhongShader, open3d::visualization::glsl::PickingShader, open3d::visualization::glsl::Simple2DShader, open3d::visualization::glsl::SimpleShader, and open3d::visualization::glsl::ImageShader.
◆ ValidateProgram()
bool open3d::visualization::glsl::ShaderWrapper::ValidateProgram |
( |
GLuint |
program_index | ) |
|
|
protected |
◆ ValidateShader()
bool open3d::visualization::glsl::ShaderWrapper::ValidateShader |
( |
GLuint |
shader_index | ) |
|
|
protected |
◆ bound_
bool open3d::visualization::glsl::ShaderWrapper::bound_ = false |
|
protected |
◆ compiled_
bool open3d::visualization::glsl::ShaderWrapper::compiled_ = false |
|
protected |
◆ draw_arrays_mode_
GLenum open3d::visualization::glsl::ShaderWrapper::draw_arrays_mode_ = GL_POINTS |
|
protected |
◆ draw_arrays_size_
GLsizei open3d::visualization::glsl::ShaderWrapper::draw_arrays_size_ = 0 |
|
protected |
◆ fragment_shader_
GLuint open3d::visualization::glsl::ShaderWrapper::fragment_shader_ |
|
protected |
◆ geometry_shader_
GLuint open3d::visualization::glsl::ShaderWrapper::geometry_shader_ |
|
protected |
◆ program_
GLuint open3d::visualization::glsl::ShaderWrapper::program_ |
|
protected |
◆ vertex_shader_
GLuint open3d::visualization::glsl::ShaderWrapper::vertex_shader_ |
|
protected |
The documentation for this class was generated from the following files: