Developer documentation
Version 3.0.3-105-gd3941f44
MR::GUI::DWI::Renderer::Shader Class Reference

#include "gui/dwi/renderer.h"

Inheritance diagram for MR::GUI::DWI::Renderer::Shader:
MR::GUI::GL::Shader::Program

Public Member Functions

 Shader ()
 
void start (mode_t mode, bool use_lighting, bool colour_by_direction, bool hide_neg_values, bool orthographic, bool colour_relative_to_projection)
 
- Public Member Functions inherited from MR::GUI::GL::Shader::Program
 Program ()
 
 Program (Program &&other)
 
 Program (const Program &)=delete
 
Programoperator= (const Program &)=delete
 
Programoperator= (Program &&other)
 
 ~Program ()
 
void clear ()
 
 operator GLuint () const
 
template<GLint TYPE>
void attach (const Object< TYPE > &object)
 
template<GLint TYPE>
void detach (const Object< TYPE > &object)
 
void link ()
 
void start () const
 
void debug () const
 

Protected Member Functions

std::string vertex_shader_source () const
 
std::string geometry_shader_source () const
 
std::string fragment_shader_source () const
 

Protected Attributes

mode_t mode_
 
bool use_lighting_
 
bool colour_by_direction_
 
bool hide_neg_values_
 
bool orthographic_
 
bool colour_relative_to_projection_
 
- Protected Attributes inherited from MR::GUI::GL::Shader::Program
GLuint index_
 

Additional Inherited Members

- Static Public Member Functions inherited from MR::GUI::GL::Shader::Program
static void stop ()
 

Detailed Description

Definition at line 103 of file renderer.h.

Constructor & Destructor Documentation

◆ Shader()

MR::GUI::DWI::Renderer::Shader::Shader ( )
inline

Definition at line 105 of file renderer.h.

Member Function Documentation

◆ fragment_shader_source()

std::string MR::GUI::DWI::Renderer::Shader::fragment_shader_source ( ) const
protected

◆ geometry_shader_source()

std::string MR::GUI::DWI::Renderer::Shader::geometry_shader_source ( ) const
protected

◆ start()

void MR::GUI::DWI::Renderer::Shader::start ( mode_t  mode,
bool  use_lighting,
bool  colour_by_direction,
bool  hide_neg_values,
bool  orthographic,
bool  colour_relative_to_projection 
)

◆ vertex_shader_source()

std::string MR::GUI::DWI::Renderer::Shader::vertex_shader_source ( ) const
protected

Member Data Documentation

◆ colour_by_direction_

bool MR::GUI::DWI::Renderer::Shader::colour_by_direction_
protected

Definition at line 109 of file renderer.h.

◆ colour_relative_to_projection_

bool MR::GUI::DWI::Renderer::Shader::colour_relative_to_projection_
protected

Definition at line 109 of file renderer.h.

◆ hide_neg_values_

bool MR::GUI::DWI::Renderer::Shader::hide_neg_values_
protected

Definition at line 109 of file renderer.h.

◆ mode_

mode_t MR::GUI::DWI::Renderer::Shader::mode_
protected

Definition at line 108 of file renderer.h.

◆ orthographic_

bool MR::GUI::DWI::Renderer::Shader::orthographic_
protected

Definition at line 109 of file renderer.h.

◆ use_lighting_

bool MR::GUI::DWI::Renderer::Shader::use_lighting_
protected

Definition at line 109 of file renderer.h.


The documentation for this class was generated from the following file: