Lines Matching refs:alpha
112 bool opaque, float alpha) {
115 bool premultipliedAlpha, bool opaque, int alpha) {
123 if (CC_UNLIKELY(alpha < 1.0f)) {
125 if (CC_UNLIKELY(alpha < 0xFF)) {
127 // Cv = premultiplied ? Cs*alpha : Cs
128 // Av = !opaque ? As*alpha : As
133 envColor[0] = alpha;
135 envColor[0] = alpha * (1.0f / 255.0f);
169 if (alpha < 1.0f || !opaque) {
171 if (alpha < 0xFF || !opaque) {
182 void GLES11RenderEngine::setupDimLayerBlending(float alpha) {
184 void GLES11RenderEngine::setupDimLayerBlending(int alpha) {
189 if (alpha == 1.0f) {
191 if (alpha == 0xFF) {
199 glColor4f(0, 0, 0, alpha);
201 glColor4f(0, 0, 0, alpha/255.0f);