openMSX
Public Member Functions | List of all members
gl::FragmentShader Class Reference

Wrapper around an OpenGL fragment shader: a program executed on the GPU that computes the colors of pixels. More...

#include <GLUtil.hh>

Inheritance diagram for gl::FragmentShader:
Inheritance graph
[legend]
Collaboration diagram for gl::FragmentShader:
Collaboration graph
[legend]

Public Member Functions

 FragmentShader (std::string_view filename)
 Instantiates a fragment shader.
 
 FragmentShader (std::string_view header, std::string_view filename)
 
- Public Member Functions inherited from gl::Shader
 Shader (const Shader &)=delete
 
 Shader (Shader &&)=delete
 
Shaderoperator= (const Shader &)=delete
 
Shaderoperator= (Shader &&)=delete
 
bool isOK () const
 Returns true iff this shader is loaded and compiled without errors.
 

Additional Inherited Members

- Protected Member Functions inherited from gl::Shader
 Shader (GLenum type, std::string_view filename)
 Instantiates a shader.
 
 Shader (GLenum type, std::string_view header, std::string_view filename)
 
 ~Shader ()
 

Detailed Description

Wrapper around an OpenGL fragment shader: a program executed on the GPU that computes the colors of pixels.

Definition at line 383 of file GLUtil.hh.

Constructor & Destructor Documentation

◆ FragmentShader() [1/2]

gl::FragmentShader::FragmentShader ( std::string_view  filename)
inlineexplicit

Instantiates a fragment shader.

Parameters
filenameThe GLSL source code for the shader.

Definition at line 389 of file GLUtil.hh.

◆ FragmentShader() [2/2]

gl::FragmentShader::FragmentShader ( std::string_view  header,
std::string_view  filename 
)
inline

Definition at line 391 of file GLUtil.hh.


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