From 368bff11a6ace8888f06a59b48ea365066d92c61 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 26 Apr 2008 04:32:07 -0400 Subject: [PATCH] Added API to set pixel shader uniforms. --HG-- branch : trunk --- mojoshader.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/mojoshader.h b/mojoshader.h index a3ea8ab8..5dfe7a75 100644 --- a/mojoshader.h +++ b/mojoshader.h @@ -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.