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

#include <GLSLProgram.h>

Public Member Functions

 GLSLUniformBlockBuffer ()
 
 ~GLSLUniformBlockBuffer ()
 
bool initialize (GLSLProgram &program, const std::string &blockName)
 
GLuint checkUniform (const char *name)
 
GLuint checkUniformMatrix (const char *name)
 
void bind (GLSLProgram &program, GLuint bindingPoint)
 
void bindBufferBase (GLuint bindingPoint)
 
void write (GLuint index, float v)
 
void write (GLuint index, const Vector3f &v)
 
void write (GLuint index, const Vector4f &v)
 
void write (GLuint index, const Matrix3f &M)
 
void write (GLuint index, const Matrix4f &M)
 
void write (GLuint index, const Affine3f &T)
 
void flush ()
 

Constructor & Destructor Documentation

◆ GLSLUniformBlockBuffer()

GLSLUniformBlockBuffer::GLSLUniformBlockBuffer ( )

◆ ~GLSLUniformBlockBuffer()

GLSLUniformBlockBuffer::~GLSLUniformBlockBuffer ( )

Member Function Documentation

◆ bind()

void cnoid::GLSLUniformBlockBuffer::bind ( GLSLProgram program,
GLuint  bindingPoint 
)
inline

◆ bindBufferBase()

void cnoid::GLSLUniformBlockBuffer::bindBufferBase ( GLuint  bindingPoint)
inline

◆ checkUniform()

GLuint GLSLUniformBlockBuffer::checkUniform ( const char *  name)
Returns
uniform index

◆ checkUniformMatrix()

GLuint GLSLUniformBlockBuffer::checkUniformMatrix ( const char *  name)

◆ flush()

void cnoid::GLSLUniformBlockBuffer::flush ( )
inline

◆ initialize()

bool GLSLUniformBlockBuffer::initialize ( GLSLProgram program,
const std::string &  blockName 
)

◆ write() [1/6]

void cnoid::GLSLUniformBlockBuffer::write ( GLuint  index,
const Affine3f &  T 
)
inline

◆ write() [2/6]

void cnoid::GLSLUniformBlockBuffer::write ( GLuint  index,
const Matrix3f &  M 
)
inline

◆ write() [3/6]

void cnoid::GLSLUniformBlockBuffer::write ( GLuint  index,
const Matrix4f &  M 
)
inline

◆ write() [4/6]

void cnoid::GLSLUniformBlockBuffer::write ( GLuint  index,
const Vector3f &  v 
)
inline

◆ write() [5/6]

void cnoid::GLSLUniformBlockBuffer::write ( GLuint  index,
const Vector4f &  v 
)
inline

◆ write() [6/6]

void cnoid::GLSLUniformBlockBuffer::write ( GLuint  index,
float  v 
)
inline

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