openMSX
Public Member Functions | List of all members
openmsx::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 openmsx::FragmentShader:
Inheritance graph
[legend]
Collaboration diagram for openmsx::FragmentShader:
Collaboration graph
[legend]

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from openmsx::Shader
 Shader (GLenum type, const std::string &filename)
 Instantiates a shader. More...
 
 Shader (GLenum type, const std::string &header, const std::string &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 426 of file GLUtil.hh.

Constructor & Destructor Documentation

openmsx::FragmentShader::FragmentShader ( const std::string &  filename)
explicit

Instantiates a fragment shader.

Parameters
filenameThe GLSL source code for the shader.

Definition at line 298 of file GLUtil.cc.

openmsx::FragmentShader::FragmentShader ( const std::string &  header,
const std::string &  filename 
)

Definition at line 303 of file GLUtil.cc.


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