Skip to content

Commit

Permalink
Added API to set pixel shader uniforms.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 26, 2008
1 parent f655c10 commit 368bff1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions mojoshader.h
Expand Up @@ -478,6 +478,29 @@ void MOJOSHADER_glSetVertexShaderUniformI(unsigned int idx, const int *data,
void MOJOSHADER_glSetVertexShaderUniformB(unsigned int idx, const int *data,
unsigned int bcount);

/*
* The equivalent of MOJOSHADER_glSetVertexShaderUniformF() for pixel
* shaders. Other than using a different internal array that is specific
* to pixel shaders, this functions just like its vertex array equivalent.
*/
void MOJOSHADER_glSetPixelShaderUniformF(unsigned int idx, const float *data,
unsigned int vec4count);

/*
* The equivalent of MOJOSHADER_glSetVertexShaderUniformI() for pixel
* shaders. Other than using a different internal array that is specific
* to pixel shaders, this functions just like its vertex array equivalent.
*/
void MOJOSHADER_glSetPixelShaderUniformI(unsigned int idx, const int *data,
unsigned int ivec4count);

/*
* The equivalent of MOJOSHADER_glSetVertexShaderUniformB() for pixel
* shaders. Other than using a different internal array that is specific
* to pixel shaders, this functions just like its vertex array equivalent.
*/
void MOJOSHADER_glSetPixelShaderUniformB(unsigned int idx, const int *data,
unsigned int bcount);

/*
* Connect a client-side array to the currently-bound program.
Expand Down

0 comments on commit 368bff1

Please sign in to comment.