Choreonoid  1.8
Public Member Functions | List of all members
cnoid::GLSLProgram Class Reference

#include <GLSLProgram.h>

Public Member Functions

 GLSLProgram ()
 
 GLSLProgram (const GLSLProgram &)=delete
 
 ~GLSLProgram ()=default
 
GLSLProgramoperator= (const GLSLProgram &)=delete
 
void release ()
 
void loadShader (const char *filename, int shaderType)
 
void link ()
 
void validate ()
 
void use ()
 
GLint handle () const
 
bool isLinked () const
 
GLuint getUniformLocation (const char *name) const
 
GLuint getUniformLocation (const std::string &name) const
 
GLuint getSubroutineIndex (GLenum shaderType, const GLchar *name) const
 
void setUniformSubroutines (GLenum shaderType, GLsizei count, const GLuint *indices)
 

Constructor & Destructor Documentation

◆ GLSLProgram() [1/2]

GLSLProgram::GLSLProgram ( )

◆ GLSLProgram() [2/2]

cnoid::GLSLProgram::GLSLProgram ( const GLSLProgram )
delete

◆ ~GLSLProgram()

cnoid::GLSLProgram::~GLSLProgram ( )
default

Member Function Documentation

◆ getSubroutineIndex()

GLuint cnoid::GLSLProgram::getSubroutineIndex ( GLenum  shaderType,
const GLchar *  name 
) const
inline

◆ getUniformLocation() [1/2]

GLuint cnoid::GLSLProgram::getUniformLocation ( const char *  name) const
inline

◆ getUniformLocation() [2/2]

GLuint cnoid::GLSLProgram::getUniformLocation ( const std::string &  name) const
inline

◆ handle()

GLint cnoid::GLSLProgram::handle ( ) const
inline

◆ isLinked()

bool cnoid::GLSLProgram::isLinked ( ) const
inline

◆ link()

void GLSLProgram::link ( )

◆ loadShader()

void GLSLProgram::loadShader ( const char *  filename,
int  shaderType 
)

◆ operator=()

GLSLProgram& cnoid::GLSLProgram::operator= ( const GLSLProgram )
delete

◆ release()

void GLSLProgram::release ( )

◆ setUniformSubroutines()

void cnoid::GLSLProgram::setUniformSubroutines ( GLenum  shaderType,
GLsizei  count,
const GLuint *  indices 
)
inline

◆ use()

void GLSLProgram::use ( )

◆ validate()

void GLSLProgram::validate ( )

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