The code is more like this:

int intensity_Handle; 

*…*

intensity_Handle = GLES20.glGetUniformLocation(mProgram, "intensity");

*…*

GLES20.glUniform1f(intensity_Handle, 0.5f);




On Thursday, December 13, 2012 7:14:14 PM UTC-6, Lew wrote:
>
> bob wrote:
>
>> Thanks.
>>
>> This is pretty much what I did…
>>
>> int intensity_Handle; 
>> intensity_Handle = GLES20.glGetUniformLocation(mProgram, "intensity");
>> GLES20.glUniform1f(intensity_Handle, 0.5f);
>>
>> Seems to work.
>>
>>> <http://groups.google.com/group/android-developers?hl=en>
>>>
>>>
> This is just a nit, and not germane to the main question, but how come you 
> split up the declaration
> of 'intensity_Handle' (a non-Java-compliant variable name, btw) and its 
> assignment? My guess is that 
> you extracted it from some longer block of code.
>
> -- 
> Lew
>
>  
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to