core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

shaders.h File Reference

#include "glheader.h"
#include "mtypes.h"

Functions

void GLAPIENTRY _mesa_DeleteObjectARB (GLhandleARB obj)
GLhandleARB GLAPIENTRY _mesa_GetHandleARB (GLenum pname)
void GLAPIENTRY _mesa_DetachObjectARB (GLhandleARB, GLhandleARB)
GLhandleARB GLAPIENTRY _mesa_CreateShaderObjectARB (GLenum)
void GLAPIENTRY _mesa_ShaderSourceARB (GLhandleARB, GLsizei, const GLcharARB **, const GLint *)
 Called via glShaderSource() and glShaderSourceARB() API functions.
void GLAPIENTRY _mesa_CompileShaderARB (GLhandleARB)
GLhandleARB GLAPIENTRY _mesa_CreateProgramObjectARB (void)
void GLAPIENTRY _mesa_AttachObjectARB (GLhandleARB, GLhandleARB)
 These are basically just wrappers/adaptors for calling the ctx->Driver.foobar() GLSL-related functions.
void GLAPIENTRY _mesa_LinkProgramARB (GLhandleARB)
void GLAPIENTRY _mesa_UseProgramObjectARB (GLhandleARB)
void GLAPIENTRY _mesa_ValidateProgramARB (GLhandleARB)
void GLAPIENTRY _mesa_Uniform1fARB (GLint, GLfloat)
void GLAPIENTRY _mesa_Uniform2fARB (GLint, GLfloat, GLfloat)
void GLAPIENTRY _mesa_Uniform3fARB (GLint, GLfloat, GLfloat, GLfloat)
void GLAPIENTRY _mesa_Uniform4fARB (GLint, GLfloat, GLfloat, GLfloat, GLfloat)
void GLAPIENTRY _mesa_Uniform1iARB (GLint, GLint)
void GLAPIENTRY _mesa_Uniform2iARB (GLint, GLint, GLint)
void GLAPIENTRY _mesa_Uniform3iARB (GLint, GLint, GLint, GLint)
void GLAPIENTRY _mesa_Uniform4iARB (GLint, GLint, GLint, GLint, GLint)
void GLAPIENTRY _mesa_Uniform1fvARB (GLint, GLsizei, const GLfloat *)
void GLAPIENTRY _mesa_Uniform2fvARB (GLint, GLsizei, const GLfloat *)
void GLAPIENTRY _mesa_Uniform3fvARB (GLint, GLsizei, const GLfloat *)
void GLAPIENTRY _mesa_Uniform4fvARB (GLint, GLsizei, const GLfloat *)
void GLAPIENTRY _mesa_Uniform1ivARB (GLint, GLsizei, const GLint *)
void GLAPIENTRY _mesa_Uniform2ivARB (GLint, GLsizei, const GLint *)
void GLAPIENTRY _mesa_Uniform3ivARB (GLint, GLsizei, const GLint *)
void GLAPIENTRY _mesa_Uniform4ivARB (GLint, GLsizei, const GLint *)
void GLAPIENTRY _mesa_UniformMatrix2fvARB (GLint, GLsizei, GLboolean, const GLfloat *)
void GLAPIENTRY _mesa_UniformMatrix3fvARB (GLint, GLsizei, GLboolean, const GLfloat *)
void GLAPIENTRY _mesa_UniformMatrix4fvARB (GLint, GLsizei, GLboolean, const GLfloat *)
void GLAPIENTRY _mesa_GetObjectParameterfvARB (GLhandleARB, GLenum, GLfloat *)
void GLAPIENTRY _mesa_GetObjectParameterivARB (GLhandleARB, GLenum, GLint *)
void GLAPIENTRY _mesa_GetInfoLogARB (GLhandleARB, GLsizei, GLsizei *, GLcharARB *)
void GLAPIENTRY _mesa_GetAttachedObjectsARB (GLhandleARB, GLsizei, GLsizei *, GLhandleARB *)
GLint GLAPIENTRY _mesa_GetUniformLocationARB (GLhandleARB, const GLcharARB *)
void GLAPIENTRY _mesa_GetActiveUniformARB (GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *)
void GLAPIENTRY _mesa_GetUniformfvARB (GLhandleARB, GLint, GLfloat *)
void GLAPIENTRY _mesa_GetUniformivARB (GLhandleARB, GLint, GLint *)
void GLAPIENTRY _mesa_GetShaderSourceARB (GLhandleARB, GLsizei, GLsizei *, GLcharARB *)
void GLAPIENTRY _mesa_AttachShader (GLuint program, GLuint shader)
GLuint GLAPIENTRY _mesa_CreateShader (GLenum)
GLuint GLAPIENTRY _mesa_CreateProgram (void)
void GLAPIENTRY _mesa_DeleteProgram (GLuint program)
void GLAPIENTRY _mesa_DeleteShader (GLuint shader)
void GLAPIENTRY _mesa_DetachShader (GLuint program, GLuint shader)
void GLAPIENTRY _mesa_GetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj)
void GLAPIENTRY _mesa_GetProgramiv (GLuint program, GLenum pname, GLint *params)
void GLAPIENTRY _mesa_GetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
void GLAPIENTRY _mesa_GetShaderiv (GLuint shader, GLenum pname, GLint *params)
void GLAPIENTRY _mesa_GetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
GLboolean GLAPIENTRY _mesa_IsProgram (GLuint program)
GLboolean GLAPIENTRY _mesa_IsShader (GLuint shader)
void GLAPIENTRY _mesa_UniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
 Non-square UniformMatrix are OpenGL 2.1.
void GLAPIENTRY _mesa_UniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void GLAPIENTRY _mesa_UniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void GLAPIENTRY _mesa_UniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void GLAPIENTRY _mesa_UniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void GLAPIENTRY _mesa_UniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)


Function Documentation

void GLAPIENTRY _mesa_AttachObjectARB ( GLhandleARB  program,
GLhandleARB  shader 
)

These are basically just wrappers/adaptors for calling the ctx->Driver.foobar() GLSL-related functions.

Things are biased toward the OpenGL 2.0 functions rather than the ARB extensions (i.e. the ARB functions are layered on the 2.0 functions).

The general idea here is to allow enough modularity such that a completely different GLSL implemenation can be plugged in and co-exist with Mesa's native GLSL code.

void GLAPIENTRY _mesa_AttachShader ( GLuint  program,
GLuint  shader 
)

void GLAPIENTRY _mesa_CompileShaderARB ( GLhandleARB   ) 

GLuint GLAPIENTRY _mesa_CreateProgram ( void   ) 

GLhandleARB GLAPIENTRY _mesa_CreateProgramObjectARB ( void   ) 

GLuint GLAPIENTRY _mesa_CreateShader ( GLenum   ) 

GLhandleARB GLAPIENTRY _mesa_CreateShaderObjectARB ( GLenum   ) 

void GLAPIENTRY _mesa_DeleteObjectARB ( GLhandleARB  obj  ) 

void GLAPIENTRY _mesa_DeleteProgram ( GLuint  program  ) 

void GLAPIENTRY _mesa_DeleteShader ( GLuint  shader  ) 

void GLAPIENTRY _mesa_DetachObjectARB ( GLhandleARB  ,
GLhandleARB   
)

void GLAPIENTRY _mesa_DetachShader ( GLuint  program,
GLuint  shader 
)

void GLAPIENTRY _mesa_GetActiveUniformARB ( GLhandleARB  ,
GLuint  ,
GLsizei  ,
GLsizei *  ,
GLint *  ,
GLenum *  ,
GLcharARB *   
)

void GLAPIENTRY _mesa_GetAttachedObjectsARB ( GLhandleARB  ,
GLsizei  ,
GLsizei *  ,
GLhandleARB *   
)

void GLAPIENTRY _mesa_GetAttachedShaders ( GLuint  program,
GLsizei  maxCount,
GLsizei *  count,
GLuint *  obj 
)

GLhandleARB GLAPIENTRY _mesa_GetHandleARB ( GLenum  pname  ) 

void GLAPIENTRY _mesa_GetInfoLogARB ( GLhandleARB  ,
GLsizei  ,
GLsizei *  ,
GLcharARB *   
)

void GLAPIENTRY _mesa_GetObjectParameterfvARB ( GLhandleARB  ,
GLenum  ,
GLfloat *   
)

void GLAPIENTRY _mesa_GetObjectParameterivARB ( GLhandleARB  ,
GLenum  ,
GLint *   
)

void GLAPIENTRY _mesa_GetProgramInfoLog ( GLuint  program,
GLsizei  bufSize,
GLsizei *  length,
GLchar *  infoLog 
)

void GLAPIENTRY _mesa_GetProgramiv ( GLuint  program,
GLenum  pname,
GLint *  params 
)

void GLAPIENTRY _mesa_GetShaderInfoLog ( GLuint  shader,
GLsizei  bufSize,
GLsizei *  length,
GLchar *  infoLog 
)

void GLAPIENTRY _mesa_GetShaderiv ( GLuint  shader,
GLenum  pname,
GLint *  params 
)

void GLAPIENTRY _mesa_GetShaderSourceARB ( GLhandleARB  ,
GLsizei  ,
GLsizei *  ,
GLcharARB *   
)

void GLAPIENTRY _mesa_GetUniformfvARB ( GLhandleARB  ,
GLint  ,
GLfloat *   
)

void GLAPIENTRY _mesa_GetUniformivARB ( GLhandleARB  ,
GLint  ,
GLint *   
)

GLint GLAPIENTRY _mesa_GetUniformLocationARB ( GLhandleARB  ,
const GLcharARB *   
)

GLboolean GLAPIENTRY _mesa_IsProgram ( GLuint  program  ) 

GLboolean GLAPIENTRY _mesa_IsShader ( GLuint  shader  ) 

void GLAPIENTRY _mesa_LinkProgramARB ( GLhandleARB   ) 

void GLAPIENTRY _mesa_ShaderSourceARB ( GLhandleARB  shaderObj,
GLsizei  count,
const GLcharARB **  string,
const GLint *  length 
)

Called via glShaderSource() and glShaderSourceARB() API functions.

Basically, concatenate the source code strings into one long string and pass it to ctx->Driver.ShaderSource().

void GLAPIENTRY _mesa_Uniform1fARB ( GLint  ,
GLfloat   
)

void GLAPIENTRY _mesa_Uniform1fvARB ( GLint  ,
GLsizei  ,
const GLfloat *   
)

void GLAPIENTRY _mesa_Uniform1iARB ( GLint  ,
GLint   
)

void GLAPIENTRY _mesa_Uniform1ivARB ( GLint  ,
GLsizei  ,
const GLint *   
)

void GLAPIENTRY _mesa_Uniform2fARB ( GLint  ,
GLfloat  ,
GLfloat   
)

void GLAPIENTRY _mesa_Uniform2fvARB ( GLint  ,
GLsizei  ,
const GLfloat *   
)

void GLAPIENTRY _mesa_Uniform2iARB ( GLint  ,
GLint  ,
GLint   
)

void GLAPIENTRY _mesa_Uniform2ivARB ( GLint  ,
GLsizei  ,
const GLint *   
)

void GLAPIENTRY _mesa_Uniform3fARB ( GLint  ,
GLfloat  ,
GLfloat  ,
GLfloat   
)

void GLAPIENTRY _mesa_Uniform3fvARB ( GLint  ,
GLsizei  ,
const GLfloat *   
)

void GLAPIENTRY _mesa_Uniform3iARB ( GLint  ,
GLint  ,
GLint  ,
GLint   
)

void GLAPIENTRY _mesa_Uniform3ivARB ( GLint  ,
GLsizei  ,
const GLint *   
)

void GLAPIENTRY _mesa_Uniform4fARB ( GLint  ,
GLfloat  ,
GLfloat  ,
GLfloat  ,
GLfloat   
)

void GLAPIENTRY _mesa_Uniform4fvARB ( GLint  ,
GLsizei  ,
const GLfloat *   
)

void GLAPIENTRY _mesa_Uniform4iARB ( GLint  ,
GLint  ,
GLint  ,
GLint  ,
GLint   
)

void GLAPIENTRY _mesa_Uniform4ivARB ( GLint  ,
GLsizei  ,
const GLint *   
)

void GLAPIENTRY _mesa_UniformMatrix2fvARB ( GLint  ,
GLsizei  ,
GLboolean  ,
const GLfloat *   
)

void GLAPIENTRY _mesa_UniformMatrix2x3fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat *  value 
)

Non-square UniformMatrix are OpenGL 2.1.

void GLAPIENTRY _mesa_UniformMatrix2x4fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat *  value 
)

void GLAPIENTRY _mesa_UniformMatrix3fvARB ( GLint  ,
GLsizei  ,
GLboolean  ,
const GLfloat *   
)

void GLAPIENTRY _mesa_UniformMatrix3x2fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat *  value 
)

void GLAPIENTRY _mesa_UniformMatrix3x4fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat *  value 
)

void GLAPIENTRY _mesa_UniformMatrix4fvARB ( GLint  ,
GLsizei  ,
GLboolean  ,
const GLfloat *   
)

void GLAPIENTRY _mesa_UniformMatrix4x2fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat *  value 
)

void GLAPIENTRY _mesa_UniformMatrix4x3fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat *  value 
)

void GLAPIENTRY _mesa_UseProgramObjectARB ( GLhandleARB   ) 

void GLAPIENTRY _mesa_ValidateProgramARB ( GLhandleARB   ) 


Generated on Sun Sep 27 06:47:46 2009 for Mesa Main by  doxygen 1.5.4