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

Wrapper around an OpenGL vertex shader: a program executed on the GPU that computes per-vertex stuff. More...

#include <GLUtil.hh>

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

Public Member Functions

 VertexShader (std::string_view filename)
 Instantiates a vertex shader.
 
 VertexShader (std::string_view header, std::string_view filename)
 
- Public Member Functions inherited from gl::Shader
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 vertex shader: a program executed on the GPU that computes per-vertex stuff.

Definition at line 352 of file GLUtil.hh.

Constructor & Destructor Documentation

◆ VertexShader() [1/2]

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

Instantiates a vertex shader.

Parameters
filenameThe GLSL source code for the shader.

Definition at line 358 of file GLUtil.hh.

◆ VertexShader() [2/2]

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

Definition at line 360 of file GLUtil.hh.


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