3D Graphics Engine for ESP32
 
Loading...
Searching...
No Matches
Ragot::Fragment_Shader Class Reference

Class for managing an OpenGL fragment shader. More...

#include <Shader_Program.hpp>

Inheritance diagram for Ragot::Fragment_Shader:
Inheritance graph
Collaboration diagram for Ragot::Fragment_Shader:
Collaboration graph

Public Member Functions

 Fragment_Shader (const vector< string > &source_code)
 Constructor for the Fragment_Shader class.
 
- Public Member Functions inherited from Ragot::Shader
 Shader ()=delete
 Deleted default constructor.
 
 ~Shader ()
 Destructor for the Shader class.
 
GLuint get_id () const
 Gets the shader ID.
 
string * get_error ()
 Gets the compilation error message.
 
bool is_ok () const
 Checks if the shader is compiled successfully.
 

Additional Inherited Members

- Protected Member Functions inherited from Ragot::Shader
 Shader (const vector< string > &source_code, GLenum type)
 Constructor for the Shader class.
 
GLuint compile_shader ()
 Compiles the shader.
 
void show_compilation_error ()
 Displays compilation errors.
 

Detailed Description

Class for managing an OpenGL fragment shader.

Constructor & Destructor Documentation

◆ Fragment_Shader()

Ragot::Fragment_Shader::Fragment_Shader ( const vector< string > & source_code)
inline

Constructor for the Fragment_Shader class.

Parameters
source_codeVector of fragment shader source code.
Here is the call graph for this function:

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