Re: [android-developers] Control colors in openGL

2012-03-07 Thread Yang Bo
OpenGL is a state machine,when you dont need the texture,try to disable it before draw other primitives. Regards! Bo Yang -- Sent from my Android! 在 2012-3-8 上午12:07,"Rikki" 写道: > Hi, > > Want to draw bars of different colors. The background(bitmap image) > for each bar is same but the foregroun

[android-developers] Control colors in openGL

2012-03-07 Thread Rikki
Hi, Want to draw bars of different colors. The background(bitmap image) for each bar is same but the foreground color needs to be different. And also the color is to be filled on top of the bar just like a progress bar. Here is my code snippet. Progress object share same vertex buffer but a littl

[android-developers] Control colors in openGL

2012-03-07 Thread Rikki
Hi, Want to draw bars of different colors. The background(bitmap image) for each bar is same but the foreground color needs to be different. And also the color is to be filled on top of the bar just like a progress bar. Here is my code snippet. Progress object share same vertex buffer but a littl