glProgramUniform |
Programme uniforme |
|---|---|
| OpenGL | GL/gl.h |
Syntaxe
| void glProgramUniform1f(GLuint program, GLint location, GLfloat v0); |
| void glProgramUniform2f( GLuint program, GLint location, GLfloat v0, GLfloat v1); |
| void glProgramUniform3f( GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); |
| void glProgramUniform4f( GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); |
| void glProgramUniform1i( GLuint program, GLint location, GLint v0); |
| void glProgramUniform2i( GLuint program, GLint location, GLint v0, GLint v1); |
| void glProgramUniform3i( GLuint program, GLint location, GLint v0, GLint v1, GLint v2); |
| void glProgramUniform4i( GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); |
| void glProgramUniform1ui( GLuint program, GLint location, GLuint v0); |
| void glProgramUniform2ui( GLuint program, GLint location, GLuint v0, GLuint v1); |
| void glProgramUniform3ui( GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); |
| void glProgramUniform4ui( GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); |
| void glProgramUniform1fv( GLuint program, GLint location, GLsizei count, const GLfloat *value); |
| void glProgramUniform2fv( GLuint program, GLint location, GLsizei count, const GLfloat *value); |
| void glProgramUniform3fv( GLuint program, GLint location, GLsizei count, const GLfloat *value); |
| void glProgramUniform4fv( GLuint program, GLint location, GLsizei count, const GLfloat *value); |
| void glProgramUniform1iv( GLuint program, GLint location, GLsizei count, const GLint *value); |
| void glProgramUniform2iv( GLuint program, GLint location, GLsizei count, const GLint *value); |
| void glProgramUniform3iv( GLuint program, GLint location, GLsizei count, const GLint *value); |
| void glProgramUniform4iv( GLuint program, GLint location, GLsizei count, const GLint *value); |
| void glProgramUniform1uiv( GLuint program, GLint location, GLsizei count, const GLuint *value); |
| void glProgramUniform2uiv( GLuint program, GLint location, GLsizei count, const GLuint *value); |
| void glProgramUniform3uiv( GLuint program, GLint location, GLsizei count, const GLuint *value); |
| void glProgramUniform4uiv( GLuint program, GLint location, GLsizei count, const GLuint *value); |
| void glProgramUniformMatrix2fv( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| void glProgramUniformMatrix3fv( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| void glProgramUniformMatrix4fv( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| void glProgramUniformMatrix2x3fv( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| void glProgramUniformMatrix3x2fv( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| void glProgramUniformMatrix2x4fv( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| void glProgramUniformMatrix4x2fv( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| void glProgramUniformMatrix3x4fv( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
| void glProgramUniformMatrix4x3fv( GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); |
Description
Cette fonction permet de définir une valeur uniforme (constante pour tous les fragments ou vertex d'un programme shader). Elle permet de mettre à jour une valeur directement dans le programme shader spécifié sans devoir lier le programme au contexte actif.
Dernière mise à jour : Jeudi, le 3 Juillet 2025