#include <GlslProg.h>
|
void | setShaderSource (const DataSourceRef &dataSource, std::string *shaderSourceDest, fs::path *shaderPathDest) |
|
void | setShaderSource (const std::string &source, std::string *shaderSourceDest, fs::path *shaderPathDest) |
|
cinder::gl::GlslProg::Format::Format |
( |
| ) |
|
Defaults to specifying location 0 for the geom::Attrib::POSITION
semantic.
Supplies the GLSL source for the vertex shader.
GlslProg::Format & cinder::gl::GlslProg::Format::vertex |
( |
const std::string & |
vertexShader | ) |
|
Supplies the GLSL source for the vertex shader.
Supplies the GLSL source for the fragment shader.
GlslProg::Format & cinder::gl::GlslProg::Format::fragment |
( |
const std::string & |
vertexShader | ) |
|
Supplies the GLSL source for the fragment shader.
const std::string& cinder::gl::GlslProg::Format::getVertex |
( |
| ) |
const |
Returns the GLSL source for the vertex shader. Returns an empty string if it isn't present.
const std::string& cinder::gl::GlslProg::Format::getFragment |
( |
| ) |
const |
Returns the GLSL source for the fragment shader. Returns an empty string if it isn't present.
GlslProg::Format & cinder::gl::GlslProg::Format::fragDataLocation |
( |
GLuint |
colorNumber, |
|
|
const std::string & |
name |
|
) |
| |
Specifies a binding for a user-defined varying out variable to a fragment shader color number. Analogous to glBindFragDataLocation.
const std::map<std::string,GLuint>& cinder::gl::GlslProg::Format::getFragDataLocations |
( |
| ) |
const |
Returns the map between output variable names and their bound color numbers.
Specifies an attribute name to map to a specific semantic.
Specifies a uniform name to map to a specific semantic.
GlslProg::Format & cinder::gl::GlslProg::Format::attribLocation |
( |
const std::string & |
attribName, |
|
|
GLint |
location |
|
) |
| |
Specifies a location for a specific named attribute.
Specifies a location for a semantic.
bool cinder::gl::GlslProg::Format::isPreprocessingEnabled |
( |
| ) |
const |
Returns whether preprocessing is enabled or not, e.g. #include
statements. true.
void cinder::gl::GlslProg::Format::setPreprocessingEnabled |
( |
bool |
enable | ) |
|
Sets whether preprocessing is enabled or not, e.g. #include
statements.
Format& cinder::gl::GlslProg::Format::preprocess |
( |
bool |
enable | ) |
|
Sets whether preprocessing is enabled or not, e.g. #include
statements.
GlslProg::Format & cinder::gl::GlslProg::Format::define |
( |
const std::string & |
define | ) |
|
Specifies a define directive to add to the shader sources.
GlslProg::Format & cinder::gl::GlslProg::Format::define |
( |
const std::string & |
define, |
|
|
const std::string & |
value |
|
) |
| |
Specifies a define directive to add to the shader sources.
GlslProg::Format & cinder::gl::GlslProg::Format::defineDirectives |
( |
const std::vector< std::string > & |
defines | ) |
|
Specifies a series of define directives to add to the shader sources.
Specifies the version directive to add to the shader sources.
int cinder::gl::GlslProg::Format::getVersion |
( |
| ) |
const |
Returns the version number associated with this GlslProg, or 0 if none was speciefied.
const std::vector<std::string>& cinder::gl::GlslProg::Format::getDefineDirectives |
( |
| ) |
const |
Returns the list of define
directives.
Format& cinder::gl::GlslProg::Format::addPreprocessorSearchDirectory |
( |
const fs::path & |
dir | ) |
|
const std::string& cinder::gl::GlslProg::Format::getLabel |
( |
| ) |
const |
Returns the debugging label associated with the Program.
void cinder::gl::GlslProg::Format::setLabel |
( |
const std::string & |
label | ) |
|
Sets the debugging label associated with the Program. Calls glObjectLabel() when available.
Format& cinder::gl::GlslProg::Format::label |
( |
const std::string & |
label | ) |
|
Sets the debugging label associated with the Program. Calls glObjectLabel() when available.
const fs::path& cinder::gl::GlslProg::Format::getVertexPath |
( |
| ) |
const |
Returns the fs::path for the vertex shader. Returns an empty fs::path if it isn't present.
const fs::path& cinder::gl::GlslProg::Format::getFragmentPath |
( |
| ) |
const |
Returns the fs::path for the fragment shader. Returns an empty fs::path if it isn't present.
const std::vector<Uniform>& cinder::gl::GlslProg::Format::getUniforms |
( |
| ) |
const |
const std::vector<Attribute>& cinder::gl::GlslProg::Format::getAttributes |
( |
| ) |
const |
std::vector<Uniform>& cinder::gl::GlslProg::Format::getUniforms |
( |
| ) |
|
std::vector<Attribute>& cinder::gl::GlslProg::Format::getAttributes |
( |
| ) |
|
void cinder::gl::GlslProg::Format::setShaderSource |
( |
const DataSourceRef & |
dataSource, |
|
|
std::string * |
shaderSourceDest, |
|
|
fs::path * |
shaderPathDest |
|
) |
| |
|
protected |
void cinder::gl::GlslProg::Format::setShaderSource |
( |
const std::string & |
source, |
|
|
std::string * |
shaderSourceDest, |
|
|
fs::path * |
shaderPathDest |
|
) |
| |
|
protected |
std::string cinder::gl::GlslProg::Format::mVertexShader |
|
protected |
std::string cinder::gl::GlslProg::Format::mFragmentShader |
|
protected |
fs::path cinder::gl::GlslProg::Format::mVertexShaderPath |
|
protected |
fs::path cinder::gl::GlslProg::Format::mFragmentShaderPath |
|
protected |
std::vector<Attribute> cinder::gl::GlslProg::Format::mAttributes |
|
protected |
std::vector<Uniform> cinder::gl::GlslProg::Format::mUniforms |
|
protected |
std::vector<std::string> cinder::gl::GlslProg::Format::mDefineDirectives |
|
protected |
int cinder::gl::GlslProg::Format::mVersion |
|
protected |
bool cinder::gl::GlslProg::Format::mPreprocessingEnabled |
|
protected |
std::string cinder::gl::GlslProg::Format::mLabel |
|
protected |
std::vector<fs::path> cinder::gl::GlslProg::Format::mPreprocessorSearchDirectories |
|
protected |
The documentation for this struct was generated from the following files: