Hymn to Beauty
C++ 3D Engine
Video::OpenGLShader Class Reference

OpenGL implementation of Shader. More...

#include <OpenGLShader.hpp>

Inheritance diagram for Video::OpenGLShader:
Video::Shader

Public Member Functions

 OpenGLShader (const ShaderSource &shaderSource, Type type)
 Create new OpenGL shader. More...
 
 ~OpenGLShader () final
 Destructor. More...
 
GLuint GetShaderID () const
 Get shader ID. More...
 
const ShaderSource::ReflectionInfo & GetReflectionInfo () const
 Get reflection info. More...
 
- Public Member Functions inherited from Video::Shader
 Shader ()
 Create a new shader. More...
 
virtual ~Shader ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from Video::Shader
enum class  Type { VERTEX_SHADER , FRAGMENT_SHADER , COMPUTE_SHADER }
 The type of shader. More...
 

Detailed Description

OpenGL implementation of Shader.

Constructor & Destructor Documentation

◆ OpenGLShader()

Video::OpenGLShader::OpenGLShader ( const ShaderSource &  shaderSource,
Type  type 
)

Create new OpenGL shader.

Parameters
shaderSourceThe source of the shader, generated by the shader processor.
typeThe type of shader to create.

◆ ~OpenGLShader()

Video::OpenGLShader::~OpenGLShader ( )
final

Destructor.

Member Function Documentation

◆ GetReflectionInfo()

const ShaderSource::ReflectionInfo & Video::OpenGLShader::GetReflectionInfo ( ) const

Get reflection info.

Returns
The reflection info generated by the shader processor.

◆ GetShaderID()

GLuint Video::OpenGLShader::GetShaderID ( ) const

Get shader ID.

Used when linking a ShaderProgram.

Returns
Shader identifier

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