Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
GraphRenderer Class Reference
Collaboration diagram for GraphRenderer:

Classes

struct  GraphRendererProps
 

Public Member Functions

 GraphRenderer (ShaderState &st)
 
constexpr GLsizei arrayCompsPerElement () const noexcept
 
bool init (GL &gl, const jau::fraction_timespec &when)
 
constexpr bool initialized () const noexcept
 
void useProgram (GL &gl, bool on)
 
constexpr bool usesNormal () const noexcept
 

Static Public Attributes

static constexpr std::string_view bin_dir = "impl/graph/glsl/bin"
 
static constexpr std::string_view colTexLookupFuncName = "texture2D"
 
static constexpr bool DEBUG_MODE = true
 
static constexpr std::string_view gcuTexture2D = "gcuTexture2D"
 
static constexpr std::string_view GLSL_CONST_SAMPLE_COUNT = "const float sample_count = "
 
static constexpr std::string_view GLSL_DEF_SAMPLE_COUNT = "#define SAMPLE_COUNT "
 
static constexpr std::string_view GLSL_MAIN_BEGIN = "void main (void)\n{\n"
 
static constexpr std::string_view GLSL_PARAM_COMMENT_END = "// Gamp Graph Parameter End\n\n"
 
static constexpr std::string_view GLSL_PARAM_COMMENT_START = "\n// Gamp Graph Parameter Start\n"
 
static constexpr std::string_view GLSL_USE_COLOR_CHANNEL = "#define USE_COLOR_CHANNEL 1\n"
 
static constexpr std::string_view GLSL_USE_COLOR_TEXTURE = "#define USE_COLOR_TEXTURE 1\n"
 
static constexpr std::string_view GLSL_USE_DISCARD = "#define USE_DISCARD 1\n"
 
static constexpr std::string_view GLSL_USE_FRUSTUM_CLIPPING = "#define USE_FRUSTUM_CLIPPING 1\n"
 
static constexpr std::string_view GLSL_USE_LIGHT0 = "#define USE_LIGHT0 1\n"
 
static constexpr std::string_view GLSL_USE_NORMAL_CHANNEL = "#define USE_NORMAL_CHANNEL 1\n"
 
static constexpr std::string_view shader_basename = "curverenderer01"
 
static constexpr std::string_view source_dir = "impl/graph/glsl"
 

Detailed Description

Examples
GraphShapes01.cpp.

Definition at line 76 of file GraphShapes01.cpp.

Constructor & Destructor Documentation

◆ GraphRenderer()

GraphRenderer::GraphRenderer ( ShaderState & st)
inline
Examples
GraphShapes01.cpp.

Definition at line 115 of file GraphShapes01.cpp.

Member Function Documentation

◆ usesNormal()

bool GraphRenderer::usesNormal ( ) const
inlineconstexprnoexcept
Examples
GraphShapes01.cpp.

Definition at line 93 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ arrayCompsPerElement()

GLsizei GraphRenderer::arrayCompsPerElement ( ) const
inlineconstexprnoexcept
Examples
GraphShapes01.cpp.

Definition at line 94 of file GraphShapes01.cpp.

◆ initialized()

bool GraphRenderer::initialized ( ) const
inlineconstexprnoexcept
Examples
GraphShapes01.cpp.

Definition at line 120 of file GraphShapes01.cpp.

◆ init()

bool GraphRenderer::init ( GL & gl,
const jau::fraction_timespec & when )
inline

Definition at line 122 of file GraphShapes01.cpp.

◆ useProgram()

void GraphRenderer::useProgram ( GL & gl,
bool on )
inline
Examples
GraphShapes01.cpp.

Definition at line 258 of file GraphShapes01.cpp.

Member Data Documentation

◆ DEBUG_MODE

bool GraphRenderer::DEBUG_MODE = true
staticconstexpr

Definition at line 96 of file GraphShapes01.cpp.

◆ GLSL_PARAM_COMMENT_START

std::string_view GraphRenderer::GLSL_PARAM_COMMENT_START = "\n// Gamp Graph Parameter Start\n"
staticconstexpr

Definition at line 97 of file GraphShapes01.cpp.

◆ GLSL_PARAM_COMMENT_END

std::string_view GraphRenderer::GLSL_PARAM_COMMENT_END = "// Gamp Graph Parameter End\n\n"
staticconstexpr

Definition at line 98 of file GraphShapes01.cpp.

◆ GLSL_USE_COLOR_CHANNEL

std::string_view GraphRenderer::GLSL_USE_COLOR_CHANNEL = "#define USE_COLOR_CHANNEL 1\n"
staticconstexpr

Definition at line 99 of file GraphShapes01.cpp.

◆ GLSL_USE_NORMAL_CHANNEL

std::string_view GraphRenderer::GLSL_USE_NORMAL_CHANNEL = "#define USE_NORMAL_CHANNEL 1\n"
staticconstexpr

Definition at line 100 of file GraphShapes01.cpp.

◆ GLSL_USE_LIGHT0

std::string_view GraphRenderer::GLSL_USE_LIGHT0 = "#define USE_LIGHT0 1\n"
staticconstexpr

Definition at line 101 of file GraphShapes01.cpp.

◆ GLSL_USE_COLOR_TEXTURE

std::string_view GraphRenderer::GLSL_USE_COLOR_TEXTURE = "#define USE_COLOR_TEXTURE 1\n"
staticconstexpr

Definition at line 102 of file GraphShapes01.cpp.

◆ GLSL_USE_FRUSTUM_CLIPPING

std::string_view GraphRenderer::GLSL_USE_FRUSTUM_CLIPPING = "#define USE_FRUSTUM_CLIPPING 1\n"
staticconstexpr

Definition at line 103 of file GraphShapes01.cpp.

◆ GLSL_DEF_SAMPLE_COUNT

std::string_view GraphRenderer::GLSL_DEF_SAMPLE_COUNT = "#define SAMPLE_COUNT "
staticconstexpr

Definition at line 104 of file GraphShapes01.cpp.

◆ GLSL_CONST_SAMPLE_COUNT

std::string_view GraphRenderer::GLSL_CONST_SAMPLE_COUNT = "const float sample_count = "
staticconstexpr

Definition at line 105 of file GraphShapes01.cpp.

◆ GLSL_MAIN_BEGIN

std::string_view GraphRenderer::GLSL_MAIN_BEGIN = "void main (void)\n{\n"
staticconstexpr

Definition at line 106 of file GraphShapes01.cpp.

◆ gcuTexture2D

std::string_view GraphRenderer::gcuTexture2D = "gcuTexture2D"
staticconstexpr

Definition at line 107 of file GraphShapes01.cpp.

◆ colTexLookupFuncName

std::string_view GraphRenderer::colTexLookupFuncName = "texture2D"
staticconstexpr

Definition at line 108 of file GraphShapes01.cpp.

◆ GLSL_USE_DISCARD

std::string_view GraphRenderer::GLSL_USE_DISCARD = "#define USE_DISCARD 1\n"
staticconstexpr

Definition at line 109 of file GraphShapes01.cpp.

◆ shader_basename

std::string_view GraphRenderer::shader_basename = "curverenderer01"
staticconstexpr

Definition at line 110 of file GraphShapes01.cpp.

◆ source_dir

std::string_view GraphRenderer::source_dir = "impl/graph/glsl"
staticconstexpr

Definition at line 111 of file GraphShapes01.cpp.

◆ bin_dir

std::string_view GraphRenderer::bin_dir = "impl/graph/glsl/bin"
staticconstexpr

Definition at line 112 of file GraphShapes01.cpp.


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