Re: [AD] shader variable names

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


No, just where the variables are named in C and C++ source,
e.g. calls to glGetUniformLocation, al_set_shader_*, etc.

On Mon, 25 Feb 2013 16:19:38 -0700, Jon Rafkind <workmin@xxxxxxxxxx> wrote:
> Are you suggesting the shaders themselves should use these defines as well? I know GLSL has a preprocessor, at least #ifdef GL_ES works, but I'm not sure how to set #defines programmatically, nor if HLSL has a preprocessor.
> 
> On 02/25/2013 04:17 PM, Peter Wang wrote:
> > I suggest using C macros for the literal strings where possible
> > to prevent misspellings and make it easier to grep,
> > e.g. #define ALLEGRO_SHADER_VAR_TEX "al_tex"
> > They should be part of the documented API.





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/